commit:     a56243ab61dd2088eaa21a45cbdb574505a28f6c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 12 19:49:16 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct 12 20:03:05 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a56243ab

sys-libs/glibc: allow glibc dongrade on I_ALLOW_TO_BREAK_MY_SYSTEM

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/glibc/glibc-2.19-r2.ebuild | 2 +-
 sys-libs/glibc/glibc-2.26-r7.ebuild | 2 +-
 sys-libs/glibc/glibc-2.27-r6.ebuild | 2 +-
 sys-libs/glibc/glibc-2.28-r6.ebuild | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.19-r2.ebuild 
b/sys-libs/glibc/glibc-2.19-r2.ebuild
index 75f849f69dc..0fedbb8e940 100644
--- a/sys-libs/glibc/glibc-2.19-r2.ebuild
+++ b/sys-libs/glibc/glibc-2.19-r2.ebuild
@@ -539,7 +539,7 @@ sanity_prechecks() {
                if has_version ">${CATEGORY}/${P}-r10000" ; then
                        eerror "Sanity check to keep you from breaking your 
system:"
                        eerror " Downgrading glibc is not supported and a sure 
way to destruction."
-                       die "Aborting to save your system."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die 
"Aborting to save your system."
                fi
 
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then

diff --git a/sys-libs/glibc/glibc-2.26-r7.ebuild 
b/sys-libs/glibc/glibc-2.26-r7.ebuild
index bfbe9b01b03..34d8fb8a7ac 100644
--- a/sys-libs/glibc/glibc-2.26-r7.ebuild
+++ b/sys-libs/glibc/glibc-2.26-r7.ebuild
@@ -122,7 +122,7 @@ pkg_pretend() {
                if has_version ">${CATEGORY}/${P}-r10000" ; then
                        eerror "Sanity check to keep you from breaking your 
system:"
                        eerror " Downgrading glibc is not supported and a sure 
way to destruction"
-                       die "Aborting to save your system"
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die 
"Aborting to save your system."
                fi
 
                if ! glibc_run_test '#include <pwd.h>\nint main(){return 
getpwuid(0)==0;}\n'

diff --git a/sys-libs/glibc/glibc-2.27-r6.ebuild 
b/sys-libs/glibc/glibc-2.27-r6.ebuild
index 42be8144de4..f1409e36cf3 100644
--- a/sys-libs/glibc/glibc-2.27-r6.ebuild
+++ b/sys-libs/glibc/glibc-2.27-r6.ebuild
@@ -607,7 +607,7 @@ sanity_prechecks() {
                if has_version ">${CATEGORY}/${P}-r10000" ; then
                        eerror "Sanity check to keep you from breaking your 
system:"
                        eerror " Downgrading glibc is not supported and a sure 
way to destruction."
-                       die "Aborting to save your system."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die 
"Aborting to save your system."
                fi
 
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then

diff --git a/sys-libs/glibc/glibc-2.28-r6.ebuild 
b/sys-libs/glibc/glibc-2.28-r6.ebuild
index d40991f16ab..aa318b7e0f1 100644
--- a/sys-libs/glibc/glibc-2.28-r6.ebuild
+++ b/sys-libs/glibc/glibc-2.28-r6.ebuild
@@ -598,7 +598,7 @@ sanity_prechecks() {
                if has_version ">${CATEGORY}/${P}-r10000" ; then
                        eerror "Sanity check to keep you from breaking your 
system:"
                        eerror " Downgrading glibc is not supported and a sure 
way to destruction."
-                       die "Aborting to save your system."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die 
"Aborting to save your system."
                fi
 
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then

Reply via email to