diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-01-01 15:50:21 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-01-01 15:50:21 -0800 |
commit | 0c38140e331c040530bf1d6c5716696162790bda (patch) | |
tree | 623fe37c84f514f9935096b16095993d35d21adb /bin | |
parent | e59b6ab18f346e3bbe134f4953a8c617d94a1dbf (diff) | |
download | portage-0c38140e331c040530bf1d6c5716696162790bda.tar.gz portage-0c38140e331c040530bf1d6c5716696162790bda.tar.bz2 portage-0c38140e331c040530bf1d6c5716696162790bda.zip |
use(): fatal missing IUSE in EAPI 5, bug #449708
Diffstat (limited to 'bin')
-rw-r--r-- | bin/phase-helpers.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 8a78f372b..383f9ff5e 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -212,9 +212,15 @@ use() { # Make sure we have this USE flag in IUSE elif [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then - [[ $u =~ $PORTAGE_IUSE ]] || \ + if [[ ! $u =~ $PORTAGE_IUSE ]] ; then + if [[ ! ${EAPI} =~ ^(0|1|2|3|4|4-python|4-slot-abi)$ ]] ; then + # This is only strict starting with EAPI 5, since implicit IUSE + # is not well defined for earlier EAPIs (see bug #449708). + die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}" + fi eqawarn "QA Notice: USE Flag '${u}' not" \ "in IUSE for ${CATEGORY}/${PF}" + fi fi local IFS=$' \t\n' prev_shopts=$- ret |