diff options
author | 2011-12-12 23:22:33 +0000 | |
---|---|---|
committer | 2011-12-12 23:22:33 +0000 | |
commit | a3c1657f5a281b9dbad49f4804b5246af3356bee (patch) | |
tree | d20294ba31abb2c0a9ae5e4a9b5b252e75e880e6 /sys-libs/glibc/files | |
parent | Version bump. (diff) | |
download | historical-a3c1657f5a281b9dbad49f4804b5246af3356bee.tar.gz historical-a3c1657f5a281b9dbad49f4804b5246af3356bee.tar.bz2 historical-a3c1657f5a281b9dbad49f4804b5246af3356bee.zip |
Reduce the scope of the __guard checking, and filter out more files w/ROOT #394453#3 by Andrea Zuccherelli.
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64
Diffstat (limited to 'sys-libs/glibc/files')
-rw-r--r-- | sys-libs/glibc/files/eblits/pkg_setup.eblit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys-libs/glibc/files/eblits/pkg_setup.eblit b/sys-libs/glibc/files/eblits/pkg_setup.eblit index 31a38f437716..8b712537b77b 100644 --- a/sys-libs/glibc/files/eblits/pkg_setup.eblit +++ b/sys-libs/glibc/files/eblits/pkg_setup.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.8 2011/12/12 17:47:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.9 2011/12/12 23:22:33 vapier Exp $ glibc_compile_test() { local ret save_cflags=${CFLAGS} @@ -97,7 +97,9 @@ eblit-glibc-pkg_setup() { ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" # Make sure host system is up to date #394453 - if has_version '<sys-libs/glibc-2.15' ; then + if has_version '<sys-libs/glibc-2.13' && \ + [[ -n $(scanelf -qys__guard -F'#s%F' "${ROOT}"/lib*/l*-*.so) ]] + then ebegin "Scanning system for __guard to see if you need to rebuild first ..." local files=$( scanelf -qys__guard -F'#s%F' \ @@ -105,7 +107,9 @@ eblit-glibc-pkg_setup() { "${ROOT}"/lib* \ "${ROOT}"/usr/*bin/ \ "${ROOT}"/usr/lib* | \ - grep -v '^/lib.*/libc-2.*.so$' + grep -v \ + -e "^${ROOT}/lib.*/libc-2.*.so$" \ + -e "^${ROOT}/lib.*/ld-2.*.so$" ) [[ -z ${files} ]] if ! eend $? ; then |