From: Travis Tilley Date: Thu, 7 Oct 2004 04:33:08 +0000 (+0000) Subject: add a /dev/null test to aid in debugging bug 65876 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=915215330de8b967cadf2dad85b2106344396ed4;p=gentoo.git add a /dev/null test to aid in debugging bug 65876 --- 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"