1 |
commit: ee71a9eeb1562f5305fe579024b11d74f817db33 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 18 09:46:03 2021 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 18 09:48:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee71a9ee |
7 |
|
8 |
sys-devel/binutils: Remove old |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
11 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
12 |
|
13 |
sys-devel/binutils/Manifest | 2 - |
14 |
sys-devel/binutils/binutils-2.35.1-r1.ebuild | 451 --------------------------- |
15 |
2 files changed, 453 deletions(-) |
16 |
|
17 |
diff --git a/sys-devel/binutils/Manifest b/sys-devel/binutils/Manifest |
18 |
index 2888b483846..4e3d5bf7cbe 100644 |
19 |
--- a/sys-devel/binutils/Manifest |
20 |
+++ b/sys-devel/binutils/Manifest |
21 |
@@ -5,8 +5,6 @@ DIST binutils-2.33.1-patches-2.tar.xz 18636 BLAKE2B 0e0757329b6a83aeff4f4c450c95 |
22 |
DIST binutils-2.33.1.tar.xz 21490848 BLAKE2B c336a8412938dc8c224f40a763a8bea9937cca0462a8fb80e62f14aabe590107fc061a3f4b9327e1f4652cb026384d36a91b4766d4d469d2d0680932874b638c SHA512 b7a6767c6c7ca6b5cafa7080e6820b7bb3a53b7148348c438d99905defbdf0d30c9744a484ee01c9441a8153901808513366b15ba9533e20c9673c262ade36ac |
23 |
DIST binutils-2.34-patches-6.tar.xz 103028 BLAKE2B d0e866d0941d2b550c7d7f23530c6ee393fa13b4f2f27832f07790989476f11d1beddb5ad5a9be5c65c1d4dff9d4598d21adcb00c1d0490f69a99127f4527447 SHA512 e05ed8886acb5cb95a3e97c5bc0564215f7d44b604610f5c4545997fd9625d6de909c37063127e819926cd1548a48d3529dd3e82e98ee6a5dbaced028c57355d |
24 |
DIST binutils-2.34.tar.xz 21637796 BLAKE2B 07dd23916a7d27f71c3f160c8c16abe2bd4fce294c738c665a012a3be6a87dbe8160d0c38740524f9025e01d438e99b2a94bcf9f9f79ee214f5dd033de8aad3d SHA512 2c7976939dcf5e8c5b7374cccd39bfe803b1bec73c6abfa0eb17c24e1942574c6bdb874c66a092a82adc443182eacd8a5a8001c19a76101f0c7ba40c27de0bbd |
25 |
-DIST binutils-2.35.1-patches-2.tar.xz 72236 BLAKE2B 584cb3edbda28c69171ed64e941535f992150d86f25201cadd07b63daaa36bf76b07dc0aa8a4837da17d1672feb47a7b15f83efdeec5409e695965a10142147a SHA512 b704ebe82c4402f058f9c96991a89256a6b369d28f844bf020ed2c77766894d9a2ca0596cd609de7b389fa8cd52bfab674b6deb10ea2096e50aa57921be2083e |
26 |
-DIST binutils-2.35.1.tar.xz 22031720 BLAKE2B d3468da90b75e9b5fa7fbd64d3fdb0a4bc445e4cb7da5ae058f73a1e9d948b3e9438bc9f1b5b351db369b76a25960c9c1f58f828fd2c7646f555de45fa3c052b SHA512 94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb |
27 |
DIST binutils-2.35.2-patches-1.tar.xz 11836 BLAKE2B 0141349c9618992d1ab1e0309f7ed8fbc43b60a58be1dfed05eae8a8fee857241d9e112ae673da6fc9778767675f536ece818cb85567367bb1c8f87a0693623f SHA512 35de5f227c745c5fb800784fe657b2a6216faf43e2498e8481e7b0dc79b0d2f86b3b6a10b896e060319a77a51c61d2e1b7a951ae962b3a6ef8c1a2a261d9bb6c |
28 |
DIST binutils-2.35.2.tar.xz 22056908 BLAKE2B 9c392e0db2b482442f9476f30bd80cf2796321cbf7be79cf21af7bef167b6074c4ae009dcf9b438d2f2f4a23381c935176b2cfa85de1a526ab46e0fd844a7ca5 SHA512 9974ede5978d32e0d68fef23da48fa00bd06b0bff7ec45b00ca075c126d6bbe0cf2defc03ecc3f17bc6cc85b64271a13009c4049d7ba17de26e84e3a6e2c0348 |
29 |
DIST binutils-2.36.1-patches-1.tar.xz 11392 BLAKE2B 8112dda3f000d29952cbf58101f842ca519054bf9de6e22908881fe4d46cc1ea9a26db74ab00c64aedd3746eb058c19a978b8dc025ad8de07b6365c70a1803b2 SHA512 c6f5645b09d0c149f2eef8e992ff7181716dfb961f1155207a1349168f2d2fb76857cc224c27b4d764cfbc4ddec0630ef8c0a91d7bac489896f28de64651b367 |
30 |
|
31 |
diff --git a/sys-devel/binutils/binutils-2.35.1-r1.ebuild b/sys-devel/binutils/binutils-2.35.1-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index dd45dd4daf5..00000000000 |
34 |
--- a/sys-devel/binutils/binutils-2.35.1-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,451 +0,0 @@ |
37 |
-# Copyright 1999-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
- |
42 |
-inherit eutils libtool flag-o-matic gnuconfig multilib toolchain-funcs |
43 |
- |
44 |
-DESCRIPTION="Tools necessary to build programs" |
45 |
-HOMEPAGE="https://sourceware.org/binutils/" |
46 |
-LICENSE="GPL-3+" |
47 |
-IUSE="cet default-gold doc +gold multitarget +nls +plugins static-libs test vanilla" |
48 |
-REQUIRED_USE="default-gold? ( gold )" |
49 |
- |
50 |
-# Variables that can be set here (ignored for live ebuilds) |
51 |
-# PATCH_VER - the patchset version |
52 |
-# Default: empty, no patching |
53 |
-# PATCH_BINUTILS_VER - the binutils version in the patchset name |
54 |
-# - Default: PV |
55 |
-# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/... |
56 |
-# for the patchsets |
57 |
- |
58 |
-PATCH_VER=2 |
59 |
-PATCH_DEV=dilfridge |
60 |
- |
61 |
-if [[ ${PV} == 9999* ]]; then |
62 |
- inherit git-r3 |
63 |
- SLOT=${PV} |
64 |
-else |
65 |
- PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
66 |
- PATCH_DEV=${PATCH_DEV:-slyfox} |
67 |
- SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz" |
68 |
- [[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI} |
69 |
- https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
70 |
- SLOT=$(ver_cut 1-2) |
71 |
- # live ebuild |
72 |
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86" |
73 |
-fi |
74 |
- |
75 |
-# |
76 |
-# The cross-compile logic |
77 |
-# |
78 |
-export CTARGET=${CTARGET:-${CHOST}} |
79 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
80 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
81 |
- export CTARGET=${CATEGORY#cross-} |
82 |
- fi |
83 |
-fi |
84 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
85 |
- |
86 |
-# |
87 |
-# The dependencies |
88 |
-# |
89 |
-RDEPEND=" |
90 |
- >=sys-devel/binutils-config-3 |
91 |
- sys-libs/zlib |
92 |
-" |
93 |
-DEPEND="${RDEPEND}" |
94 |
-BDEPEND=" |
95 |
- doc? ( sys-apps/texinfo ) |
96 |
- test? ( |
97 |
- dev-util/dejagnu |
98 |
- sys-devel/bc |
99 |
- ) |
100 |
- nls? ( sys-devel/gettext ) |
101 |
- sys-devel/flex |
102 |
- virtual/yacc |
103 |
-" |
104 |
- |
105 |
-RESTRICT="!test? ( test )" |
106 |
- |
107 |
-PATCHES=("${FILESDIR}"/${PN}-2.35.1-cet.patch) |
108 |
- |
109 |
-MY_BUILDDIR=${WORKDIR}/build |
110 |
- |
111 |
-src_unpack() { |
112 |
- if [[ ${PV} == 9999* ]] ; then |
113 |
- EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/toolchain/binutils-patches.git" |
114 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/patches-git |
115 |
- git-r3_src_unpack |
116 |
- mv patches-git/9999 patch || die |
117 |
- |
118 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
119 |
- S=${WORKDIR}/binutils |
120 |
- EGIT_CHECKOUT_DIR=${S} |
121 |
- git-r3_src_unpack |
122 |
- else |
123 |
- unpack ${P}.tar.xz |
124 |
- |
125 |
- cd "${WORKDIR}" || die |
126 |
- unpack binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz |
127 |
- fi |
128 |
- |
129 |
- cd "${WORKDIR}" || die |
130 |
- mkdir -p "${MY_BUILDDIR}" || die |
131 |
-} |
132 |
- |
133 |
-src_prepare() { |
134 |
- local patchsetname |
135 |
- if [[ ${PV} == 9999* ]] ; then |
136 |
- patchsetname="from git master" |
137 |
- else |
138 |
- patchsetname="${PATCH_BINUTILS_VER}-${PATCH_VER}" |
139 |
- fi |
140 |
- |
141 |
- if [[ ! -z ${PATCH_VER} ]] || [[ ${PV} == 9999* ]] ; then |
142 |
- if ! use vanilla; then |
143 |
- einfo "Applying binutils patchset ${patchsetname}" |
144 |
- eapply "${WORKDIR}/patch" |
145 |
- einfo "Done." |
146 |
- fi |
147 |
- fi |
148 |
- |
149 |
- # This check should probably go somewhere else, like pkg_pretend. |
150 |
- if [[ ${CTARGET} == *-uclibc* ]] ; then |
151 |
- if grep -qs 'linux-gnu' "${S}"/ltconfig ; then |
152 |
- die "sorry, but this binutils doesn't yet support uClibc :(" |
153 |
- fi |
154 |
- fi |
155 |
- |
156 |
- # Make sure our explicit libdir paths don't get clobbered. #562460 |
157 |
- sed -i \ |
158 |
- -e 's:@bfdlibdir@:@libdir@:g' \ |
159 |
- -e 's:@bfdincludedir@:@includedir@:g' \ |
160 |
- {bfd,opcodes}/Makefile.in || die |
161 |
- |
162 |
- # Fix locale issues if possible #122216 |
163 |
- if [[ -e ${FILESDIR}/binutils-configure-LANG.patch ]] ; then |
164 |
- einfo "Fixing misc issues in configure files" |
165 |
- for f in $(find "${S}" -name configure -exec grep -l 'autoconf version 2.13' {} +) ; do |
166 |
- ebegin " Updating ${f/${S}\/}" |
167 |
- patch "${f}" "${FILESDIR}"/binutils-configure-LANG.patch >& "${T}"/configure-patch.log \ |
168 |
- || eerror "Please file a bug about this" |
169 |
- eend $? |
170 |
- done |
171 |
- fi |
172 |
- |
173 |
- # Fix conflicts with newer glibc #272594 |
174 |
- if [[ -e libiberty/testsuite/test-demangle.c ]] ; then |
175 |
- sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c |
176 |
- fi |
177 |
- |
178 |
- # Apply things from PATCHES and user dirs |
179 |
- default |
180 |
- |
181 |
- # Run misc portage update scripts |
182 |
- gnuconfig_update |
183 |
- elibtoolize --portage --no-uclibc |
184 |
-} |
185 |
- |
186 |
-toolchain-binutils_bugurl() { |
187 |
- printf "https://bugs.gentoo.org/" |
188 |
-} |
189 |
-toolchain-binutils_pkgversion() { |
190 |
- printf "Gentoo ${PV}" |
191 |
- [[ -n ${PATCH_VER} ]] && printf " p${PATCH_VER}" |
192 |
-} |
193 |
- |
194 |
-src_configure() { |
195 |
- # Setup some paths |
196 |
- LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
197 |
- INCPATH=${LIBPATH}/include |
198 |
- DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} |
199 |
- if is_cross ; then |
200 |
- TOOLPATH=/usr/${CHOST}/${CTARGET} |
201 |
- else |
202 |
- TOOLPATH=/usr/${CTARGET} |
203 |
- fi |
204 |
- BINPATH=${TOOLPATH}/binutils-bin/${PV} |
205 |
- |
206 |
- # Make sure we filter $LINGUAS so that only ones that |
207 |
- # actually work make it through #42033 |
208 |
- strip-linguas -u */po |
209 |
- |
210 |
- # Keep things sane |
211 |
- strip-flags |
212 |
- |
213 |
- local x |
214 |
- echo |
215 |
- for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do |
216 |
- einfo "$(printf '%10s' ${x}:) ${!x}" |
217 |
- done |
218 |
- echo |
219 |
- |
220 |
- cd "${MY_BUILDDIR}" |
221 |
- local myconf=() |
222 |
- |
223 |
- if use plugins ; then |
224 |
- myconf+=( --enable-plugins ) |
225 |
- fi |
226 |
- # enable gold (installed as ld.gold) and ld's plugin architecture |
227 |
- if use gold ; then |
228 |
- myconf+=( --enable-gold ) |
229 |
- if use default-gold; then |
230 |
- myconf+=( --enable-gold=default ) |
231 |
- fi |
232 |
- fi |
233 |
- |
234 |
- if use nls ; then |
235 |
- myconf+=( --without-included-gettext ) |
236 |
- else |
237 |
- myconf+=( --disable-nls ) |
238 |
- fi |
239 |
- |
240 |
- myconf+=( --with-system-zlib ) |
241 |
- |
242 |
- # For bi-arch systems, enable a 64bit bfd. This matches |
243 |
- # the bi-arch logic in toolchain.eclass. #446946 |
244 |
- # We used to do it for everyone, but it's slow on 32bit arches. #438522 |
245 |
- case $(tc-arch) in |
246 |
- ppc|sparc|x86) myconf+=( --enable-64-bit-bfd ) ;; |
247 |
- esac |
248 |
- |
249 |
- use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
250 |
- |
251 |
- [[ -n ${CBUILD} ]] && myconf+=( --build=${CBUILD} ) |
252 |
- |
253 |
- is_cross && myconf+=( |
254 |
- --with-sysroot="${EPREFIX}"/usr/${CTARGET} |
255 |
- --enable-poison-system-directories |
256 |
- ) |
257 |
- |
258 |
- # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+ |
259 |
- # on everyone in alpha (for now), we'll just enable it when possible |
260 |
- has_version ">=${CATEGORY}/glibc-2.5" && myconf+=( --enable-secureplt ) |
261 |
- has_version ">=sys-libs/glibc-2.5" && myconf+=( --enable-secureplt ) |
262 |
- |
263 |
- # mips can't do hash-style=gnu ... |
264 |
- if [[ $(tc-arch) != mips ]] ; then |
265 |
- myconf+=( --enable-default-hash-style=gnu ) |
266 |
- fi |
267 |
- |
268 |
- myconf+=( |
269 |
- --prefix="${EPREFIX}"/usr |
270 |
- --host=${CHOST} |
271 |
- --target=${CTARGET} |
272 |
- --datadir="${EPREFIX}"${DATAPATH} |
273 |
- --datarootdir="${EPREFIX}"${DATAPATH} |
274 |
- --infodir="${EPREFIX}"${DATAPATH}/info |
275 |
- --mandir="${EPREFIX}"${DATAPATH}/man |
276 |
- --bindir="${EPREFIX}"${BINPATH} |
277 |
- --libdir="${EPREFIX}"${LIBPATH} |
278 |
- --libexecdir="${EPREFIX}"${LIBPATH} |
279 |
- --includedir="${EPREFIX}"${INCPATH} |
280 |
- --enable-obsolete |
281 |
- --enable-shared |
282 |
- --enable-threads |
283 |
- # Newer versions (>=2.27) offer a configure flag now. |
284 |
- --enable-relro |
285 |
- # Newer versions (>=2.24) make this an explicit option. #497268 |
286 |
- --enable-install-libiberty |
287 |
- # Available from 2.35 on |
288 |
- --enable-textrel-check=warning |
289 |
- --disable-werror |
290 |
- --with-bugurl="$(toolchain-binutils_bugurl)" |
291 |
- --with-pkgversion="$(toolchain-binutils_pkgversion)" |
292 |
- $(use_enable static-libs static) |
293 |
- ${EXTRA_ECONF} |
294 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
295 |
- --disable-{gdb,libdecnumber,readline,sim} |
296 |
- # Strip out broken static link flags. |
297 |
- # https://gcc.gnu.org/PR56750 |
298 |
- --without-stage1-ldflags |
299 |
- # Change SONAME to avoid conflict across |
300 |
- # {native,cross}/binutils, binutils-libs. #666100 |
301 |
- --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st) |
302 |
- |
303 |
- # avoid automagic dependency on (currently prefix) systems |
304 |
- # systems with debuginfod library, bug #754753 |
305 |
- --without-debuginfod |
306 |
- |
307 |
- # Allow user to opt into CET for host libraries. |
308 |
- # Ideally we would like automagic-or-disabled here. |
309 |
- # But the check does not quite work on i686: bug #760926. |
310 |
- $(use_enable cet) |
311 |
- ) |
312 |
- echo ./configure "${myconf[@]}" |
313 |
- "${S}"/configure "${myconf[@]}" || die |
314 |
- |
315 |
- # Prevent makeinfo from running if doc is unset. |
316 |
- if ! use doc ; then |
317 |
- sed -i \ |
318 |
- -e '/^MAKEINFO/s:=.*:= true:' \ |
319 |
- Makefile || die |
320 |
- fi |
321 |
-} |
322 |
- |
323 |
-src_compile() { |
324 |
- cd "${MY_BUILDDIR}" |
325 |
- # see Note [tooldir hack for ldscripts] |
326 |
- emake tooldir="${EPREFIX}${TOOLPATH}" all |
327 |
- |
328 |
- # only build info pages if the user wants them |
329 |
- if use doc ; then |
330 |
- emake info |
331 |
- fi |
332 |
- |
333 |
- # we nuke the manpages when we're left with junk |
334 |
- # (like when we bootstrap, no perl -> no manpages) |
335 |
- find . -name '*.1' -a -size 0 -delete |
336 |
-} |
337 |
- |
338 |
-src_test() { |
339 |
- cd "${MY_BUILDDIR}" |
340 |
- |
341 |
- # bug 637066 |
342 |
- filter-flags -Wall -Wreturn-type |
343 |
- |
344 |
- emake -k check |
345 |
-} |
346 |
- |
347 |
-src_install() { |
348 |
- local x d |
349 |
- |
350 |
- cd "${MY_BUILDDIR}" |
351 |
- # see Note [tooldir hack for ldscripts] |
352 |
- emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install |
353 |
- rm -rf "${ED}"/${LIBPATH}/bin |
354 |
- use static-libs || find "${ED}" -name '*.la' -delete |
355 |
- |
356 |
- # Newer versions of binutils get fancy with ${LIBPATH} #171905 |
357 |
- cd "${ED}"/${LIBPATH} |
358 |
- for d in ../* ; do |
359 |
- [[ ${d} == ../${PV} ]] && continue |
360 |
- mv ${d}/* . || die |
361 |
- rmdir ${d} || die |
362 |
- done |
363 |
- |
364 |
- # Now we collect everything intp the proper SLOT-ed dirs |
365 |
- # When something is built to cross-compile, it installs into |
366 |
- # /usr/$CHOST/ by default ... we have to 'fix' that :) |
367 |
- if is_cross ; then |
368 |
- cd "${ED}"/${BINPATH} |
369 |
- for x in * ; do |
370 |
- mv ${x} ${x/${CTARGET}-} |
371 |
- done |
372 |
- |
373 |
- if [[ -d ${ED}/usr/${CHOST}/${CTARGET} ]] ; then |
374 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/include "${ED}"/${INCPATH} |
375 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/lib/* "${ED}"/${LIBPATH}/ |
376 |
- rm -r "${ED}"/usr/${CHOST}/{include,lib} |
377 |
- fi |
378 |
- fi |
379 |
- insinto ${INCPATH} |
380 |
- local libiberty_headers=( |
381 |
- # Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir. |
382 |
- demangle.h |
383 |
- dyn-string.h |
384 |
- fibheap.h |
385 |
- hashtab.h |
386 |
- libiberty.h |
387 |
- objalloc.h |
388 |
- splay-tree.h |
389 |
- ) |
390 |
- doins "${libiberty_headers[@]/#/${S}/include/}" |
391 |
- if [[ -d ${ED}/${LIBPATH}/lib ]] ; then |
392 |
- mv "${ED}"/${LIBPATH}/lib/* "${ED}"/${LIBPATH}/ |
393 |
- rm -r "${ED}"/${LIBPATH}/lib |
394 |
- fi |
395 |
- |
396 |
- # Generate an env.d entry for this binutils |
397 |
- insinto /etc/env.d/binutils |
398 |
- cat <<-EOF > "${T}"/env.d |
399 |
- TARGET="${CTARGET}" |
400 |
- VER="${PV}" |
401 |
- LIBPATH="${EPREFIX}${LIBPATH}" |
402 |
- EOF |
403 |
- newins "${T}"/env.d ${CTARGET}-${PV} |
404 |
- |
405 |
- # Handle documentation |
406 |
- if ! is_cross ; then |
407 |
- cd "${S}" |
408 |
- dodoc README |
409 |
- docinto bfd |
410 |
- dodoc bfd/ChangeLog* bfd/README bfd/PORTING bfd/TODO |
411 |
- docinto binutils |
412 |
- dodoc binutils/ChangeLog binutils/NEWS binutils/README |
413 |
- docinto gas |
414 |
- dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/NEWS gas/README* |
415 |
- docinto gprof |
416 |
- dodoc gprof/ChangeLog* gprof/TEST gprof/TODO gprof/bbconv.pl |
417 |
- docinto ld |
418 |
- dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO |
419 |
- docinto libiberty |
420 |
- dodoc libiberty/ChangeLog* libiberty/README |
421 |
- docinto opcodes |
422 |
- dodoc opcodes/ChangeLog* |
423 |
- fi |
424 |
- |
425 |
- # Remove shared info pages |
426 |
- rm -f "${ED}"/${DATAPATH}/info/{dir,configure.info,standards.info} |
427 |
- |
428 |
- # Trim all empty dirs |
429 |
- find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null |
430 |
-} |
431 |
- |
432 |
-pkg_postinst() { |
433 |
- # Make sure this ${CTARGET} has a binutils version selected |
434 |
- [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 |
435 |
- binutils-config ${CTARGET}-${PV} |
436 |
-} |
437 |
- |
438 |
-pkg_postrm() { |
439 |
- local current_profile=$(binutils-config -c ${CTARGET}) |
440 |
- |
441 |
- # If no other versions exist, then uninstall for this |
442 |
- # target ... otherwise, switch to the newest version |
443 |
- # Note: only do this if this version is unmerged. We |
444 |
- # rerun binutils-config if this is a remerge, as |
445 |
- # we want the mtimes on the symlinks updated (if |
446 |
- # it is the same as the current selected profile) |
447 |
- if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then |
448 |
- local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}') |
449 |
- choice=${choice//$'\n'/ } |
450 |
- choice=${choice/* } |
451 |
- if [[ -z ${choice} ]] ; then |
452 |
- binutils-config -u ${CTARGET} |
453 |
- else |
454 |
- binutils-config ${choice} |
455 |
- fi |
456 |
- elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then |
457 |
- binutils-config ${CTARGET}-${PV} |
458 |
- fi |
459 |
-} |
460 |
- |
461 |
-# Note [slotting support] |
462 |
-# ----------------------- |
463 |
-# Gentoo's layout for binutils files is non-standard as Gentoo |
464 |
-# supports slotted installation for binutils. Many tools |
465 |
-# still expect binutils to reside in known locations. |
466 |
-# binutils-config package restores symlinks into known locations, |
467 |
-# like: |
468 |
-# /usr/bin/${CTARGET}-<tool> |
469 |
-# /usr/bin/${CHOST}/${CTARGET}/lib/ldscrips |
470 |
-# /usr/include/ |
471 |
-# |
472 |
-# Note [tooldir hack for ldscripts] |
473 |
-# --------------------------------- |
474 |
-# Build system does not allow ./configure to tweak every location |
475 |
-# we need for slotting binutils hence all the shuffling in |
476 |
-# src_install(). This note is about SCRIPTDIR define handling. |
477 |
-# |
478 |
-# SCRIPTDIR defines 'ldscripts/' directory location. SCRIPTDIR value |
479 |
-# is set at build-time in ld/Makefile.am as: 'scriptdir = $(tooldir)/lib' |
480 |
-# and hardcoded as -DSCRIPTDIR='"$(scriptdir)"' at compile time. |
481 |
-# Thus we can't just move files around after compilation finished. |
482 |
-# |
483 |
-# Our goal is the following: |
484 |
-# - at build-time set scriptdir to point to symlinked location: |
485 |
-# ${TOOLPATH}: /usr/${CHOST} (or /usr/${CHOST}/${CTARGET} for cross-case) |
486 |
-# - at install-time set scriptdir to point to slotted location: |
487 |
-# ${LIBPATH}: /usr/$(get_libdir)/binutils/${CTARGET}/${PV} |