summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-10-07 04:33:08 +0000
committerTravis Tilley <lv@gentoo.org>2004-10-07 04:33:08 +0000
commit915215330de8b967cadf2dad85b2106344396ed4 (patch)
tree00b96b50b62144d9bd60c4417f1d282c3616c192 /profiles
parentmultilib fixes. (diff)
downloadhistorical-915215330de8b967cadf2dad85b2106344396ed4.tar.gz
historical-915215330de8b967cadf2dad85b2106344396ed4.tar.bz2
historical-915215330de8b967cadf2dad85b2106344396ed4.zip
add a /dev/null test to aid in debugging bug 65876
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default-linux/amd64/profile.bashrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/profiles/default-linux/amd64/profile.bashrc b/profiles/default-linux/amd64/profile.bashrc
index b3e2cf208f20..f0bc6afe459f 100644
--- a/profiles/default-linux/amd64/profile.bashrc
+++ b/profiles/default-linux/amd64/profile.bashrc
@@ -15,6 +15,16 @@ addpredict /usr/lib64/python2.4/
addpredict /usr/lib64/python2.5/
addpredict /usr/lib64/python3.0/
+# sandbox is disabled for /dev/null by default, so this bug isnt caught.
+# hopefully this will help us figure out where this problem occurs...
+if [ ! -e /dev/null ] ; then
+ eerror "/dev/null doesnt exist! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876"
+ exit 1
+elif [ -f /dev/null ] ; then
+ eerror "/dev/null is a normal file! this is bad! tail -n 20 /var/log/emerge.log and attach the output to http://bugs.gentoo.org/show_bug.cgi?id=65876"
+ exit 1
+fi
+
# currently theoretical multilib stuff only available if using portage 2.0.51
CHOST32="i686-pc-linux-gnu"