summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-07-17 09:00:21 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-07-17 11:25:24 +0100
commit0bf9e0752ba0581a1f0e6f34fd018bd1dbede838 (patch)
tree8e5853ca4093f20f259902d93347f4eeadb27252 /eclass/toolchain.eclass
parenttoolchain.eclass: support only EAPI=5 out of all 5* (diff)
downloadgentoo-0bf9e0752ba0581a1f0e6f34fd018bd1dbede838.tar.gz
gentoo-0bf9e0752ba0581a1f0e6f34fd018bd1dbede838.tar.bz2
gentoo-0bf9e0752ba0581a1f0e6f34fd018bd1dbede838.zip
toolchain.eclass: leave (unused) 'eutils' inherit only for EAPI=5|6|7
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a0e5c608e2ca..357c99d0921d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -7,9 +7,7 @@
DESCRIPTION="The GNU Compiler Collection"
HOMEPAGE="https://gcc.gnu.org/"
-# TODO: Please audit this inherit list on future EAPI bumps and ideally
-# conditonalise them where possible.
-inherit eutils flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs prefix
+inherit flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs prefix
tc_is_live() {
[[ ${PV} == *9999* ]]
@@ -30,8 +28,8 @@ fi
FEATURES=${FEATURES/multilib-strict/}
case ${EAPI:-0} in
- 5|6) inherit eapi7-ver ;;
- 7) ;;
+ 5|6) inherit eapi7-ver eutils ;;
+ 7) inherit eutils ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac