From: Zac Medico Date: Sun, 11 Sep 2011 21:16:23 +0000 (-0700) Subject: ebuild.sh: add dummy funcs for "depend" phase X-Git-Tag: v2.2.0_alpha56~29 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6a1a8397003edc599c3916d284676a81a02af0e0;p=portage.git ebuild.sh: add dummy funcs for "depend" phase --- 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 && \