Filter the readonly attribute from variables saved in ${T}/environment to prevent...
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Mar 2007 22:32:45 +0000 (22:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Mar 2007 22:32:45 +0000 (22:32 -0000)
svn path=/main/trunk/; revision=6299

bin/ebuild.sh

index ef9fbc73e327e385c7a137c6294f1691d2750796..cb21d9ee9fcc2f5ac2a55ec7f54f96f6f573e309 100755 (executable)
@@ -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