Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/glibc: glibc-2.9_p20081201-r2.ebuild ChangeLog
Date: Sun, 01 Mar 2009 21:06:24
Message-Id: E1Ldsre-00037L-Ds@stork.gentoo.org
1 vapier 09/03/01 21:06:22
2
3 Modified: glibc-2.9_p20081201-r2.ebuild ChangeLog
4 Log:
5 Add support for pkg_* funcs with eblits.
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.4 sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild?rev=1.4&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild?rev=1.4&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild?r1=1.3&r2=1.4
14
15 Index: glibc-2.9_p20081201-r2.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild,v
18 retrieving revision 1.3
19 retrieving revision 1.4
20 diff -u -r1.3 -r1.4
21 --- glibc-2.9_p20081201-r2.ebuild 24 Feb 2009 22:56:33 -0000 1.3
22 +++ glibc-2.9_p20081201-r2.ebuild 1 Mar 2009 21:06:22 -0000 1.4
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2009 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild,v 1.3 2009/02/24 22:56:33 kumba Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.9_p20081201-r2.ebuild,v 1.4 2009/03/01 21:06:22 vapier Exp $
28
29 inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
30
31 @@ -24,7 +24,7 @@
32 fi
33 MANPAGE_VER="" # pregenerated manpages
34 INFOPAGE_VER="" # pregenerated infopages
35 -PATCH_VER="4" # Gentoo patchset
36 +PATCH_VER="5" # Gentoo patchset
37 PORTS_VER=${RELEASE_VER} # version of glibc ports addon
38 LIBIDN_VER="" # version of libidn addon
39 LT_VER="" # version of linuxthreads addon
40 @@ -135,6 +135,7 @@
41 eblit-include() {
42 local skipable=false
43 [[ $1 == "--skip" ]] && skipable=true && shift
44 + [[ $1 == pkg_* ]] && skipable=true
45
46 local e v func=$1 ver=$2
47 [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
48 @@ -161,7 +162,7 @@
49 eblit-include --skip common "${*:2}"
50 eblit-include "$@"
51 eblit-run-maybe eblit-$1-pre
52 - eblit-${PN}-$1 || die
53 + eblit-${PN}-$1
54 eblit-run-maybe eblit-$1-post
55 }
56
57 @@ -170,6 +171,15 @@
58 src_test() { eblit-run src_test ; }
59 src_install() { eblit-run src_install ; }
60
61 +# FILESDIR might not be available during binpkg install
62 +for x in setup {pre,post}inst ; do
63 + e="${FILESDIR}/eblits/pkg_${x}.eblit"
64 + if [[ -e ${e} ]] ; then
65 + . "${e}"
66 + eval "pkg_${x}() { eblit-run pkg_${x} ; }"
67 + fi
68 +done
69 +
70 eblit-src_unpack-post() {
71 if use hardened ; then
72 cd "${S}"
73 @@ -217,147 +227,3 @@
74 du -b "${T}"/${tarball}.tar.lzma
75 done
76 }
77 -
78 -pkg_setup() {
79 - # prevent native builds from downgrading ... maybe update to allow people
80 - # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2)
81 - if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
82 - if has_version '>'${CATEGORY}/${PF} ; then
83 - eerror "Sanity check to keep you from breaking your system:"
84 - eerror " Downgrading glibc is not supported and a sure way to destruction"
85 - die "aborting to save your system"
86 - fi
87 - fi
88 -
89 - # users have had a chance to phase themselves, time to give em the boot
90 - if [[ -e ${ROOT}/etc/locale.gen ]] && [[ -e ${ROOT}/etc/locales.build ]] ; then
91 - eerror "You still haven't deleted ${ROOT}/etc/locales.build."
92 - eerror "Do so now after making sure ${ROOT}/etc/locale.gen is kosher."
93 - die "lazy upgrader detected"
94 - fi
95 -
96 - if [[ ${CTARGET} == i386-* ]] ; then
97 - eerror "i386 CHOSTs are no longer supported."
98 - eerror "Chances are you don't actually want/need i386."
99 - eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml"
100 - die "please fix your CHOST"
101 - fi
102 -
103 - if [[ -n ${LT_VER} ]] ; then
104 - if use nptlonly && ! use nptl ; then
105 - eerror "If you want nptlonly, add nptl to your USE too ;p"
106 - die "nptlonly without nptl"
107 - fi
108 - fi
109 -
110 - if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then
111 - ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS."
112 - ewarn "This will result in a 50% performance penalty, which is probably not what you want."
113 - fi
114 -
115 - use hardened && ! gcc-specs-pie && \
116 - ewarn "PIE hardening not applied, as your compiler doesn't default to PIE"
117 -}
118 -
119 -fix_lib64_symlinks() {
120 - # the original Gentoo/AMD64 devs decided that since 64bit is the native
121 - # bitdepth for AMD64, lib should be used for 64bit libraries. however,
122 - # this ignores the FHS and breaks multilib horribly... especially
123 - # since it wont even work without a lib64 symlink anyways. *rolls eyes*
124 - # see bug 59710 for more information.
125 - # Travis Tilley <lv@g.o> (08 Aug 2004)
126 - if [ -L ${ROOT}/lib64 ] ; then
127 - ewarn "removing /lib64 symlink and moving lib to lib64..."
128 - ewarn "dont hit ctrl-c until this is done"
129 - rm ${ROOT}/lib64
130 - # now that lib64 is gone, nothing will run without calling ld.so
131 - # directly. luckily the window of brokenness is almost non-existant
132 - use amd64 && /lib/ld-linux-x86-64.so.2 /bin/mv ${ROOT}/lib ${ROOT}/lib64
133 - use ppc64 && /lib/ld64.so.1 /bin/mv ${ROOT}/lib ${ROOT}/lib64
134 - # all better :)
135 - ldconfig
136 - ln -s lib64 ${ROOT}/lib
137 - einfo "done! :-)"
138 - einfo "fixed broken lib64/lib symlink in ${ROOT}"
139 - fi
140 - if [ -L ${ROOT}/usr/lib64 ] ; then
141 - rm ${ROOT}/usr/lib64
142 - mv ${ROOT}/usr/lib ${ROOT}/usr/lib64
143 - ln -s lib64 ${ROOT}/usr/lib
144 - einfo "fixed broken lib64/lib symlink in ${ROOT}/usr"
145 - fi
146 - if [ -L ${ROOT}/usr/X11R6/lib64 ] ; then
147 - rm ${ROOT}/usr/X11R6/lib64
148 - mv ${ROOT}/usr/X11R6/lib ${ROOT}/usr/X11R6/lib64
149 - ln -s lib64 ${ROOT}/usr/X11R6/lib
150 - einfo "fixed broken lib64/lib symlink in ${ROOT}/usr/X11R6"
151 - fi
152 -}
153 -
154 -pkg_preinst() {
155 - # nothing to do if just installing headers
156 - just_headers && return
157 -
158 - # PPC64+others may want to eventually be added to this logic if they
159 - # decide to be multilib compatible and FHS compliant. note that this
160 - # chunk of FHS compliance only applies to 64bit archs where 32bit
161 - # compatibility is a major concern (not IA64, for example).
162 -
163 - # amd64's 2005.0 is the first amd64 profile to not need this code.
164 - # 2005.0 is setup properly, and this is executed as part of the
165 - # 2004.3 -> 2005.0 upgrade script.
166 - # It can be removed after 2004.3 has been purged from portage.
167 - { use amd64 || use ppc64; } && [ "$(get_libdir)" == "lib64" ] && ! has_multilib_profile && fix_lib64_symlinks
168 -
169 - # it appears that /lib/tls is sometimes not removed. See bug
170 - # 69258 for more info.
171 - if [[ -d ${ROOT}/$(alt_libdir)/tls ]] && [[ ! -d ${D}/$(alt_libdir)/tls ]] ; then
172 - ewarn "nptlonly or -nptl in USE, removing /${ROOT}$(alt_libdir)/tls..."
173 - rm -r "${ROOT}"/$(alt_libdir)/tls || die
174 - fi
175 -
176 - # simple test to make sure our new glibc isnt completely broken.
177 - # make sure we don't test with statically built binaries since
178 - # they will fail. also, skip if this glibc is a cross compiler.
179 - [[ ${ROOT} != "/" ]] && return 0
180 - [[ -d ${D}/$(get_libdir) ]] || return 0
181 - cd / #228809
182 - local x striptest
183 - for x in date env ls true uname ; do
184 - x=$(type -p ${x})
185 - [[ -z ${x} ]] && continue
186 - striptest=$(LC_ALL="C" file -L ${x} 2>/dev/null)
187 - [[ -z ${striptest} ]] && continue
188 - [[ ${striptest} == *"statically linked"* ]] && continue
189 - "${D}"/$(get_libdir)/ld-*.so \
190 - --library-path "${D}"/$(get_libdir) \
191 - ${x} > /dev/null \
192 - || die "simple run test (${x}) failed"
193 - done
194 -}
195 -
196 -pkg_postinst() {
197 - # nothing to do if just installing headers
198 - just_headers && return
199 -
200 - if ! tc-is-cross-compiler && [[ -x ${ROOT}/usr/sbin/iconvconfig ]] ; then
201 - # Generate fastloading iconv module configuration file.
202 - "${ROOT}"/usr/sbin/iconvconfig --prefix="${ROOT}"
203 - fi
204 -
205 - if ! is_crosscompile && [[ ${ROOT} == "/" ]] ; then
206 - # Reload init ... if in a chroot or a diff init package, ignore
207 - # errors from this step #253697
208 - /sbin/telinit U 2>/dev/null
209 -
210 - # if the host locales.gen contains no entries, we'll install everything
211 - local locale_list="${ROOT}etc/locale.gen"
212 - if [[ -z $(locale-gen --list --config "${locale_list}") ]] ; then
213 - ewarn "Generating all locales; edit /etc/locale.gen to save time/space"
214 - locale_list="${ROOT}usr/share/i18n/SUPPORTED"
215 - fi
216 - local x jobs
217 - for x in ${MAKEOPTS} ; do [[ ${x} == -j* ]] && jobs=${x#-j} ; done
218 - locale-gen -j ${jobs:-1} --config "${locale_list}"
219 - fi
220 -}
221
222
223
224 1.612 sys-libs/glibc/ChangeLog
225
226 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/ChangeLog?rev=1.612&view=markup
227 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/ChangeLog?rev=1.612&content-type=text/plain
228 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/glibc/ChangeLog?r1=1.611&r2=1.612
229
230 Index: ChangeLog
231 ===================================================================
232 RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v
233 retrieving revision 1.611
234 retrieving revision 1.612
235 diff -u -r1.611 -r1.612
236 --- ChangeLog 24 Feb 2009 22:56:33 -0000 1.611
237 +++ ChangeLog 1 Mar 2009 21:06:22 -0000 1.612
238 @@ -1,6 +1,11 @@
239 # ChangeLog for sys-libs/glibc
240 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
241 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.611 2009/02/24 22:56:33 kumba Exp $
242 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.612 2009/03/01 21:06:22 vapier Exp $
243 +
244 + 01 Mar 2009; Mike Frysinger <vapier@g.o>
245 + +files/eblits/pkg_postinst.eblit, +files/eblits/pkg_preinst.eblit,
246 + +files/eblits/pkg_setup.eblit, glibc-2.9_p20081201-r2.ebuild:
247 + Add support for pkg_* funcs with eblits.
248
249 24 Feb 2009; Joshua Kinard <kumba@g.o>
250 glibc-2.9_p20081201-r2.ebuild: