diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-30 09:03:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-30 09:03:00 +0000 |
commit | f69efaece69719080e53fbba2ee42e47b6897d6a (patch) | |
tree | 12fb3c3eca28ed675924f12709c021d1af31c71c | |
parent | 534d882dc9e0a5f75cfa1198f8cdb772900ceb15 (diff) | |
download | portage-f69efaece69719080e53fbba2ee42e47b6897d6a.tar.gz portage-f69efaece69719080e53fbba2ee42e47b6897d6a.tar.bz2 portage-f69efaece69719080e53fbba2ee42e47b6897d6a.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.
svn path=/main/trunk/; revision=8761
-rwxr-xr-x | bin/ebuild.sh | 4 |
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}" |