Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/glibc/files/eblits/
Date: Thu, 02 Jun 2016 08:08:19
Message-Id: 1464854887.a0b8f3652b5a1aa4dc766d9652fb72aeb15e0a32.heroxbd@gentoo
1 commit: a0b8f3652b5a1aa4dc766d9652fb72aeb15e0a32
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 08:07:09 2016 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 08:08:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0b8f365
7
8 sys-libs/glibc/files/eblits: Prefix support.
9
10 Bug: 473728
11
12 Package-Manager: portage-2.2.28
13
14 sys-libs/glibc/files/eblits/common.eblit | 2 +-
15 sys-libs/glibc/files/eblits/pkg_postinst.eblit | 8 ++++----
16 sys-libs/glibc/files/eblits/pkg_preinst.eblit | 4 ++--
17 sys-libs/glibc/files/eblits/src_configure.eblit | 14 +++++++-------
18 sys-libs/glibc/files/eblits/src_install.eblit | 4 ++--
19 5 files changed, 16 insertions(+), 16 deletions(-)
20
21 diff --git a/sys-libs/glibc/files/eblits/common.eblit b/sys-libs/glibc/files/eblits/common.eblit
22 index c0a989c..e56f10e 100644
23 --- a/sys-libs/glibc/files/eblits/common.eblit
24 +++ b/sys-libs/glibc/files/eblits/common.eblit
25 @@ -27,7 +27,7 @@ alt_headers() {
26 }
27 alt_build_headers() {
28 if [[ -z ${ALT_BUILD_HEADERS} ]] ; then
29 - ALT_BUILD_HEADERS=$(alt_headers)
30 + ALT_BUILD_HEADERS="${EPREFIX}$(alt_headers)"
31 if tc-is-cross-compiler ; then
32 ALT_BUILD_HEADERS=${SYSROOT}$(alt_headers)
33 if [[ ! -e ${ALT_BUILD_HEADERS}/linux/version.h ]] ; then
34
35 diff --git a/sys-libs/glibc/files/eblits/pkg_postinst.eblit b/sys-libs/glibc/files/eblits/pkg_postinst.eblit
36 index 074cf3a..8178fa1 100644
37 --- a/sys-libs/glibc/files/eblits/pkg_postinst.eblit
38 +++ b/sys-libs/glibc/files/eblits/pkg_postinst.eblit
39 @@ -6,9 +6,9 @@ eblit-glibc-pkg_postinst() {
40 # nothing to do if just installing headers
41 just_headers && return
42
43 - if ! tc-is-cross-compiler && [[ -x ${ROOT}/usr/sbin/iconvconfig ]] ; then
44 + if ! tc-is-cross-compiler && [[ -x ${EROOT}/usr/sbin/iconvconfig ]] ; then
45 # Generate fastloading iconv module configuration file.
46 - "${ROOT}"/usr/sbin/iconvconfig --prefix="${ROOT}"
47 + "${EROOT}"/usr/sbin/iconvconfig --prefix="${ROOT}"
48 fi
49
50 if ! is_crosscompile && [[ ${ROOT} == "/" ]] ; then
51 @@ -17,10 +17,10 @@ eblit-glibc-pkg_postinst() {
52 /sbin/telinit U 2>/dev/null
53
54 # if the host locales.gen contains no entries, we'll install everything
55 - local locale_list="${ROOT}etc/locale.gen"
56 + local locale_list="${EROOT}etc/locale.gen"
57 if [[ -z $(locale-gen --list --config "${locale_list}") ]] ; then
58 ewarn "Generating all locales; edit /etc/locale.gen to save time/space"
59 - locale_list="${ROOT}usr/share/i18n/SUPPORTED"
60 + locale_list="${EROOT}usr/share/i18n/SUPPORTED"
61 fi
62 locale-gen -j $(makeopts_jobs) --config "${locale_list}"
63 fi
64
65 diff --git a/sys-libs/glibc/files/eblits/pkg_preinst.eblit b/sys-libs/glibc/files/eblits/pkg_preinst.eblit
66 index cb8f461..0c78b55 100644
67 --- a/sys-libs/glibc/files/eblits/pkg_preinst.eblit
68 +++ b/sys-libs/glibc/files/eblits/pkg_preinst.eblit
69 @@ -11,7 +11,7 @@
70 glibc_sanity_check() {
71 cd / #228809
72
73 - # We enter ${D} so to avoid trouble if the path contains
74 + # We enter ${ED} so to avoid trouble if the path contains
75 # special characters; for instance if the path contains the
76 # colon character (:), then the linker will try to split it
77 # and look for the libraries in an unexpected place. This can
78 @@ -53,7 +53,7 @@ eblit-glibc-pkg_preinst() {
79 fi
80
81 [[ ${ROOT} != "/" ]] && return 0
82 - [[ -d ${D}/$(get_libdir) ]] || return 0
83 + [[ -d ${ED}/$(get_libdir) ]] || return 0
84 glibc_sanity_check
85
86 # For newer EAPIs, this was run in pkg_pretend.
87
88 diff --git a/sys-libs/glibc/files/eblits/src_configure.eblit b/sys-libs/glibc/files/eblits/src_configure.eblit
89 index be6f52c..5ecf9ab 100644
90 --- a/sys-libs/glibc/files/eblits/src_configure.eblit
91 +++ b/sys-libs/glibc/files/eblits/src_configure.eblit
92 @@ -105,11 +105,11 @@ glibc_do_configure() {
93 $(use_enable profile)
94 $(use_with gd)
95 --with-headers=$(alt_build_headers)
96 - --prefix=/usr
97 - --libdir=/usr/$(get_libdir)
98 - --mandir=/usr/share/man
99 - --infodir=/usr/share/info
100 - --libexecdir=/usr/$(get_libdir)/misc/glibc
101 + --prefix="${EPREFIX}/usr"
102 + --libdir='$(prefix)'/$(get_libdir)
103 + --mandir='$(prefix)'/share/man
104 + --infodir='$(prefix)'/share/info
105 + --libexecdir='$(libdir)'/misc/glibc
106 --with-bugurl=http://bugs.gentoo.org/
107 --with-pkgversion="$(glibc_banner)"
108 $(use_multiarch || echo --disable-multi-arch)
109 @@ -130,7 +130,7 @@ glibc_do_configure() {
110
111 # There is no configure option for this and we need to export it
112 # since the glibc build will re-run configure on itself
113 - export libc_cv_slibdir=/$(get_libdir)
114 + export libc_cv_slibdir="${EPREFIX}/$(get_libdir)"
115
116 # We take care of patching our binutils to use both hash styles,
117 # and many people like to force gnu hash style only, so disable
118 @@ -236,7 +236,7 @@ toolchain-glibc_headers_configure() {
119 --build=${CBUILD_OPT:-${CBUILD}}
120 --host=${CTARGET_OPT:-${CTARGET}}
121 --with-headers=$(alt_build_headers)
122 - --prefix=/usr
123 + --prefix="${EPREFIX}/usr"
124 ${EXTRA_ECONF}
125 )
126
127
128 diff --git a/sys-libs/glibc/files/eblits/src_install.eblit b/sys-libs/glibc/files/eblits/src_install.eblit
129 index 4a80560..f0017fa 100644
130 --- a/sys-libs/glibc/files/eblits/src_install.eblit
131 +++ b/sys-libs/glibc/files/eblits/src_install.eblit
132 @@ -102,7 +102,7 @@ toolchain-glibc_src_install() {
133 has ${ldso_abi} $(get_install_abis) || continue
134
135 ldso_name="$(alt_prefix)${ldso_abi_list[i+1]}"
136 - if [[ ! -L ${D}/${ldso_name} && ! -e ${D}/${ldso_name} ]] ; then
137 + if [[ ! -L ${ED}/${ldso_name} && ! -e ${ED}/${ldso_name} ]] ; then
138 dosym ../$(get_abi_LIBDIR ${ldso_abi})/${ldso_name##*/} ${ldso_name}
139 fi
140 done
141 @@ -111,7 +111,7 @@ toolchain-glibc_src_install() {
142 # binary to be setuid. This is because the default owners/perms will be
143 # exactly what we want.
144 if in_iuse suid && ! use suid ; then
145 - find "${D}" -name pt_chown -exec chmod -s {} +
146 + find "${ED}" -name pt_chown -exec chmod -s {} +
147 fi
148
149 #################################################################