For bug #163262 and conformance with section 7.2 of the PMS, make the export attribut...
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Mar 2007 01:20:36 +0000 (01:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Mar 2007 01:20:36 +0000 (01:20 -0000)
svn path=/main/trunk/; revision=6212

bin/ebuild.sh

index 7c85b5a39e8327b5a1d645ca628bb7a1334427fb..778f80dd5244a8ca65b6450f0d4eb63ea397836d 100755 (executable)
@@ -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