summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-23 23:33:08 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-23 23:33:08 +0000
commitc2b6ed727403b5066190ae241dd2d5457bd6d51b (patch)
tree4b22d492bbf7d71b33638fcc7e4c8f17373e613a /bin
parent9da048e7cd73b341a69254efe4816a6df2a6ab02 (diff)
downloadportage-c2b6ed727403b5066190ae241dd2d5457bd6d51b.tar.gz
portage-c2b6ed727403b5066190ae241dd2d5457bd6d51b.tar.bz2
portage-c2b6ed727403b5066190ae241dd2d5457bd6d51b.zip
Add FEATURES=fakeroot support which causes install and package phases to run inside fakeroot when a non-root user runs the ebuild command. Thanks to swegener for the initial patch.
svn path=/main/trunk/; revision=7379
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 5f271524b..72b449927 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1648,8 +1648,8 @@ if [ -n "${myarg}" ] && \
unset 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_" | \
+ set | egrep -v -e "^SANDBOX_" -e "^LD_PRELOAD=" -e "^FAKEROOTKEY=" > "${T}/environment" 2>/dev/null
+ export | egrep -v -e "^declare -x SANDBOX_" -e "^declare -x LD_PRELOAD=" -e "^declare -x FAKEROOTKEY=" | \
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