summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-18 03:23:21 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-18 03:23:21 +0000
commit79d780d53e3b4ca34ac7b98c08ad686c6ef4ada9 (patch)
tree6037ae478b5706b597a14927993b09e6dbcb5fed /bin
parentTODO: Make resume_depgraph() return reasons for dropped_tasks, for (diff)
downloadportage-multirepo-79d780d53e3b4ca34ac7b98c08ad686c6ef4ada9.tar.gz
portage-multirepo-79d780d53e3b4ca34ac7b98c08ad686c6ef4ada9.tar.bz2
portage-multirepo-79d780d53e3b4ca34ac7b98c08ad686c6ef4ada9.zip
Ensure that /dev/std* streams have appropriate sandbox permission for
bug #288863. This can be removed after sandbox is fixed and portage depends on the fixed version. (trunk r14612) svn path=/main/branches/2.1.7/; revision=14641
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 0c755393..b1ddd63c 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -6,6 +6,12 @@
PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"
PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}"
+# Ensure that /dev/std* streams have appropriate sandbox permission for
+# bug #288863. This can be removed after sandbox is fixed and portage
+# depends on the fixed version.
+export SANDBOX_WRITE="${SANDBOX_WRITE:+${SANDBOX_WRITE}:}/dev/stdout:/dev/stderr"
+export SANDBOX_READ="${SANDBOX_READ:+${SANDBOX_READ}:}/dev/stdin"
+
# Don't use sandbox's BASH_ENV for new shells because it does
# 'source /etc/profile' which can interfere with the build
# environment by modifying our PATH.