From 1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Dec 2009 03:55:20 +0000 Subject: [PATCH] Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and 2. (trunk r15057) svn path=/main/branches/2.1.7/; revision=15090 --- bin/ebuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 0dd7e980e..62d051eea 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1949,6 +1949,13 @@ export TMPDIR="${T}" # declare them only after it has already run. if [ "${EBUILD_PHASE}" != "depend" ] ; then declare -r ${READONLY_EBUILD_METADATA} ${READONLY_PORTAGE_VARS} + case "$EAPI" in + 0|1|2) + ;; + *) + declare -r ED EPREFIX EROOT + ;; + esac fi ebuild_main() { -- 2.26.2