summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-16 01:20:36 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-16 01:20:36 +0000
commite6c72375397e0a3f40f3a3be2f6745dc9539d746 (patch)
tree3c6162b7239623fd49653aec9bc6ddc61c67ee08
parent577687384aa61f5026e05a8eecd79634cfc77bc4 (diff)
downloadportage-e6c72375397e0a3f40f3a3be2f6745dc9539d746.tar.gz
portage-e6c72375397e0a3f40f3a3be2f6745dc9539d746.tar.bz2
portage-e6c72375397e0a3f40f3a3be2f6745dc9539d746.zip
For bug #163262 and conformance with section 7.2 of the PMS, make the export attribute of variables persist between ebuild phases.
svn path=/main/trunk/; revision=6212
-rwxr-xr-xbin/ebuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 7c85b5a39..778f80dd5 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1618,6 +1618,7 @@ 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
chown portage:portage "${T}/environment" &>/dev/null
chmod g+w "${T}/environment" &>/dev/null
fi