Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/glibc/
Date: Sat, 12 Oct 2019 20:03:17
Message-Id: 1570910585.a56243ab61dd2088eaa21a45cbdb574505a28f6c.slyfox@gentoo
1 commit: a56243ab61dd2088eaa21a45cbdb574505a28f6c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 12 19:49:16 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 12 20:03:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a56243ab
7
8 sys-libs/glibc: allow glibc dongrade on I_ALLOW_TO_BREAK_MY_SYSTEM
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-libs/glibc/glibc-2.19-r2.ebuild | 2 +-
14 sys-libs/glibc/glibc-2.26-r7.ebuild | 2 +-
15 sys-libs/glibc/glibc-2.27-r6.ebuild | 2 +-
16 sys-libs/glibc/glibc-2.28-r6.ebuild | 2 +-
17 4 files changed, 4 insertions(+), 4 deletions(-)
18
19 diff --git a/sys-libs/glibc/glibc-2.19-r2.ebuild b/sys-libs/glibc/glibc-2.19-r2.ebuild
20 index 75f849f69dc..0fedbb8e940 100644
21 --- a/sys-libs/glibc/glibc-2.19-r2.ebuild
22 +++ b/sys-libs/glibc/glibc-2.19-r2.ebuild
23 @@ -539,7 +539,7 @@ sanity_prechecks() {
24 if has_version ">${CATEGORY}/${P}-r10000" ; then
25 eerror "Sanity check to keep you from breaking your system:"
26 eerror " Downgrading glibc is not supported and a sure way to destruction."
27 - die "Aborting to save your system."
28 + [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
29 fi
30
31 if ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
32
33 diff --git a/sys-libs/glibc/glibc-2.26-r7.ebuild b/sys-libs/glibc/glibc-2.26-r7.ebuild
34 index bfbe9b01b03..34d8fb8a7ac 100644
35 --- a/sys-libs/glibc/glibc-2.26-r7.ebuild
36 +++ b/sys-libs/glibc/glibc-2.26-r7.ebuild
37 @@ -122,7 +122,7 @@ pkg_pretend() {
38 if has_version ">${CATEGORY}/${P}-r10000" ; then
39 eerror "Sanity check to keep you from breaking your system:"
40 eerror " Downgrading glibc is not supported and a sure way to destruction"
41 - die "Aborting to save your system"
42 + [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
43 fi
44
45 if ! glibc_run_test '#include <pwd.h>\nint main(){return getpwuid(0)==0;}\n'
46
47 diff --git a/sys-libs/glibc/glibc-2.27-r6.ebuild b/sys-libs/glibc/glibc-2.27-r6.ebuild
48 index 42be8144de4..f1409e36cf3 100644
49 --- a/sys-libs/glibc/glibc-2.27-r6.ebuild
50 +++ b/sys-libs/glibc/glibc-2.27-r6.ebuild
51 @@ -607,7 +607,7 @@ sanity_prechecks() {
52 if has_version ">${CATEGORY}/${P}-r10000" ; then
53 eerror "Sanity check to keep you from breaking your system:"
54 eerror " Downgrading glibc is not supported and a sure way to destruction."
55 - die "Aborting to save your system."
56 + [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
57 fi
58
59 if ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
60
61 diff --git a/sys-libs/glibc/glibc-2.28-r6.ebuild b/sys-libs/glibc/glibc-2.28-r6.ebuild
62 index d40991f16ab..aa318b7e0f1 100644
63 --- a/sys-libs/glibc/glibc-2.28-r6.ebuild
64 +++ b/sys-libs/glibc/glibc-2.28-r6.ebuild
65 @@ -598,7 +598,7 @@ sanity_prechecks() {
66 if has_version ">${CATEGORY}/${P}-r10000" ; then
67 eerror "Sanity check to keep you from breaking your system:"
68 eerror " Downgrading glibc is not supported and a sure way to destruction."
69 - die "Aborting to save your system."
70 + [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
71 fi
72
73 if ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then