summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-11 06:04:07 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-11 06:04:07 +0000
commit80b175067f59e81d6219c84803fe4c9bf6241e81 (patch)
tree9c97b12620afd24652ba32024fb5a1f90752b7ef
parent7d6c38cf7151d61e90c9660a3c34d4a632694e46 (diff)
downloadportage-80b175067f59e81d6219c84803fe4c9bf6241e81.tar.gz
portage-80b175067f59e81d6219c84803fe4c9bf6241e81.tar.bz2
portage-80b175067f59e81d6219c84803fe4c9bf6241e81.zip
Don't filter/interfere with prefix variables unless they are supported by the
current EAPI. svn path=/main/trunk/; revision=15031
-rwxr-xr-xbin/ebuild.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 0bbfc10f0..009c59c38 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1651,7 +1651,18 @@ filter_readonly_variables() {
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
filtered_vars="$readonly_bash_vars $bash_misc_vars
- $READONLY_PORTAGE_VARS ED EPREFIX EROOT PATH"
+ $READONLY_PORTAGE_VARS PATH"
+
+ # Don't filter/interfere with prefix variables unless they are
+ # supported by the current EAPI.
+ case "${EAPI:-0}" in
+ 0|1|2)
+ ;;
+ *)
+ filtered_vars+=" ED EPREFIX EROOT"
+ ;;
+ esac
+
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_.*"
else