toolchain-glibc.eclass: allow glibc dongrade on I_ALLOW_TO_BREAK_MY_SYSTEM
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 12 Oct 2019 19:46:49 +0000 (20:46 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 12 Oct 2019 20:03:05 +0000 (21:03 +0100)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain-glibc.eclass

index 4aa06db552935188818f918a2a216251f12b86b6..30781fed7775be6c4798accc570fbe98841bab2f 100644 (file)
@@ -516,7 +516,7 @@ toolchain-glibc_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'