summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-16 01:28:33 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-16 01:28:33 +0000
commit7a89b38a01b4477a281c05e374652ba6e5028a7f (patch)
treef4502f16349db16c41956f0c0cfe0024c798e309 /bin/ebuild.sh
parentff3ce9b8eef9dd816b9985f48ebcff90b711a0b5 (diff)
downloadportage-7a89b38a01b4477a281c05e374652ba6e5028a7f.tar.gz
portage-7a89b38a01b4477a281c05e374652ba6e5028a7f.tar.bz2
portage-7a89b38a01b4477a281c05e374652ba6e5028a7f.zip
For bug #163262 and conformance with section 7.2 of the PMS, make the export attribute of variables persist between ebuild phases. (trunk r6211:6212)
svn path=/main/branches/2.1.2/; revision=6213
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index e5af3e754..c60aed7ae 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1693,6 +1693,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