Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727414

Summary: net-libs/nodejs-14.4.0 calls 'ar' directly
Product: Gentoo Linux Reporter: Sergei Trofimovich <slyfox>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Sergei Trofimovich gentoo-dev 2020-06-07 10:40:31 UTC
When building net-libs/nodejs-14.4.0 on a sys-devel/binutils-config[-native-symlinks] system build fails as:

"""
  rm -f /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/histogram/libhistogram.a && ar crsT /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/histogram/libhistogram.a /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/histogram/deps/histogram/src/hdr_histogram.o
  rm -f /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/uvwasi/libuvwasi.a && ar crsT /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/uvwasi/libuvwasi.a /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/clocks.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/fd_table.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/path_resolver.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/uv_mapping.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/uvwasi.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/uvwasi/deps/uvwasi/src/wasi_rights.o
  touch /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/tools/v8_gypfiles/v8_headers.stamp
/bin/sh: ar: command not found
make: *** [deps/histogram/histogram.target.mk:117: /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/histogram/libhistogram.a] Error 127
make: *** Waiting for unfinished jobs....
/bin/sh: ar: command not found
make: *** [deps/uvwasi/uvwasi.target.mk:132: /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/deps/uvwasi/libuvwasi.a] Error 127
rm e1d8ea74c86dce24911fa19048ec405ff791f9cb.intermediate
make: Leaving directory '/tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out'
 * ERROR: net-libs/nodejs-14.4.0::gentoo failed (compile phase):
 *   emake failed
"""

Exporting AR seems to be enough to fix the build:

--- a/net-libs/nodejs/nodejs-14.4.0.ebuild
+++ b/net-libs/nodejs/nodejs-14.4.0.ebuild
@@ -54,7 +54,7 @@ pkg_pretend() {
 }

 src_prepare() {
-	tc-export CC CXX PKG_CONFIG
+	tc-export AR CC CXX PKG_CONFIG
 	export V=1
 	export BUILDTYPE=Release
Comment 1 Larry the Git Cow gentoo-dev 2020-06-07 11:41:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee471bbdae9f1c4cb85e89962d1339183c847b51

commit ee471bbdae9f1c4cb85e89962d1339183c847b51
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-06-07 11:41:09 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-06-07 11:41:25 +0000

    net-libs/nodejs: Set AR
    
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=727414
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-libs/nodejs/nodejs-14.4.0.ebuild   | 2 +-
 net-libs/nodejs/nodejs-99999999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)