summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-19 09:38:31 +0000
committerMike Frysinger <vapier@gentoo.org>2009-03-19 09:38:31 +0000
commita8c793ac80cfae73887447c72f34f595a58281f7 (patch)
treefb755e6415b4fe6c54daadccc4f4e67c5871ade6 /sys-libs
parentDepend on correct findutils. Per bug #262965. Thanks Loki_val for correct app... (diff)
downloadgentoo-2-a8c793ac80cfae73887447c72f34f595a58281f7.tar.gz
gentoo-2-a8c793ac80cfae73887447c72f34f595a58281f7.tar.bz2
gentoo-2-a8c793ac80cfae73887447c72f34f595a58281f7.zip
Abort install if people have a broken kernel running #262698.
(Portage version: 2.2_rc26/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/ChangeLog8
-rw-r--r--sys-libs/glibc/files/eblits/pkg_setup.eblit13
-rw-r--r--sys-libs/glibc/glibc-2.7-r2.ebuild13
-rw-r--r--sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild13
-rw-r--r--sys-libs/glibc/glibc-2.8_p20080602.ebuild13
-rw-r--r--sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild13
-rw-r--r--sys-libs/glibc/glibc-2.9_p20081201.ebuild13
7 files changed, 79 insertions, 7 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog
index d88343d8d490..f0dcfa522311 100644
--- a/sys-libs/glibc/ChangeLog
+++ b/sys-libs/glibc/ChangeLog
@@ -1,6 +1,12 @@
# 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.615 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.616 2009/03/19 09:38:31 vapier Exp $
+
+ 19 Mar 2009; Mike Frysinger <vapier@gentoo.org>
+ files/eblits/pkg_setup.eblit, glibc-2.7-r2.ebuild,
+ glibc-2.8_p20080602.ebuild, glibc-2.8_p20080602-r1.ebuild,
+ glibc-2.9_p20081201.ebuild, glibc-2.9_p20081201-r1.ebuild:
+ Abort install if people have a broken kernel running #262698.
08 Mar 2009; Mike Frysinger <vapier@gentoo.org> glibc-2.7-r2.ebuild,
glibc-2.8_p20080602.ebuild, glibc-2.8_p20080602-r1.ebuild,
diff --git a/sys-libs/glibc/files/eblits/pkg_setup.eblit b/sys-libs/glibc/files/eblits/pkg_setup.eblit
index 9114cf7b7670..e4510d1e948a 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.1 2009/03/01 21:06:22 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.2 2009/03/19 09:38:31 vapier Exp $
eblit-glibc-pkg_setup() {
# prevent native builds from downgrading ... maybe update to allow people
@@ -11,6 +11,17 @@ eblit-glibc-pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot
diff --git a/sys-libs/glibc/glibc-2.7-r2.ebuild b/sys-libs/glibc/glibc-2.7-r2.ebuild
index 4f6603f4a45f..be1ddb8f20f2 100644
--- a/sys-libs/glibc/glibc-2.7-r2.ebuild
+++ b/sys-libs/glibc/glibc-2.7-r2.ebuild
@@ -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/glibc-2.7-r2.ebuild,v 1.14 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.7-r2.ebuild,v 1.15 2009/03/19 09:38:31 vapier Exp $
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
@@ -197,6 +197,17 @@ pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot
diff --git a/sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild b/sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild
index 916ca1d25aaa..2ccf04e14225 100644
--- a/sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild
@@ -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/glibc-2.8_p20080602-r1.ebuild,v 1.10 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.8_p20080602-r1.ebuild,v 1.11 2009/03/19 09:38:31 vapier Exp $
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
@@ -227,6 +227,17 @@ pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot
diff --git a/sys-libs/glibc/glibc-2.8_p20080602.ebuild b/sys-libs/glibc/glibc-2.8_p20080602.ebuild
index b410d150ef17..883e1f641cd5 100644
--- a/sys-libs/glibc/glibc-2.8_p20080602.ebuild
+++ b/sys-libs/glibc/glibc-2.8_p20080602.ebuild
@@ -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/glibc-2.8_p20080602.ebuild,v 1.13 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.8_p20080602.ebuild,v 1.14 2009/03/19 09:38:31 vapier Exp $
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
@@ -227,6 +227,17 @@ pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot
diff --git a/sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild b/sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild
index bd45fcb28a9d..465d63119cc3 100644
--- a/sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild
@@ -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/glibc-2.9_p20081201-r1.ebuild,v 1.5 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r1.ebuild,v 1.6 2009/03/19 09:38:31 vapier Exp $
GLIBC_PATCH_EXCLUDE="${GLIBC_PATCH_EXCLUDE} 1060_all_glibc-nss-deepbind.patch" #252302
@@ -229,6 +229,17 @@ pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot
diff --git a/sys-libs/glibc/glibc-2.9_p20081201.ebuild b/sys-libs/glibc/glibc-2.9_p20081201.ebuild
index 9aa9f14e76f7..61703a913c4c 100644
--- a/sys-libs/glibc/glibc-2.9_p20081201.ebuild
+++ b/sys-libs/glibc/glibc-2.9_p20081201.ebuild
@@ -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/glibc-2.9_p20081201.ebuild,v 1.3 2009/03/08 20:32:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201.ebuild,v 1.4 2009/03/19 09:38:31 vapier Exp $
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
@@ -227,6 +227,17 @@ pkg_setup() {
eerror " Downgrading glibc is not supported and a sure way to destruction"
die "aborting to save your system"
fi
+
+ # Check for broken kernels #262698
+ cd "${T}"
+ printf '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c
+ emake kern-clo-test || die
+ if ! ./kern-clo-test ; then
+ eerror "Your patched vendor kernel is broken. You need to get an"
+ eerror "update from whoever is providing the kernel to you."
+ eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227"
+ die "keeping your system alive, say thank you"
+ fi
fi
# users have had a chance to phase themselves, time to give em the boot