svn path=/main/branches/2.1.2/; revision=6300
# 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