summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-14 02:45:36 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-14 02:45:36 +0000
commitcdbe8af09d8d3c38eb903b6703b6eb82cec9c1e4 (patch)
tree99c67a09c761510d85843a3e53aaf250f2e20152
parentFor bug #151146, don't use tar's --verbose option during the package phase si... (diff)
downloadportage-idfetch-cdbe8af09d8d3c38eb903b6703b6eb82cec9c1e4.tar.gz
portage-idfetch-cdbe8af09d8d3c38eb903b6703b6eb82cec9c1e4.tar.bz2
portage-idfetch-cdbe8af09d8d3c38eb903b6703b6eb82cec9c1e4.zip
Always `unset DEPEND RDEPEND PDEPEND IUSE` prior to sourcing the ebuild in order to ensure correct interaction during the process of sourcing. Thanks to exg for reporting this issue.
svn path=/main/trunk/; revision=4677
-rwxr-xr-xbin/ebuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b4348513..e3935e59 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1453,6 +1453,11 @@ fi
# this can be left out of ebd variants, since they're unaffected.
unset EBUILD_DEATH_HOOKS
+# *DEPEND and IUSE will be set during the sourcing of the ebuild. In order to
+# ensure correct interaction between ebuilds and eclasses, they need to be
+# unset before this process of interaction begins.
+unset DEPEND RDEPEND PDEPEND IUSE
+
source ${EBUILD} || die "error sourcing ebuild"
if ! hasq depend $EBUILD_PHASE; then
RESTRICT="${PORTAGE_RESTRICT}"