commit: 0485de10cb637ace71a547a16c21f6a7e3e5d5ca Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me> AuthorDate: Fri May 23 10:03:56 2025 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri May 23 14:16:24 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0485de10
dev-libs/nss: Don't call shlibsign during cross-builds Passing CROSS_COMPILE=1 to make prevents the build from calling shlibsign, which can fail in a cross-environment since CBUILD may not have dev-libs/nss installed. Closes: https://bugs.gentoo.org/956431 Signed-off-by: Andrei Horodniceanu <a.horodniceanu <AT> proton.me> Part-of: https://github.com/gentoo/gentoo/pull/42225 Closes: https://github.com/gentoo/gentoo/pull/42225 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-libs/nss/nss-3.111.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-libs/nss/nss-3.111.ebuild b/dev-libs/nss/nss-3.111.ebuild index cde5791cc724..420e3cca0f03 100644 --- a/dev-libs/nss/nss-3.111.ebuild +++ b/dev-libs/nss/nss-3.111.ebuild @@ -214,13 +214,16 @@ multilib_src_compile() { local d + # Disables calling shlibsign during the build #956431 and #436216 + tc-is-cross-compiler && makeargs+=( CROSS_COMPILE=1 ) + # Build the host tools first. LDFLAGS="${BUILD_LDFLAGS}" \ XCFLAGS="${BUILD_CFLAGS} -D_FILE_OFFSET_BITS=64" \ NSPR_LIB_DIR="${T}/fakedir" \ emake -C coreconf \ CC="$(tc-getBUILD_CC)" \ - ${buildbits-${mybits}} + ${buildbits-${mybits}} makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" ) # Then build the target tools.
