aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-06-21 15:30:46 +0200
committerSergei Trofimovich <slyfox@gentoo.org>2021-06-21 22:04:16 +0100
commitb40ebcdb89f19d2fd0c563590f30d7574cfe0755 (patch)
tree02dfdfa02bf772920f8ec308dad678e9d7e80e65 /wrappers/emerge-wrapper
parentwrappers/emerge-wrapper: fail crossdev setup when toolchain-funcs.eclass sour... (diff)
downloadcrossdev-b40ebcdb89f19d2fd0c563590f30d7574cfe0755.tar.gz
crossdev-b40ebcdb89f19d2fd0c563590f30d7574cfe0755.tar.bz2
crossdev-b40ebcdb89f19d2fd0c563590f30d7574cfe0755.zip
crossdev, emerge-wrapper: request EAPI=7 on eclass imports
Today ::gentoo dropped support for EAPI=0 from multilib.eclass and toolchain-funcs.eclass. Due to lack of error handling on crossdev side srossdev derived wrong environment for $CTARGET (and mostly fell back to CHOST). This caused at best failing early on gcc-stage1 build. At worst crossdev installed libraries into a wrong $(get_libdir), installed symlinks from wrong host and other disasters. Previous crossdev commits make crossdev crash earlier instead of generating wrong environment. This commit allows dropping EAI=0 support for eclasses eventually. Reported-by: Marco Scardovi (scardracs) Bug: https://bugs.gentoo.org/797367 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'wrappers/emerge-wrapper')
-rwxr-xr-xwrappers/emerge-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/emerge-wrapper b/wrappers/emerge-wrapper
index d9ba08b..d8c6537 100755
--- a/wrappers/emerge-wrapper
+++ b/wrappers/emerge-wrapper
@@ -48,7 +48,7 @@ cross_wrap_etc()
ARCH=$(
inherit() { :; }
die() { err "toolchain-funcs.eclass$*"; }
- . "${MAIN_REPO_PATH}"/eclass/toolchain-funcs.eclass
+ EAPI=7 . "${MAIN_REPO_PATH}"/eclass/toolchain-funcs.eclass
tc-arch
)
[[ $? -ne 0 ]] && err "Failed calling 'tc-arch' from toolchain-funcs.eclass."