/[gentoo-x86]/sys-libs/glibc/files/eblits/pkg_setup.eblit
Gentoo

Diff of /sys-libs/glibc/files/eblits/pkg_setup.eblit

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.7 2011/11/16 16:07:46 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_setup.eblit,v 1.8 2011/12/12 17:47:28 vapier Exp $
4 4
5glibc_compile_test() { 5glibc_compile_test() {
6 local ret save_cflags=${CFLAGS} 6 local ret save_cflags=${CFLAGS}
7 CFLAGS+=" $1" 7 CFLAGS+=" $1"
8 shift 8 shift
93 ewarn "hypervisor, which is probably not what you want." 93 ewarn "hypervisor, which is probably not what you want."
94 fi 94 fi
95 95
96 use hardened && ! gcc-specs-pie && \ 96 use hardened && ! gcc-specs-pie && \
97 ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" 97 ewarn "PIE hardening not applied, as your compiler doesn't default to PIE"
98
99 # Make sure host system is up to date #394453
100 if has_version '<sys-libs/glibc-2.15' ; then
101 ebegin "Scanning system for __guard to see if you need to rebuild first ..."
102 local files=$(
103 scanelf -qys__guard -F'#s%F' \
104 "${ROOT}"/*bin/ \
105 "${ROOT}"/lib* \
106 "${ROOT}"/usr/*bin/ \
107 "${ROOT}"/usr/lib* | \
108 grep -v '^/lib.*/libc-2.*.so$'
109 )
110 [[ -z ${files} ]]
111 if ! eend $? ; then
112 eerror "Your system still has old SSP __guard symbols. You need to"
113 eerror "rebuild all the packages that provide these files first:"
114 eerror "${files}"
115 die "old __guard detected"
116 fi
117 fi
98} 118}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20