Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/heroxbd:master commit in: sys-libs/glibc/files/eblits/, sys-libs/glibc/
Date: Mon, 01 Dec 2014 12:43:31
Message-Id: 1417437773.f7fd99c2240435d847c9837025b1c50c7ec3fbbd.heroxbd@gentoo
1 commit: f7fd99c2240435d847c9837025b1c50c7ec3fbbd
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 1 12:42:53 2014 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 1 12:42:53 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=dev/heroxbd.git;a=commit;h=f7fd99c2
7
8 use the patch update from bug #473728
9
10 ---
11 sys-libs/glibc/Manifest | 6 ++--
12 sys-libs/glibc/files/eblits/common.eblit | 46 +++++++++----------------
13 sys-libs/glibc/files/eblits/pkg_preinst.eblit | 6 ++--
14 sys-libs/glibc/files/eblits/src_configure.eblit | 2 ++
15 sys-libs/glibc/files/eblits/src_install.eblit | 44 +++++++++++------------
16 5 files changed, 47 insertions(+), 57 deletions(-)
17
18 diff --git a/sys-libs/glibc/Manifest b/sys-libs/glibc/Manifest
19 index 84d85bf..a2573c8 100644
20 --- a/sys-libs/glibc/Manifest
21 +++ b/sys-libs/glibc/Manifest
22 @@ -25,13 +25,13 @@ AUX 2.5/glibc-2.5-hardened-pie.patch 1569 SHA256 ff9cde8857c5da89faa4039e2a81748
23 AUX 2.6/glibc-2.6-gentoo-stack_chk_fail.c 9545 SHA256 1410ded812be80d452eada5f9d6b9bd7bdb504c14f01cc27dce3e36b6f92b92a SHA512 360b77df2d19d14060e19e763878297bf042eccd5206ce4829a33c78c982b59b46144116d237a7cac73a22dd6cb4987c8dd50f1d16003baa22c2cb2942d2cbdf WHIRLPOOL 44e14dacdd258c46201a44c2c6aae4d975b960a914c24e49f2b39dae960636512049daa052d3cd8e8d93819d263327c28eac947efdb5d9e240d1bc6e9964016f
24 AUX 2.6/glibc-2.6-hardened-inittls-nosysenter.patch 8674 SHA256 cf58ded8fbe9fcb3dc094521feec2588c1520ff2c632b20c69d6a210325c4fcf SHA512 094b24474e42a9714f5298b0768d44f2c0e01b7d8c3b0a754bb16caa6c024106e8c0b1acbce670bacec1ead6653f8365397173d62cb8168b946c8f521ca155d2 WHIRLPOOL 9fa16256f9d3bd2f38023549c0bd4c932d3173b6c3f4ef66e19cdb3eff5cb2def6ec02fa72a7e57ba74da6d5f29b82ddb9692d59f6c694d45b5989fa0bfa6057
25 AUX 2.7/glibc-2.7-hardened-inittls-nosysenter.patch 8755 SHA256 b0b1bf0746f7160b89cf281502b95c38dec9cb948d6a50a907b84fd6230a2dc3 SHA512 50563c26e1fd2e71cb034c8a1b85e0e4075ac6467bae46d4cba0c105c940c5aa6531c39cf00c63ebf94be4e290ee485d7bd8239ff08dbc781db605b45c4aa38f WHIRLPOOL 2047148b53073bae4031ad864fc360112e2812115ec455142c82d4694a57387b49b36c98f400dd6f77f5dab3d419303faabe8183a16f0fd68387996c95888a43
26 -AUX eblits/common.eblit 12329 SHA256 dfa8671295a7aaaec16ce5a30132fbe1612b063eeedbebbe6cd1fa2a2bbfd24e SHA512 fb5042a8ea4a2816359df4513c215a80a989304ed94fed177ab35697b429ea4b1e7ecb6def92307932ddfa8337f766f0b634ea985382ecf02f124ba87a78dfb3 WHIRLPOOL 8e7ab80f3918ab8c6a94f3fc85cfd72ba9fdbb5baa9f9c331d75baf63fe421a0be5cdeb6d3c90dd700ed2fd17c039e0ed33628226cdc132f7a61743430580b92
27 +AUX eblits/common.eblit 11811 SHA256 d5e39c90ba19458a2cc3748f3659f095f80d203a4aaf86d738cbe8ee1835a8db SHA512 2f7d25e2cc03e6402f41c9cc5462f441bb881c4e6b9a77d25dd0649a6d0f0e7d174bce3a20cbf19e565c11d942b78436e163ac1587b8a77b3e3658d834d8631d WHIRLPOOL b74ea218554a5e5f762af4b35fe2cb66e0c70a843c622402202c07b9c22fe5d82add9ff41f0cab3c53987a319dc5f689e49bf459a6d8aa6556d036e5d18e2db9
28 AUX eblits/pkg_postinst.eblit 1085 SHA256 71b7a853cd825ed7044e69c8a76b6ee3e00d46614015960d411941c4d12f5d20 SHA512 fc39960f370f0a4d5ef4d794f6de14594a53730ec0b3a49956cfddced17196f485337b9cb29759f232ccd33b4e9af7affe92aac93752397aa2e29ff0c1e36809 WHIRLPOOL 22936beba3ab465ef32717c1659dffa6ef7094d59d0c8ce2455563d56ce371598deac783f365abe2c55a527e7bdb28d07733ee3ea0858e2df86c65d66d729031
29 -AUX eblits/pkg_preinst.eblit 2607 SHA256 4a6aadb05d7d9fd864011de5e42f7fcf94d03cd4e92c533d4d09c6279f74d354 SHA512 0e882b3e706d828e32d6fba78623241f9216c7070da7bc47c5eff923bbfa4815132d65f8983fb2d14a6a6f60b7bcecd7cbf4bd975f76fa3bc2fad22114368364 WHIRLPOOL bbf347d3389a82b94833dc4ae58138cffc265965f507f9c3d0e8eea42062ca04cd558ede5cff220ce8f52b0d43e90ffde9d33eda0b14021c4585293215792f86
30 +AUX eblits/pkg_preinst.eblit 2610 SHA256 9e2128b921342534ce8286f5b5d5e3d89435c1d0ef307f67438bdb27862fff25 SHA512 a3b48453670f0f31ffaddfe5d397f2a28a3748840bfcea621ccde6b7a0efec180ef528cf9bf9b99bf523b3c379c978d21d036df621e1726b5ea6f1555c361a92 WHIRLPOOL b4c4e720579bfb1b13e47aba5fa1bf40b9265432e7ba2ab21decf7f11c9a90dc3b5c0cb283bdbf8f903f27712854c48265cae4e3c926f4b06e6261fb47365170
31 AUX eblits/pkg_setup.eblit 3963 SHA256 385b1315ef36265375d4a552687437a59cade4dbc937aa99a313002abea63736 SHA512 db970d0bf24182993f10713234316f7a4392859a3d8eff419a2ed7220f4e159daf1b6944888d34bc777587b2e9160a1bd911526fc28512d47aa60ebe3029d4da WHIRLPOOL 8a00c72f2d81e39de89e43f0eb973315035702357aec986032af7085bc1e5ad02ba2c6341c22f1e967219e239de3e5c714a156117141f875821e116bc78de4cc
32 AUX eblits/src_compile.eblit 712 SHA256 2f7250659b1ea316dd67a0baa229b9248693b55738416e242bcacbd6efec96b2 SHA512 f812075621013eb9db7748e16997f7785e6029f691147ef63c9c5e4c0ec98ca47cad81a9aa135e69dd57296454d158191deced0cb47201343698d9495b8dd34e WHIRLPOOL 0692b14ac23a7f995e68c15fc91643bd72707f4072e319460a31014a91fe789794b10ac155021b48f02b9bea636305408ec56bb161664a21ec7f5ff86ccff7fe
33 AUX eblits/src_configure.eblit 7271 SHA256 736610669ac20a00cd5cd42f5d669c69f744398394bdd680cd9665284bd9dbc1 SHA512 eefc27858f5d9f2d3be8ba72ae451ac445b0db053963005175517e6c0d6c23dc53c1d167369c6729e61d518bc595ad8c006670ce5e5779845917eb187db6ec83 WHIRLPOOL 2db45c1561dd30c3a45baeb0a50a92977397b59732ae1eb443643e836f29c4ec510c3a9ad664d3513871914d141769606a21e7b337f1b236a1a7759a128bf583
34 -AUX eblits/src_install.eblit 7995 SHA256 87d461c083c280061880a41526ae2756051889f99a60f3a9d770e437b6d14541 SHA512 d0e9f9d5cf2febadc2e10dd59104ee8cc7175e619cb771f5283504598c617433458fd4337233da6042ddef34013008a2e47e5d576e04388a1dbf3f0e6cf50efe WHIRLPOOL 3645fc7c8ee062a99337e22df3abd70decc42b715ae8c77fd7508fe83a0d43c5972a5069994da828a379becc4947d4ca9af5ca0d8e438e917cf26e71b517ce12
35 +AUX eblits/src_install.eblit 7940 SHA256 e6b3c927b52ccb2afd3a080be482e34481a821f4f4280f426f8b5ddc29db8c30 SHA512 df13584e9fb4d307a7871e2a26347d944d089938f6e5f4c6538a09c23f42b683a4808dc426547af3127787a4b0420459fbdd52f5910ddea45ed1c247fe8b520e WHIRLPOOL 76ec59abcafc6a530ec7f243ab18dad7176196f60800dc743ba120a8e1503a0ff6159bcfa75e5ba0f5d32c25af07ebfa426a5100d8912b37a9dffd6b5f355c46
36 AUX eblits/src_prepare.eblit 2344 SHA256 7898682539bc85f126e491bc9c9a727cc5d922680f91dd409aec50c068ca93aa SHA512 30d706f26475db2dfe8cfaaa003c3a21988328ba0cc7cdca439d248c968430308d8d0afefa60302315d4c76011e4de51925307ee19d15eba10e24f1ede2b956f WHIRLPOOL 3a5ad0de18649805d97b0d78ea33e52608e7b6694ac567313db9e09da18a0bca9b95a027fe0181b50738b5bfe83ac49254d29b077cef36fb311a9707683261b5
37 AUX eblits/src_test.eblit 808 SHA256 8a652acb87e941fe767ddfbe0e0a42e3b5f208f5408606c5d9de22a85b1f8ebe SHA512 b8a37cd8294f5b6d2735d9971e7bc4bde1a7671540d6f76764d06203f5f179c143c487f57c57747c8e72e7a1d89d05928df51331a44f46d4290e9b89449eed63 WHIRLPOOL c33b33b71431f3438fbe350c8c1d3c67d17fdccef61687bc645397635875d09af8b4e2b545a4405429c2b8ee4a012fd753205e4b5ce3bb2f93e4341d34a18eb4
38 AUX eblits/src_unpack.eblit 3209 SHA256 82b23ecfe2fc3b7e93545af4b67e2525e1ee3c9f2d4eac3af435cf44e8254da4 SHA512 4f9cb34be2869864c0f814141bf1b6504b4138c3c672dd1fef9c5ad448c6fabab98445551cb364035978898c9e7829168ef702b068b4dadf325cf925c70ab42f WHIRLPOOL bdcf238477e6148dcdb8371eee40cb8ee920e039848e1088923922e615529fea70089fb5f1094630269d3a876c4752f41d0433b2948f5b5283a532938c9858df
39
40 diff --git a/sys-libs/glibc/files/eblits/common.eblit b/sys-libs/glibc/files/eblits/common.eblit
41 index 6dd5d29..265e605 100644
42 --- a/sys-libs/glibc/files/eblits/common.eblit
43 +++ b/sys-libs/glibc/files/eblits/common.eblit
44 @@ -2,35 +2,23 @@
45 # Distributed under the terms of the GNU General Public License v2
46 # $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/common.eblit,v 1.45 2014/10/18 23:09:51 vapier Exp $
47
48 -# There are many directory offsets here that can lead to confusion. We summarize the senarios in this table
49 -# P:=Prefix X:=Cross-Triplet
50 -# example of configure host: --with-headers
51 -# example of configure target: --libdir
52 -#
53 -# variation phase PX X P solution
54 -# -----------+-------------------+-----------------------+---------------+---------+----------------------------------------
55 -# host configure EPREFIX/usr/CTARGET/TPREFIX /usr/CTARGET TPREFIX $(alt_prefix)
56 -# target configure TPREFIX NULL TPREFIX $TPREFIX
57 -# -----------+-------------------+-----------------------+---------------+---------+----------------------------------------
58 -# host install_root D/EPREFIX/usr/CTARGET D/usr/CTARGET D ${D}/$(alt_prefix no-tp)
59 -# -----------+-------------------+-----------------------+---------------+---------+----------------------------------------
60 -# host ebuild helper ED/ /usr/CTARGET/TPREFIX /usr/CTARGET NULL $(alt_prefix no-ep)
61 -# host file D/EPREFIX/usr/CTARGET/TPREFIX D/usr/CTARGET D/TPREFIX $(alt_prefix)
62 -#
63 -# alt_prefix and TPREFIX in the table are defined as followed
64 -
65 : ${TPREFIX:=${EPREFIX}}
66
67 +# ROOT variable is not used in src_*; emulate that with $(alt_prefix root).
68 +# P:=Prefix X:=Cross-Triplet PX: Cross-Triplet-Prefix
69 +# phase PX X P solution
70 +# -------------------+-----------------------------+--------------+---------+-----------------------
71 +# configure_headers EPREFIX/usr/CTARGET/TPREFIX /usr/CTARGET EPREFIX $EPREFIX$(alt_prefix)
72 +# configure_target TPREFIX NULL TPREFIX $TPREFIX
73 +# -------------------+-----------------------------+--------------+---------+-----------------------
74 +# install_root D/ EPREFIX/usr/CTARGET /usr/CTARGET NULL $(alt_prefix root)
75 +# -------------------+-----------------------------+--------------+---------+-----------------------
76 +# ebuild helper ED/ /usr/CTARGET/TPREFIX /usr/CTARGET NULL $(alt_prefix)
77 alt_prefix() {
78 - # EPREFIX needs to be stripped before passing to portage helpers
79 - local prefix tprefix
80 if is_crosscompile; then
81 - prefix=$([[ $1 == no-ep ]] || echo ${EPREFIX})/usr/${CTARGET}
82 - [[ $1 == no-tp ]] || tprefix=${TPREFIX}
83 - else
84 - [[ $1 == no-tp ]] || [[ $1 == no-ep ]] || tprefix=${TPREFIX}
85 + echo -n "${EPREFIX}"/usr/${CTARGET}
86 + [[ $1 == root ]] || echo ${TPREFIX}
87 fi
88 - echo ${prefix}${tprefix}
89 }
90
91 if [[ ${EAPI:-0} == [012] ]] ; then
92 @@ -50,13 +38,13 @@ fi
93 # the whole system.
94 # note: intentionally undocumented.
95 alt_headers() {
96 - echo ${ALT_HEADERS:=$(alt_prefix $@)/usr/include}
97 + echo ${ALT_HEADERS:=$(alt_prefix)/usr/include}
98 }
99 alt_build_headers() {
100 if [[ -z ${ALT_BUILD_HEADERS} ]] ; then
101 - ALT_BUILD_HEADERS=$(alt_headers)
102 + ALT_BUILD_HEADERS="${EPREFIX}"$(alt_headers)
103 if tc-is-cross-compiler ; then
104 - ALT_BUILD_HEADERS=${SYSROOT}$(alt_headers)
105 + ALT_BUILD_HEADERS=${SYSROOT}"${EPREFIX}"$(alt_headers)
106 if [[ ! -e ${ALT_BUILD_HEADERS}/linux/version.h ]] ; then
107 local header_path=$(echo '#include <linux/version.h>' | $(tc-getCPP ${CTARGET}) ${CFLAGS} 2>&1 | grep -o '[^"]*linux/version.h')
108 ALT_BUILD_HEADERS=${header_path%/linux/version.h}
109 @@ -67,10 +55,10 @@ alt_build_headers() {
110 }
111
112 alt_libdir() {
113 - echo $(alt_prefix $@)/$(get_libdir)
114 + echo $(alt_prefix)/$(get_libdir)
115 }
116 alt_usrlibdir() {
117 - echo $(alt_prefix $@)/usr/$(get_libdir)
118 + echo $(alt_prefix)/usr/$(get_libdir)
119 }
120
121 builddir() {
122
123 diff --git a/sys-libs/glibc/files/eblits/pkg_preinst.eblit b/sys-libs/glibc/files/eblits/pkg_preinst.eblit
124 index f932b37..e454452 100644
125 --- a/sys-libs/glibc/files/eblits/pkg_preinst.eblit
126 +++ b/sys-libs/glibc/files/eblits/pkg_preinst.eblit
127 @@ -11,14 +11,14 @@
128 glibc_sanity_check() {
129 cd / #228809
130
131 - # We enter ${D} so to avoid trouble if the path contains
132 + # We enter ${ED} so to avoid trouble if the path contains
133 # special characters; for instance if the path contains the
134 # colon character (:), then the linker will try to split it
135 # and look for the libraries in an unexpected place. This can
136 # lead to unsafe code execution if the generated prefix is
137 # within a world-writable directory.
138 # (e.g. /var/tmp/portage:${HOSTNAME})
139 - pushd "${D}"/$(get_libdir) >/dev/null
140 + pushd "${ED}"/$(get_libdir) >/dev/null
141
142 local x striptest
143 for x in cal date env free ls true uname uptime ; do
144 @@ -50,7 +50,7 @@ eblit-glibc-pkg_preinst() {
145 fi
146
147 [[ ${ROOT} != "/" ]] && return 0
148 - [[ -d ${D}/$(get_libdir) ]] || return 0
149 + [[ -d ${ED}/$(get_libdir) ]] || return 0
150 glibc_sanity_check
151
152 # Make sure devpts is mounted correctly for use w/out setuid pt_chown.
153
154 diff --git a/sys-libs/glibc/files/eblits/src_configure.eblit b/sys-libs/glibc/files/eblits/src_configure.eblit
155 index 4c1e305..608344d 100644
156 --- a/sys-libs/glibc/files/eblits/src_configure.eblit
157 +++ b/sys-libs/glibc/files/eblits/src_configure.eblit
158 @@ -108,6 +108,8 @@ glibc_do_configure() {
159 $(use_with gd)
160 --with-headers="$(alt_build_headers)"
161 --prefix="${TPREFIX}"/usr
162 + --sysconfdir="${TPREFIX}"/etc
163 + --localstatedir="${TPREFIX}"/var
164 --libdir="${TPREFIX}"/usr/$(get_libdir)
165 --mandir="${TPREFIX}"/usr/share/man
166 --infodir="${TPREFIX}"/usr/share/info
167
168 diff --git a/sys-libs/glibc/files/eblits/src_install.eblit b/sys-libs/glibc/files/eblits/src_install.eblit
169 index 8df531d..e46924c 100644
170 --- a/sys-libs/glibc/files/eblits/src_install.eblit
171 +++ b/sys-libs/glibc/files/eblits/src_install.eblit
172 @@ -6,12 +6,12 @@ toolchain-glibc_src_install() {
173 local builddir=$(builddir $(want_linuxthreads && echo linuxthreads || echo nptl))
174 cd "${builddir}"
175
176 - emake install_root="${D}$(alt_prefix no-tp)" install || die
177 + emake install_root="${D}$(alt_prefix root)" install || die
178
179 if want_linuxthreads && want_nptl ; then
180 einfo "Installing NPTL to $(alt_libdir)/tls/..."
181 cd "$(builddir nptl)"
182 - dodir $(alt_libdir no-ep)/tls $(alt_usrlibdir no-ep)/nptl
183 + dodir $(alt_libdir)/tls $(alt_usrlibdir)/nptl
184
185 local l src_lib
186 for l in libc libm librt libpthread libthread_db ; do
187 @@ -22,33 +22,33 @@ toolchain-glibc_src_install() {
188 else
189 src_lib=$(eval echo */${l})
190 fi
191 - cp -a ${src_lib} "${D}"$(alt_libdir)/tls/${l} || die "copying nptl ${l}"
192 - fperms a+rx $(alt_libdir no-ep)/tls/${l}
193 - dosym ${l} $(alt_libdir no-ep)/tls/$(scanelf -qSF'%S#F' ${src_lib})
194 + cp -a ${src_lib} "${ED}"$(alt_libdir)/tls/${l} || die "copying nptl ${l}"
195 + fperms a+rx $(alt_libdir)/tls/${l}
196 + dosym ${l} $(alt_libdir)/tls/$(scanelf -qSF'%S#F' ${src_lib})
197
198 # then grab the linker script or the symlink ...
199 - if [[ -L ${D}$(alt_usrlibdir)/${l} ]] ; then
200 - dosym $(alt_libdir no-ep)/tls/${l} $(alt_usrlibdir no-ep)/nptl/${l}
201 + if [[ -L ${ED}$(alt_usrlibdir)/${l} ]] ; then
202 + dosym $(alt_libdir)/tls/${l} $(alt_usrlibdir)/nptl/${l}
203 else
204 sed \
205 -e "s:/${l}:/tls/${l}:g" \
206 -e "s:/${l/%.so/_nonshared.a}:/nptl/${l/%.so/_nonshared.a}:g" \
207 - "${D}"$(alt_usrlibdir)/${l} > "${D}"$(alt_usrlibdir)/nptl/${l}
208 + "${ED}"$(alt_usrlibdir)/${l} > "${ED}"$(alt_usrlibdir)/nptl/${l}
209 fi
210
211 # then grab the static lib ...
212 src_lib=${src_lib/%.so/.a}
213 [[ ! -e ${src_lib} ]] && src_lib=${src_lib/%.a/_pic.a}
214 - cp -a ${src_lib} "${D}"$(alt_usrlibdir)/nptl/ || die "copying nptl ${src_lib}"
215 + cp -a ${src_lib} "${ED}"$(alt_usrlibdir)/nptl/ || die "copying nptl ${src_lib}"
216 src_lib=${src_lib/%.a/_nonshared.a}
217 if [[ -e ${src_lib} ]] ; then
218 - cp -a ${src_lib} "${D}"$(alt_usrlibdir)/nptl/ || die "copying nptl ${src_lib}"
219 + cp -a ${src_lib} "${ED}"$(alt_usrlibdir)/nptl/ || die "copying nptl ${src_lib}"
220 fi
221 done
222
223 # use the nptl linker instead of the linuxthreads one as the linuxthreads
224 # one may lack TLS support and that can be really bad for business
225 - cp -a elf/ld.so "${D}"$(alt_libdir)/$(scanelf -qSF'%S#F' elf/ld.so) || die "copying nptl interp"
226 + cp -a elf/ld.so "${ED}"$(alt_libdir)/$(scanelf -qSF'%S#F' elf/ld.so) || die "copying nptl interp"
227 fi
228
229 # We'll take care of the cache ourselves
230 @@ -94,15 +94,15 @@ toolchain-glibc_src_install() {
231 )
232 ;;
233 esac
234 - if [[ ${SYMLINK_LIB} == "yes" ]] && [[ ! -e ${D}/$(alt_prefix)/lib ]] ; then
235 - dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) $(alt_prefix no-tp)/lib
236 + if [[ ${SYMLINK_LIB} == "yes" ]] && [[ ! -e ${ED}/$(alt_prefix)/lib ]] ; then
237 + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) $(alt_prefix)/lib
238 fi
239 for (( i = 0; i < ${#ldso_abi_list[@]}; i += 2 )) ; do
240 ldso_abi=${ldso_abi_list[i]}
241 has ${ldso_abi} $(get_install_abis) || continue
242
243 - ldso_name="$(alt_prefix no-ep)${ldso_abi_list[i+1]}"
244 - if [[ ! -L ${D}/${ldso_name} && ! -e ${D}/${ldso_name} ]] ; then
245 + ldso_name="$(alt_prefix)${ldso_abi_list[i+1]}"
246 + if [[ ! -L ${ED}/${ldso_name} && ! -e ${ED}/${ldso_name} ]] ; then
247 dosym ../$(get_abi_LIBDIR ${ldso_abi})/${ldso_name##*/} ${ldso_name}
248 fi
249 done
250 @@ -111,7 +111,7 @@ toolchain-glibc_src_install() {
251 # binary to be setuid. This is because the default owners/perms will be
252 # exactly what we want.
253 if in_iuse suid && ! use suid ; then
254 - find "${D}" -name pt_chown -exec chmod -s {} +
255 + find "${ED}" -name pt_chown -exec chmod -s {} +
256 fi
257
258 #################################################################
259 @@ -124,12 +124,12 @@ toolchain-glibc_src_install() {
260 # gcc likes to use relative paths to get to its multilibs like
261 # /usr/lib/../lib64/. So while we don't install any files into
262 # /usr/lib/, we do need it to exist.
263 - cd "${D}"$(alt_libdir)/..
264 + cd "${ED}"$(alt_libdir)/..
265 [[ -e lib ]] || mkdir lib
266 - cd "${D}"$(alt_usrlibdir)/..
267 + cd "${ED}"$(alt_usrlibdir)/..
268 [[ -e lib ]] || mkdir lib
269
270 - dosym usr/include $(alt_prefix no-ep)/sys-include
271 + dosym usr/include $(alt_prefix)/sys-include
272 return 0
273 fi
274
275 @@ -202,12 +202,12 @@ toolchain-glibc_src_install() {
276 toolchain-glibc_headers_install() {
277 local builddir=$(builddir "headers")
278 cd "${builddir}"
279 - emake install_root="${D}$(alt_prefix no-tp)" install-headers || die
280 + emake install_root="${D}$(alt_prefix root)" install-headers || die
281 if ! version_is_at_least 2.16 ; then
282 - insinto $(alt_headers no-ep)/bits
283 + insinto $(alt_headers)/bits
284 doins bits/stdio_lim.h || die
285 fi
286 - insinto $(alt_headers no-ep)/gnu
287 + insinto $(alt_headers)/gnu
288 doins "${S}"/include/gnu/stubs.h || die "doins include gnu"
289 # Make sure we install the sys-include symlink so that when
290 # we build a 2nd stage cross-compiler, gcc finds the target