sys-libs/glibc: Re-add check for bug 279260, see bug 645016 comment 2
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 20 Jan 2018 19:14:07 +0000 (20:14 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 20 Jan 2018 19:14:23 +0000 (20:14 +0100)
Bug: https://bugs.gentoo.org/279260
Bug: https://bugs.gentoo.org/645016
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-libs/glibc/glibc-9999.ebuild

index 87549b89f6db0bac1059cc445cc0a01a53e9d119..a739da784a7e9ce906c4a8ef09681ff6f51d1a62 100644 (file)
@@ -612,6 +612,12 @@ sanity_prechecks() {
                die "Please fix your CHOST"
        fi
 
+       if ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
+               eerror "Your old kernel is broken. You need to update it to a newer"
+               eerror "version as syscall(<bignum>) will break. See bug 279260."
+               die "Old and broken kernel."
+       fi
+
        if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then
                ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS."
                ewarn "This will result in a 50% performance penalty when running with a 32bit"