diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-21 05:46:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-08-21 05:46:04 +0000 |
commit | f23a5b73aa6cc35925470ae94fe195427512fcf9 (patch) | |
tree | 389311b4ac9cdd0cb2e6f5519c6257925705f898 /sys-libs | |
parent | whitespace (diff) | |
download | gentoo-2-f23a5b73aa6cc35925470ae94fe195427512fcf9.tar.gz gentoo-2-f23a5b73aa6cc35925470ae94fe195427512fcf9.tar.bz2 gentoo-2-f23a5b73aa6cc35925470ae94fe195427512fcf9.zip |
Add check for broken syscall() on x86 #279260 by Andrew Gaffney.
(Portage version: 2.2_rc38/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/ChangeLog | 6 | ||||
-rw-r--r-- | sys-libs/glibc/files/eblits/pkg_setup.eblit | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog index f6a98f368a15..ed98e1b8324a 100644 --- a/sys-libs/glibc/ChangeLog +++ b/sys-libs/glibc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-libs/glibc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.631 2009/07/19 14:49:14 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.632 2009/08/21 05:46:04 vapier Exp $ + + 21 Aug 2009; Mike Frysinger <vapier@gentoo.org> + files/eblits/pkg_setup.eblit: + Add check for broken syscall() on x86 #279260 by Andrew Gaffney. 19 Jul 2009; nixnut <nixnut@gentoo.org> glibc-2.9_p20081201-r2.ebuild: ppc stable #270243 diff --git a/sys-libs/glibc/files/eblits/pkg_setup.eblit b/sys-libs/glibc/files/eblits/pkg_setup.eblit index 35b474780c51..04445a5ab5bf 100644 --- a/sys-libs/glibc/files/eblits/pkg_setup.eblit +++ b/sys-libs/glibc/files/eblits/pkg_setup.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.3 2009/03/23 18:48:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.4 2009/08/21 05:46:04 vapier Exp $ eblit-glibc-pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people @@ -22,6 +22,17 @@ eblit-glibc-pkg_setup() { eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227" die "keeping your system alive, say thank you" fi + + # Check for broken kernels #279260 + cd "${T}" + printf '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' > kern-enosys-test.c + emake kern-enosys-test || die + if ! ./kern-enosys-test ; then + eerror "Your old kernel is broken. You need to update it to" + eerror "a newer version as syscall(<bignum>) will break." + eerror "http://bugs.gentoo.org/279260" + die "keeping your system alive, say thank you" + fi fi # users have had a chance to phase themselves, time to give em the boot |