summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-27 22:32:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-27 22:32:45 +0000
commitc647651445ff9e2880882af4d6633951b96b19c0 (patch)
treea1a7107a1d9d9d5a5e452479a91d9849868604d6
parent2f10c445b79646124e47e9e0621f6ffb7b773e0e (diff)
downloadportage-c647651445ff9e2880882af4d6633951b96b19c0.tar.gz
portage-c647651445ff9e2880882af4d6633951b96b19c0.tar.bz2
portage-c647651445ff9e2880882af4d6633951b96b19c0.zip
Filter the readonly attribute from variables saved in ${T}/environment to prevent 'readonly variable' error messages in later phases.
svn path=/main/trunk/; revision=6299
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index ef9fbc73e..cb21d9ee9 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1618,7 +1618,8 @@ if [ -n "${myarg}" ] && \
# Save current environment and touch a success file. (echo for success)
umask 002
set | egrep -v "^SANDBOX_" > "${T}/environment" 2>/dev/null
- export | egrep -v "^declare -x SANDBOX_" >> "${T}/environment" 2>/dev/null
+ export | egrep -v "^declare -x SANDBOX_" | \
+ sed 's:declare -rx:declare -x:' >> "${T}/environment" 2>/dev/null
chown portage:portage "${T}/environment" &>/dev/null
chmod g+w "${T}/environment" &>/dev/null
fi