elevate the importance of 64bit clean code on 64bit hosts (trunk r5656)
authorZac Medico <zmedico@gentoo.org>
Tue, 1 Apr 2008 16:57:08 +0000 (16:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 1 Apr 2008 16:57:08 +0000 (16:57 -0000)
svn path=/main/branches/2.1.2/; revision=9663

bin/misc-functions.sh

index 67284f9e9539f9e78866265b0bf7534290f6b464..c8347afc8c4e46a634ac5e5c32f28a6d516e01bd 100755 (executable)
@@ -312,7 +312,11 @@ install_qa_check() {
                        eqawarn "           but will almost certainly crash on 64bit architectures."
                        eqawarn "${f}"
                        vecho -ne '\a\n'
-                       abort="yes"
+                       # just warn on 32bit hosts but bail on 64bit hosts
+                       case ${CHOST} in
+                               alpha*|ia64*|powerpc64*|mips64*|sparc64*|x86_64*) die "this code is not 64bit clean";;
+                               *) abort="yes";;
+                       esac
                fi
                if [[ ${abort} == "yes" ]] ; then
                        echo "Please do not file a Gentoo bug and instead" \