Ensure that /dev/std* streams have appropriate sandbox permission for
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 19:22:07 +0000 (19:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 19:22:07 +0000 (19:22 -0000)
bug #288863. This can be removed after sandbox is fixed and portage
depends on the fixed version.

svn path=/main/trunk/; revision=14612

bin/ebuild.sh

index dd87714ca1631f1a61d66f0775cb4262154a7c95..e2e6f77833883e93024efb781f0c9de2e53d4b26 100755 (executable)
@@ -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.