aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-11-25 17:05:04 +0000
committerStuart Shelton <stuart@shelton.me>2016-11-25 17:05:04 +0000
commitaaa7d70f17e7f7a52865780e9ddef52b773045e9 (patch)
tree887eb86d2ff91d7290a56945e74a5ee784a9d403 /sys-libs/glibc
parentUpdate sys-apps/lm_sensors-3.4.0_p20160725 (diff)
downloadsrcshelton-aaa7d70f17e7f7a52865780e9ddef52b773045e9.tar.gz
srcshelton-aaa7d70f17e7f7a52865780e9ddef52b773045e9.tar.bz2
srcshelton-aaa7d70f17e7f7a52865780e9ddef52b773045e9.zip
Update eblits/pkg_pretend.eblit affecting sys-libs/glibc
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/files/eblits/pkg_pretend.eblit10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys-libs/glibc/files/eblits/pkg_pretend.eblit b/sys-libs/glibc/files/eblits/pkg_pretend.eblit
index 78dbd483..7ffd2a80 100644
--- a/sys-libs/glibc/files/eblits/pkg_pretend.eblit
+++ b/sys-libs/glibc/files/eblits/pkg_pretend.eblit
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: ff8f1c1a652ed52b32401a62e56ccbc6506cca07 $
+# $Id: 47e29872748cc5102b2ef768e506e2dc72b4d7ae $
glibc_compile_test() {
local ret save_cflags=${CFLAGS}
@@ -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"