summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-11 14:16:23 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-11 14:16:23 -0700
commit6a1a8397003edc599c3916d284676a81a02af0e0 (patch)
tree0613ab54f4f0b9e6733a861296c1bf8f24020754
parentb95cbb6b78ad6d9b8e2d3edc5fafff122c3ce7c5 (diff)
downloadportage-6a1a8397003edc599c3916d284676a81a02af0e0.tar.gz
portage-6a1a8397003edc599c3916d284676a81a02af0e0.tar.bz2
portage-6a1a8397003edc599c3916d284676a81a02af0e0.zip
ebuild.sh: add dummy funcs for "depend" phase
-rwxr-xr-xbin/ebuild.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index a5cc5efe5..936405d96 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -833,6 +833,15 @@ trap 'exit 1' SIGTERM
if [[ $EBUILD_PHASE != depend ]] ; then
source "${PORTAGE_BIN_PATH}/phase-functions.sh"
source "${PORTAGE_BIN_PATH}/phase-helpers.sh"
+else
+ # These dummy functions are for things that are likely to be called
+ # in global scope, even though they are completely useless during
+ # the "depend" phase.
+ for x in diropts docompress exeopts insopts \
+ keepdir libopts use_with use_enable ; do
+ eval "${x}() { : ; }"
+ done
+ unset x
fi
if ! has "$EBUILD_PHASE" clean cleanrm depend && \