Summary: | www-client/firefox-77.0.1 fails to build as FileNotFoundError: [Errno 2] No such file or directory: 'readelf': 'readelf' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergei Trofimovich (RETIRED) <slyfox> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 243502 |
Description
Sergei Trofimovich (RETIRED)
2020-06-04 19:01:50 UTC
Looking at firefox's python/mozbuild/mozbuild/action/check_binary.py it already attempts to prepend TOOLCHAIN_PREFIX if that exists at least for target: TARGET = { 'MOZ_LIBSTDCXX_VERSION': buildconfig.substs.get('MOZ_LIBSTDCXX_TARGET_VERSION'), 'platform': buildconfig.substs['OS_TARGET'], 'readelf': '{}readelf'.format( buildconfig.substs.get('TOOLCHAIN_PREFIX', '')), } This seems to be enough to build firefox: --- a/www-client/firefox/firefox-77.0.1.ebuild +++ b/www-client/firefox/firefox-77.0.1.ebuild @@ -540,6 +540,7 @@ src_configure() { # Set both --target and --host as mozilla uses python to guess values otherwise mozconfig_annotate '' --target="${CHOST}" mozconfig_annotate '' --host="${CBUILD:-${CHOST}}" + mozconfig_annotate '' --with-toolchain-prefix="${CHOST}-" if use system-libevent ; then mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr fi The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f38cb9616612f5550b6e285e3af8ad3f31053a6 commit 2f38cb9616612f5550b6e285e3af8ad3f31053a6 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-06-05 10:36:04 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-06-05 10:36:21 +0000 mail-client/thunderbird: fix building against sys-devel/binutils-config[-native-symlinks] Bug: https://bugs.gentoo.org/727160 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> mail-client/thunderbird/thunderbird-68.9.0.ebuild | 1 + 1 file changed, 1 insertion(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de520cd80fa8eb3c0b1adfaecbdf2b8060c95d27 commit de520cd80fa8eb3c0b1adfaecbdf2b8060c95d27 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-06-05 10:31:36 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-06-05 10:33:04 +0000 www-client/firefox: fix building against sys-devel/binutils-config[-native-symlinks] Bug: https://bugs.gentoo.org/727160 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> www-client/firefox/firefox-68.9.0.ebuild | 1 + www-client/firefox/firefox-77.0.1.ebuild | 1 + 2 files changed, 2 insertions(+) Thank you! |