summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-30 09:03:26 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-30 09:03:26 +0000
commit1ba69403ceb5b3fe7e75e1781b51a072213e6d32 (patch)
tree32668ad253eb6e78f948ecb492c1b182e4377f17 /bin/ebuild.sh
parentec5473cd43f0c60455bb5c957cb74c1ef83e0a0e (diff)
downloadportage-1ba69403ceb5b3fe7e75e1781b51a072213e6d32.tar.gz
portage-1ba69403ceb5b3fe7e75e1781b51a072213e6d32.tar.bz2
portage-1ba69403ceb5b3fe7e75e1781b51a072213e6d32.zip
Don't use sandbox's BASH_ENV for new shells because it does
'source /etc/profile' which can interfere with the build environment by modifying our PATH. (trunk r8761) svn path=/main/branches/2.1.2/; revision=8762
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f8f7377d7..78c423278 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -10,6 +10,10 @@ SANDBOX_PREDICT="${SANDBOX_PREDICT}:/proc/self/maps:/dev/console:/dev/random"
export SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_PYM_PATH}:${PORTAGE_DEPCACHEDIR}"
export SANDBOX_WRITE="${SANDBOX_WRITE}:/dev/shm:/dev/stdout:/dev/stderr:${PORTAGE_TMPDIR}"
export SANDBOX_READ="${SANDBOX_READ}:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}"
+# Don't use sandbox's BASH_ENV for new shells because it does
+# 'source /etc/profile' which can interfere with the build
+# environment by modifying our PATH.
+unset BASH_ENV
if [ ! -z "${PORTAGE_GPG_DIR}" ]; then
SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}"