From d24362259cfb07154c0d273b4e875605c927d0a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Mar 2007 22:49:53 +0000 Subject: [PATCH] Properly anchor sed regexp for readlonly attribut filtering. svn path=/main/trunk/; revision=6301 --- bin/ebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index cb21d9ee9..7951619c3 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -912,7 +912,7 @@ dyn_compile() { echo "${EAPI:-0}" > EAPI set +f set > environment - export -p | sed 's:declare -rx:declare -x:' >> environment + export | sed 's:^declare -rx:declare -x:' >> environment bzip2 -f9 environment cp "${EBUILD}" "${PF}.ebuild" @@ -1619,7 +1619,7 @@ if [ -n "${myarg}" ] && \ umask 002 set | egrep -v "^SANDBOX_" > "${T}/environment" 2>/dev/null export | egrep -v "^declare -x SANDBOX_" | \ - sed 's:declare -rx:declare -x:' >> "${T}/environment" 2>/dev/null + 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 -- 2.26.2