http://bugs.gentoo.org/show_bug.cgi?id=85803

This trivial patch seems to work for me but I'm not sure if it will cause 
regressions or not.  Feedback is appreciated.

Zac
Index: portage-2.0.51.22/bin/ebuild.sh
===================================================================
--- portage-2.0.51.22.orig/bin/ebuild.sh
+++ portage-2.0.51.22/bin/ebuild.sh
@@ -11,7 +11,7 @@ if [ ! -z "${PORTAGE_GPG_DIR}" ]; then
 	SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}"
 fi
 
-if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then
+if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ] && [ "$*" != "setup" ]; then
 	if [ -f "${T}/environment" ]; then
 		source "${T}/environment" &>/dev/null
 	fi

Reply via email to