mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/glibc: expose a knob to downgrade glibc
It's not something to be used lightly. Useful when the damage was not
yet done to the rest of the system.
Usage example:
# I_ALLOW_TO_BREAK_MY_SYSTEM=yes emerge -v1 "=glibc-${old-version}"
Be prepared to deal with downgrade consequences like disappeared symbols
and versions of symbols
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
@@ -614,7 +614,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
|
||||
|
||||
@@ -621,7 +621,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
|
||||
|
||||
Reference in New Issue
Block a user