summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-24 00:52:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-24 00:52:59 +0000
commit1ac14d317505a270b56d926a714eb443c92df72d (patch)
tree05a99a10018e7d347a40efc998c756789d304f5c /bin/ebuild.sh
parent3bbbf459564681e15cd1f70ded266ba70b960cbe (diff)
downloadportage-1ac14d317505a270b56d926a714eb443c92df72d.tar.gz
portage-1ac14d317505a270b56d926a714eb443c92df72d.tar.bz2
portage-1ac14d317505a270b56d926a714eb443c92df72d.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. (trunk r7379)
svn path=/main/branches/2.1.2/; revision=7380
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index c9bacd4a5..0e50cdb63 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1726,8 +1726,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