diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-11-25 00:26:41 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-25 00:27:15 -0500 |
commit | 49c173976aa0cc4b8df93f3bd4985f27c9ca43b0 (patch) | |
tree | 676a50b34bb381ab2e02721ee9a718e7bab59fe7 /sys-libs/glibc | |
parent | sci-geosciences/liblas: bump to 1.8.1 (diff) | |
download | gentoo-49c173976aa0cc4b8df93f3bd4985f27c9ca43b0.tar.gz gentoo-49c173976aa0cc4b8df93f3bd4985f27c9ca43b0.tar.bz2 gentoo-49c173976aa0cc4b8df93f3bd4985f27c9ca43b0.zip |
sys-libs/glibc: permit downgrades between r# versions
The ABI should not be changed by Gentoo patchsets, so allow people to
move between -r# versions.
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r-- | sys-libs/glibc/files/eblits/pkg_pretend.eblit | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-libs/glibc/files/eblits/pkg_pretend.eblit b/sys-libs/glibc/files/eblits/pkg_pretend.eblit index ff8f1c1a652e..47e29872748c 100644 --- a/sys-libs/glibc/files/eblits/pkg_pretend.eblit +++ b/sys-libs/glibc/files/eblits/pkg_pretend.eblit @@ -78,13 +78,15 @@ eblit-glibc-pkg_pretend() { check_devpts fi - # prevent native builds from downgrading ... maybe update to allow people - # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) + # Prevent native builds from downgrading. if [[ ${MERGE_TYPE} != "buildonly" ]] && \ [[ ${ROOT} == "/" ]] && \ [[ ${CBUILD} == ${CHOST} ]] && \ [[ ${CHOST} == ${CTARGET} ]] ; then - if has_version '>'${CATEGORY}/${PF} ; then + # The high rev # is to allow people to downgrade between -r# versions. + # We want to block 2.20->2.19, but 2.20-r3->2.20-r2 should be fine. + # Hopefully we never actually use a r# this high. + 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" |