1 |
commit: 68c74e2ec19c6b5a24b8346183e7a0ffa4e03aae |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 11:00:34 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 11:22:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68c74e2e |
7 |
|
8 |
sys-devel/binutils-hppa64: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
sys-devel/binutils-hppa64/Manifest | 6 - |
14 |
.../binutils-hppa64/binutils-hppa64-2.32-r1.ebuild | 443 --------------------- |
15 |
.../binutils-hppa64/binutils-hppa64-2.33.1.ebuild | 438 -------------------- |
16 |
.../binutils-hppa64/binutils-hppa64-2.34-r2.ebuild | 443 --------------------- |
17 |
4 files changed, 1330 deletions(-) |
18 |
|
19 |
diff --git a/sys-devel/binutils-hppa64/Manifest b/sys-devel/binutils-hppa64/Manifest |
20 |
index e6650c6b7a5..bd3fc8a6439 100644 |
21 |
--- a/sys-devel/binutils-hppa64/Manifest |
22 |
+++ b/sys-devel/binutils-hppa64/Manifest |
23 |
@@ -1,9 +1,3 @@ |
24 |
-DIST binutils-2.32-patches-2.tar.xz 145672 BLAKE2B 8218e621f99cb4bcd1638c3011449b94480d207eaeb79cf75c0072e0f1a86bfd1603fc4515bc40d3ac1921a18b9a211b20568f59b11b13eb44e6cff1329c5af9 SHA512 55c25a603f6175af3ade6848e5c1faba06a147d72e9a4f53d44502d97db76499485a67b278a654d18884714a7bf7b360c77c9e42dba3cdc188f805bfe461f09f |
25 |
-DIST binutils-2.32.tar.xz 20774880 BLAKE2B d1bdbd9c8487c091665c197974ce4bdf520b7a67ed6997a81b87e6a0af9514a091458244f583acec5ae580ac2ee5e908f67f483b8e5263cd18ced794cb235da6 SHA512 d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a |
26 |
-DIST binutils-2.33.1-patches-1.tar.xz 17944 BLAKE2B 811ad416fe9c059f645856a3123ed32303afe1d0f166a15cb6de0673b5494fdcc4c165da4a68eb7ab73f007618e3a97a5578c4b47de21e57fe501d6a21b6d595 SHA512 63b439637206d21e46d2b79383b38da2b28365a0fdea1f5ac3b665cd05e0b55cd1d7763c05567a5f7ae2c645d2ae639a27e465d535b928d9f8f0e6b94f31e1f7 |
27 |
-DIST binutils-2.33.1.tar.xz 21490848 BLAKE2B c336a8412938dc8c224f40a763a8bea9937cca0462a8fb80e62f14aabe590107fc061a3f4b9327e1f4652cb026384d36a91b4766d4d469d2d0680932874b638c SHA512 b7a6767c6c7ca6b5cafa7080e6820b7bb3a53b7148348c438d99905defbdf0d30c9744a484ee01c9441a8153901808513366b15ba9533e20c9673c262ade36ac |
28 |
-DIST binutils-2.34-patches-6.tar.xz 103028 BLAKE2B d0e866d0941d2b550c7d7f23530c6ee393fa13b4f2f27832f07790989476f11d1beddb5ad5a9be5c65c1d4dff9d4598d21adcb00c1d0490f69a99127f4527447 SHA512 e05ed8886acb5cb95a3e97c5bc0564215f7d44b604610f5c4545997fd9625d6de909c37063127e819926cd1548a48d3529dd3e82e98ee6a5dbaced028c57355d |
29 |
-DIST binutils-2.34.tar.xz 21637796 BLAKE2B 07dd23916a7d27f71c3f160c8c16abe2bd4fce294c738c665a012a3be6a87dbe8160d0c38740524f9025e01d438e99b2a94bcf9f9f79ee214f5dd033de8aad3d SHA512 2c7976939dcf5e8c5b7374cccd39bfe803b1bec73c6abfa0eb17c24e1942574c6bdb874c66a092a82adc443182eacd8a5a8001c19a76101f0c7ba40c27de0bbd |
30 |
DIST binutils-2.35.2-patches-1.tar.xz 11836 BLAKE2B 0141349c9618992d1ab1e0309f7ed8fbc43b60a58be1dfed05eae8a8fee857241d9e112ae673da6fc9778767675f536ece818cb85567367bb1c8f87a0693623f SHA512 35de5f227c745c5fb800784fe657b2a6216faf43e2498e8481e7b0dc79b0d2f86b3b6a10b896e060319a77a51c61d2e1b7a951ae962b3a6ef8c1a2a261d9bb6c |
31 |
DIST binutils-2.35.2.tar.xz 22056908 BLAKE2B 9c392e0db2b482442f9476f30bd80cf2796321cbf7be79cf21af7bef167b6074c4ae009dcf9b438d2f2f4a23381c935176b2cfa85de1a526ab46e0fd844a7ca5 SHA512 9974ede5978d32e0d68fef23da48fa00bd06b0bff7ec45b00ca075c126d6bbe0cf2defc03ecc3f17bc6cc85b64271a13009c4049d7ba17de26e84e3a6e2c0348 |
32 |
DIST binutils-2.36.1-patches-3.tar.xz 32720 BLAKE2B 2a5a60168ec5ff612e7e58530092f306460cdb4a963320978dffcc22d73684486a14a5981f6eab2f7fc270def22cdc9954de455d680b2de4befc1ad4916347ba SHA512 e429cc82451675f14715d4e7640fe7b995495c8759a8e919c4291f8ca8358a663012f05c1ec6e60b1261114848379fefc9df723929770462dd676fa04fc7aa54 |
33 |
|
34 |
diff --git a/sys-devel/binutils-hppa64/binutils-hppa64-2.32-r1.ebuild b/sys-devel/binutils-hppa64/binutils-hppa64-2.32-r1.ebuild |
35 |
deleted file mode 100644 |
36 |
index d3887bea1c7..00000000000 |
37 |
--- a/sys-devel/binutils-hppa64/binutils-hppa64-2.32-r1.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,443 +0,0 @@ |
40 |
-# Copyright 1999-2020 Gentoo Authors |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
- |
43 |
-EAPI=6 |
44 |
- |
45 |
-export CTARGET=hppa64-${CHOST#*-} |
46 |
- |
47 |
-inherit eutils libtool flag-o-matic gnuconfig multilib toolchain-funcs versionator |
48 |
- |
49 |
-DESCRIPTION="Tools necessary to build programs" |
50 |
-HOMEPAGE="https://sourceware.org/binutils/" |
51 |
-LICENSE="GPL-3+" |
52 |
-# USE="+cxx" is a transitional flag until llvm migrates to new flags: |
53 |
-# bug #677888 |
54 |
-IUSE="+cxx default-gold doc +gold multitarget +nls +plugins static-libs test" |
55 |
-REQUIRED_USE="cxx? ( gold plugins ) default-gold? ( gold )" |
56 |
- |
57 |
-# Variables that can be set here: |
58 |
-# PATCH_VER - the patchset version |
59 |
-# Default: empty, no patching |
60 |
-# PATCH_BINUTILS_VER - the binutils version in the patchset name |
61 |
-# - Default: PV |
62 |
-# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/... |
63 |
-# for the patchsets |
64 |
-# Default: slyfox |
65 |
- |
66 |
-PATCH_VER=2 |
67 |
-PATCH_DEV=dilfridge |
68 |
- |
69 |
-case ${PV} in |
70 |
- 9999) |
71 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
72 |
- inherit git-r3 |
73 |
- S=${WORKDIR}/binutils |
74 |
- EGIT_CHECKOUT_DIR=${S} |
75 |
- SLOT=${PV} |
76 |
- ;; |
77 |
- *.9999) |
78 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
79 |
- inherit git-r3 |
80 |
- S=${WORKDIR}/binutils |
81 |
- EGIT_CHECKOUT_DIR=${S} |
82 |
- EGIT_BRANCH=$(get_version_component_range 1-2) |
83 |
- EGIT_BRANCH="binutils-${EGIT_BRANCH/./_}-branch" |
84 |
- SLOT=$(get_version_component_range 1-2) |
85 |
- ;; |
86 |
- *) |
87 |
- SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz" |
88 |
- SLOT=$(get_version_component_range 1-2) |
89 |
- KEYWORDS="-* hppa" |
90 |
- ;; |
91 |
-esac |
92 |
- |
93 |
-# |
94 |
-# The Gentoo patchset |
95 |
-# |
96 |
-PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
97 |
-PATCH_DEV=${PATCH_DEV:-slyfox} |
98 |
- |
99 |
-[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI} |
100 |
- https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
101 |
- |
102 |
-# |
103 |
-# The cross-compile logic |
104 |
-# |
105 |
-export CTARGET=${CTARGET:-${CHOST}} |
106 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
107 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
108 |
- export CTARGET=${CATEGORY#cross-} |
109 |
- fi |
110 |
-fi |
111 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
112 |
- |
113 |
-# |
114 |
-# The dependencies |
115 |
-# |
116 |
-RDEPEND=" |
117 |
- >=sys-devel/binutils-config-3 |
118 |
- sys-libs/zlib |
119 |
-" |
120 |
-DEPEND="${RDEPEND} |
121 |
- doc? ( sys-apps/texinfo ) |
122 |
- test? ( dev-util/dejagnu ) |
123 |
- nls? ( sys-devel/gettext ) |
124 |
- sys-devel/flex |
125 |
- virtual/yacc |
126 |
-" |
127 |
- |
128 |
-RESTRICT="!test? ( test )" |
129 |
- |
130 |
-MY_BUILDDIR=${WORKDIR}/build |
131 |
-S=${WORKDIR}/${P/-hppa64/} |
132 |
- |
133 |
-src_unpack() { |
134 |
- case ${PV} in |
135 |
- *9999) |
136 |
- git-r3_src_unpack |
137 |
- ;; |
138 |
- *) |
139 |
- ;; |
140 |
- esac |
141 |
- default |
142 |
- mkdir -p "${MY_BUILDDIR}" |
143 |
-} |
144 |
- |
145 |
-src_prepare() { |
146 |
- if [[ ! -z ${PATCH_VER} ]] ; then |
147 |
- # Use upstream patch to enable development mode |
148 |
- rm -v "${WORKDIR}/patch"/0000-Gentoo-Git-is-development.patch || die |
149 |
- einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
150 |
- eapply "${WORKDIR}/patch"/*.patch |
151 |
- fi |
152 |
- |
153 |
- # This check should probably go somewhere else, like pkg_pretend. |
154 |
- if [[ ${CTARGET} == *-uclibc* ]] ; then |
155 |
- if grep -qs 'linux-gnu' "${S}"/ltconfig ; then |
156 |
- die "sorry, but this binutils doesn't yet support uClibc :(" |
157 |
- fi |
158 |
- fi |
159 |
- |
160 |
- # Make sure our explicit libdir paths don't get clobbered. #562460 |
161 |
- sed -i \ |
162 |
- -e 's:@bfdlibdir@:@libdir@:g' \ |
163 |
- -e 's:@bfdincludedir@:@includedir@:g' \ |
164 |
- {bfd,opcodes}/Makefile.in || die |
165 |
- |
166 |
- # Fix locale issues if possible #122216 |
167 |
- if [[ -e ${FILESDIR}/binutils-configure-LANG.patch ]] ; then |
168 |
- einfo "Fixing misc issues in configure files" |
169 |
- for f in $(find "${S}" -name configure -exec grep -l 'autoconf version 2.13' {} +) ; do |
170 |
- ebegin " Updating ${f/${S}\/}" |
171 |
- patch "${f}" "${FILESDIR}"/binutils-configure-LANG.patch >& "${T}"/configure-patch.log \ |
172 |
- || eerror "Please file a bug about this" |
173 |
- eend $? |
174 |
- done |
175 |
- fi |
176 |
- |
177 |
- # Fix conflicts with newer glibc #272594 |
178 |
- if [[ -e libiberty/testsuite/test-demangle.c ]] ; then |
179 |
- sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c |
180 |
- fi |
181 |
- |
182 |
- # Apply things from PATCHES and user dirs |
183 |
- default |
184 |
- |
185 |
- # Run misc portage update scripts |
186 |
- gnuconfig_update |
187 |
- elibtoolize --portage --no-uclibc |
188 |
-} |
189 |
- |
190 |
-toolchain-binutils_bugurl() { |
191 |
- printf "https://bugs.gentoo.org/" |
192 |
-} |
193 |
-toolchain-binutils_pkgversion() { |
194 |
- printf "Gentoo ${PV}" |
195 |
- [[ -n ${PATCH_VER} ]] && printf " p${PATCH_VER}" |
196 |
-} |
197 |
- |
198 |
-src_configure() { |
199 |
- # Setup some paths |
200 |
- LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
201 |
- INCPATH=${LIBPATH}/include |
202 |
- DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} |
203 |
- if is_cross ; then |
204 |
- TOOLPATH=/usr/${CHOST}/${CTARGET} |
205 |
- else |
206 |
- TOOLPATH=/usr/${CTARGET} |
207 |
- fi |
208 |
- BINPATH=${TOOLPATH}/binutils-bin/${PV} |
209 |
- |
210 |
- # Make sure we filter $LINGUAS so that only ones that |
211 |
- # actually work make it through #42033 |
212 |
- strip-linguas -u */po |
213 |
- |
214 |
- # Keep things sane |
215 |
- strip-flags |
216 |
- |
217 |
- local x |
218 |
- echo |
219 |
- for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do |
220 |
- einfo "$(printf '%10s' ${x}:) ${!x}" |
221 |
- done |
222 |
- echo |
223 |
- |
224 |
- cd "${MY_BUILDDIR}" |
225 |
- local myconf=() |
226 |
- |
227 |
- if use plugins ; then |
228 |
- myconf+=( --enable-plugins ) |
229 |
- fi |
230 |
- # enable gold (installed as ld.gold) and ld's plugin architecture |
231 |
- if use gold ; then |
232 |
- myconf+=( --enable-gold ) |
233 |
- if use default-gold; then |
234 |
- myconf+=( --enable-gold=default ) |
235 |
- fi |
236 |
- fi |
237 |
- |
238 |
- if use nls ; then |
239 |
- myconf+=( --without-included-gettext ) |
240 |
- else |
241 |
- myconf+=( --disable-nls ) |
242 |
- fi |
243 |
- |
244 |
- myconf+=( --with-system-zlib ) |
245 |
- |
246 |
- # For bi-arch systems, enable a 64bit bfd. This matches |
247 |
- # the bi-arch logic in toolchain.eclass. #446946 |
248 |
- # We used to do it for everyone, but it's slow on 32bit arches. #438522 |
249 |
- case $(tc-arch) in |
250 |
- ppc|sparc|x86) myconf+=( --enable-64-bit-bfd ) ;; |
251 |
- esac |
252 |
- |
253 |
- use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
254 |
- |
255 |
- [[ -n ${CBUILD} ]] && myconf+=( --build=${CBUILD} ) |
256 |
- |
257 |
- is_cross && myconf+=( |
258 |
- --with-sysroot="${EPREFIX}"/usr/${CTARGET} |
259 |
- --enable-poison-system-directories |
260 |
- ) |
261 |
- |
262 |
- # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+ |
263 |
- # on everyone in alpha (for now), we'll just enable it when possible |
264 |
- has_version ">=${CATEGORY}/glibc-2.5" && myconf+=( --enable-secureplt ) |
265 |
- has_version ">=sys-libs/glibc-2.5" && myconf+=( --enable-secureplt ) |
266 |
- |
267 |
- # mips can't do hash-style=gnu ... |
268 |
- if [[ $(tc-arch) != mips ]] ; then |
269 |
- myconf+=( --enable-default-hash-style=gnu ) |
270 |
- fi |
271 |
- |
272 |
- myconf+=( |
273 |
- --prefix="${EPREFIX}"/usr |
274 |
- --host=${CHOST} |
275 |
- --target=${CTARGET} |
276 |
- --datadir="${EPREFIX}"${DATAPATH} |
277 |
- --datarootdir="${EPREFIX}"${DATAPATH} |
278 |
- --infodir="${EPREFIX}"${DATAPATH}/info |
279 |
- --mandir="${EPREFIX}"${DATAPATH}/man |
280 |
- --bindir="${EPREFIX}"${BINPATH} |
281 |
- --libdir="${EPREFIX}"${LIBPATH} |
282 |
- --libexecdir="${EPREFIX}"${LIBPATH} |
283 |
- --includedir="${EPREFIX}"${INCPATH} |
284 |
- --enable-obsolete |
285 |
- --enable-shared |
286 |
- --enable-threads |
287 |
- # Newer versions (>=2.27) offer a configure flag now. |
288 |
- --enable-relro |
289 |
- # Newer versions (>=2.24) make this an explicit option. #497268 |
290 |
- --enable-install-libiberty |
291 |
- --disable-werror |
292 |
- --with-bugurl="$(toolchain-binutils_bugurl)" |
293 |
- --with-pkgversion="$(toolchain-binutils_pkgversion)" |
294 |
- $(use_enable static-libs static) |
295 |
- ${EXTRA_ECONF} |
296 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
297 |
- --disable-{gdb,libdecnumber,readline,sim} |
298 |
- # Strip out broken static link flags. |
299 |
- # https://gcc.gnu.org/PR56750 |
300 |
- --without-stage1-ldflags |
301 |
- # Change SONAME to avoid conflict across |
302 |
- # {native,cross}/binutils, binutils-libs. #666100 |
303 |
- --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st) |
304 |
- ) |
305 |
- echo ./configure "${myconf[@]}" |
306 |
- "${S}"/configure "${myconf[@]}" || die |
307 |
- |
308 |
- # Prevent makeinfo from running if doc is unset. |
309 |
- if ! use doc ; then |
310 |
- sed -i \ |
311 |
- -e '/^MAKEINFO/s:=.*:= true:' \ |
312 |
- Makefile || die |
313 |
- fi |
314 |
-} |
315 |
- |
316 |
-src_compile() { |
317 |
- cd "${MY_BUILDDIR}" |
318 |
- # see Note [tooldir hack for ldscripts] |
319 |
- emake tooldir="${EPREFIX}${TOOLPATH}" all |
320 |
- |
321 |
- # only build info pages if the user wants them |
322 |
- if use doc ; then |
323 |
- emake info |
324 |
- fi |
325 |
- |
326 |
- # we nuke the manpages when we're left with junk |
327 |
- # (like when we bootstrap, no perl -> no manpages) |
328 |
- find . -name '*.1' -a -size 0 -delete |
329 |
-} |
330 |
- |
331 |
-src_test() { |
332 |
- cd "${MY_BUILDDIR}" |
333 |
- # bug 637066 |
334 |
- filter-flags -Wall -Wreturn-type |
335 |
- emake -k check |
336 |
-} |
337 |
- |
338 |
-src_install() { |
339 |
- local x d |
340 |
- |
341 |
- cd "${MY_BUILDDIR}" |
342 |
- # see Note [tooldir hack for ldscripts] |
343 |
- emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install |
344 |
- rm -rf "${ED}"/${LIBPATH}/bin |
345 |
- use static-libs || find "${ED}" -name '*.la' -delete |
346 |
- |
347 |
- # Newer versions of binutils get fancy with ${LIBPATH} #171905 |
348 |
- cd "${ED}"/${LIBPATH} |
349 |
- for d in ../* ; do |
350 |
- [[ ${d} == ../${PV} ]] && continue |
351 |
- mv ${d}/* . || die |
352 |
- rmdir ${d} || die |
353 |
- done |
354 |
- |
355 |
- # Now we collect everything intp the proper SLOT-ed dirs |
356 |
- # When something is built to cross-compile, it installs into |
357 |
- # /usr/$CHOST/ by default ... we have to 'fix' that :) |
358 |
- if is_cross ; then |
359 |
- cd "${ED}"/${BINPATH} |
360 |
- for x in * ; do |
361 |
- mv ${x} ${x/${CTARGET}-} |
362 |
- done |
363 |
- |
364 |
- if [[ -d ${ED}/usr/${CHOST}/${CTARGET} ]] ; then |
365 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/include "${ED}"/${INCPATH} |
366 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/lib/* "${ED}"/${LIBPATH}/ |
367 |
- rm -r "${ED}"/usr/${CHOST}/{include,lib} |
368 |
- fi |
369 |
- fi |
370 |
- insinto ${INCPATH} |
371 |
- local libiberty_headers=( |
372 |
- # Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir. |
373 |
- demangle.h |
374 |
- dyn-string.h |
375 |
- fibheap.h |
376 |
- hashtab.h |
377 |
- libiberty.h |
378 |
- objalloc.h |
379 |
- splay-tree.h |
380 |
- ) |
381 |
- doins "${libiberty_headers[@]/#/${S}/include/}" |
382 |
- if [[ -d ${ED}/${LIBPATH}/lib ]] ; then |
383 |
- mv "${ED}"/${LIBPATH}/lib/* "${ED}"/${LIBPATH}/ |
384 |
- rm -r "${ED}"/${LIBPATH}/lib |
385 |
- fi |
386 |
- |
387 |
- # Generate an env.d entry for this binutils |
388 |
- insinto /etc/env.d/binutils |
389 |
- cat <<-EOF > "${T}"/env.d |
390 |
- TARGET="${CTARGET}" |
391 |
- VER="${PV}" |
392 |
- LIBPATH="${EPREFIX}${LIBPATH}" |
393 |
- EOF |
394 |
- newins "${T}"/env.d ${CTARGET}-${PV} |
395 |
- |
396 |
- # Handle documentation |
397 |
- if ! is_cross ; then |
398 |
- cd "${S}" |
399 |
- dodoc README |
400 |
- docinto bfd |
401 |
- dodoc bfd/ChangeLog* bfd/README bfd/PORTING bfd/TODO |
402 |
- docinto binutils |
403 |
- dodoc binutils/ChangeLog binutils/NEWS binutils/README |
404 |
- docinto gas |
405 |
- dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/NEWS gas/README* |
406 |
- docinto gprof |
407 |
- dodoc gprof/ChangeLog* gprof/TEST gprof/TODO gprof/bbconv.pl |
408 |
- docinto ld |
409 |
- dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO |
410 |
- docinto libiberty |
411 |
- dodoc libiberty/ChangeLog* libiberty/README |
412 |
- docinto opcodes |
413 |
- dodoc opcodes/ChangeLog* |
414 |
- fi |
415 |
- |
416 |
- # Remove shared info pages |
417 |
- rm -f "${ED}"/${DATAPATH}/info/{dir,configure.info,standards.info} |
418 |
- |
419 |
- # Trim all empty dirs |
420 |
- find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null |
421 |
- |
422 |
- # the hppa64 hack; this should go into 9999 as a PN-conditional |
423 |
- # tweak the default fake list a little bit |
424 |
- cd "${D}"/etc/env.d/binutils |
425 |
- sed -i '/FAKE_TARGETS=/s:"$: hppa64-linux":' ${CTARGET}-${PV} || die |
426 |
-} |
427 |
- |
428 |
-pkg_postinst() { |
429 |
- # Make sure this ${CTARGET} has a binutils version selected |
430 |
- [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 |
431 |
- binutils-config ${CTARGET}-${PV} |
432 |
-} |
433 |
- |
434 |
-pkg_postrm() { |
435 |
- local current_profile=$(binutils-config -c ${CTARGET}) |
436 |
- |
437 |
- # If no other versions exist, then uninstall for this |
438 |
- # target ... otherwise, switch to the newest version |
439 |
- # Note: only do this if this version is unmerged. We |
440 |
- # rerun binutils-config if this is a remerge, as |
441 |
- # we want the mtimes on the symlinks updated (if |
442 |
- # it is the same as the current selected profile) |
443 |
- if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then |
444 |
- local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}') |
445 |
- choice=${choice//$'\n'/ } |
446 |
- choice=${choice/* } |
447 |
- if [[ -z ${choice} ]] ; then |
448 |
- binutils-config -u ${CTARGET} |
449 |
- else |
450 |
- binutils-config ${choice} |
451 |
- fi |
452 |
- elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then |
453 |
- binutils-config ${CTARGET}-${PV} |
454 |
- fi |
455 |
-} |
456 |
-# Note [slotting support] |
457 |
-# ----------------------- |
458 |
-# Gentoo's layout for binutils files is non-standard as Gentoo |
459 |
-# supports slotted installation for binutils. Many tools |
460 |
-# still expect binutils to reside in known locations. |
461 |
-# binutils-config package restores symlinks into known locations, |
462 |
-# like: |
463 |
-# /usr/bin/${CTARGET}-<tool> |
464 |
-# /usr/bin/${CHOST}/${CTARGET}/lib/ldscrips |
465 |
-# /usr/include/ |
466 |
-# |
467 |
-# Note [tooldir hack for ldscripts] |
468 |
-# --------------------------------- |
469 |
-# Build system does not allow ./configure to tweak every location |
470 |
-# we need for slotting binutils hence all the shuffling in |
471 |
-# src_install(). This note is about SCRIPTDIR define handling. |
472 |
-# |
473 |
-# SCRIPTDIR defines 'ldscripts/' directory location. SCRIPTDIR value |
474 |
-# is set at build-time in ld/Makefile.am as: 'scriptdir = $(tooldir)/lib' |
475 |
-# and hardcoded as -DSCRIPTDIR='"$(scriptdir)"' at compile time. |
476 |
-# Thus we can't just move files around after compilation finished. |
477 |
-# |
478 |
-# Our goal is the following: |
479 |
-# - at build-time set scriptdir to point to symlinked location: |
480 |
-# ${TOOLPATH}: /usr/${CHOST} (or /usr/${CHOST}/${CTARGET} for cross-case) |
481 |
-# - at install-time set scriptdir to point to slotted location: |
482 |
-# ${LIBPATH}: /usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
483 |
|
484 |
diff --git a/sys-devel/binutils-hppa64/binutils-hppa64-2.33.1.ebuild b/sys-devel/binutils-hppa64/binutils-hppa64-2.33.1.ebuild |
485 |
deleted file mode 100644 |
486 |
index ecd3f2f999b..00000000000 |
487 |
--- a/sys-devel/binutils-hppa64/binutils-hppa64-2.33.1.ebuild |
488 |
+++ /dev/null |
489 |
@@ -1,438 +0,0 @@ |
490 |
-# Copyright 1999-2020 Gentoo Authors |
491 |
-# Distributed under the terms of the GNU General Public License v2 |
492 |
- |
493 |
-EAPI=7 |
494 |
- |
495 |
-export CTARGET=hppa64-${CHOST#*-} |
496 |
- |
497 |
-inherit eutils libtool flag-o-matic gnuconfig multilib toolchain-funcs |
498 |
- |
499 |
-DESCRIPTION="Tools necessary to build programs" |
500 |
-HOMEPAGE="https://sourceware.org/binutils/" |
501 |
-LICENSE="GPL-3+" |
502 |
-IUSE="default-gold doc +gold multitarget +nls +plugins static-libs test" |
503 |
-REQUIRED_USE="default-gold? ( gold )" |
504 |
- |
505 |
-# Variables that can be set here: |
506 |
-# PATCH_VER - the patchset version |
507 |
-# Default: empty, no patching |
508 |
-# PATCH_BINUTILS_VER - the binutils version in the patchset name |
509 |
-# - Default: PV |
510 |
-# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/... |
511 |
-# for the patchsets |
512 |
- |
513 |
-PATCH_VER=1 |
514 |
-PATCH_DEV=dilfridge |
515 |
- |
516 |
-case ${PV} in |
517 |
- 9999) |
518 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
519 |
- inherit git-r3 |
520 |
- S=${WORKDIR}/binutils |
521 |
- EGIT_CHECKOUT_DIR=${S} |
522 |
- SLOT=${PV} |
523 |
- ;; |
524 |
- *.9999) |
525 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
526 |
- inherit git-r3 |
527 |
- S=${WORKDIR}/binutils |
528 |
- EGIT_CHECKOUT_DIR=${S} |
529 |
- EGIT_BRANCH=$(ver_cut 1-2) |
530 |
- EGIT_BRANCH="binutils-${EGIT_BRANCH/./_}-branch" |
531 |
- SLOT=$(ver_cut 1-2) |
532 |
- ;; |
533 |
- *) |
534 |
- SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz" |
535 |
- SLOT=$(ver_cut 1-2) |
536 |
- KEYWORDS="-* hppa" |
537 |
- ;; |
538 |
-esac |
539 |
- |
540 |
-# |
541 |
-# The Gentoo patchset |
542 |
-# |
543 |
-PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
544 |
-PATCH_DEV=${PATCH_DEV:-slyfox} |
545 |
- |
546 |
-[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI} |
547 |
- https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
548 |
- |
549 |
-# |
550 |
-# The cross-compile logic |
551 |
-# |
552 |
-export CTARGET=${CTARGET:-${CHOST}} |
553 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
554 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
555 |
- export CTARGET=${CATEGORY#cross-} |
556 |
- fi |
557 |
-fi |
558 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
559 |
- |
560 |
-# |
561 |
-# The dependencies |
562 |
-# |
563 |
-RDEPEND=" |
564 |
- >=sys-devel/binutils-config-3 |
565 |
- sys-libs/zlib |
566 |
-" |
567 |
-DEPEND="${RDEPEND} |
568 |
- doc? ( sys-apps/texinfo ) |
569 |
- test? ( dev-util/dejagnu ) |
570 |
- nls? ( sys-devel/gettext ) |
571 |
- sys-devel/flex |
572 |
- virtual/yacc |
573 |
-" |
574 |
- |
575 |
-RESTRICT="!test? ( test )" |
576 |
- |
577 |
-MY_BUILDDIR=${WORKDIR}/build |
578 |
-S=${WORKDIR}/${P/-hppa64/} |
579 |
- |
580 |
-src_unpack() { |
581 |
- case ${PV} in |
582 |
- *9999) |
583 |
- git-r3_src_unpack |
584 |
- ;; |
585 |
- *) |
586 |
- ;; |
587 |
- esac |
588 |
- default |
589 |
- mkdir -p "${MY_BUILDDIR}" |
590 |
-} |
591 |
- |
592 |
-src_prepare() { |
593 |
- if [[ ! -z ${PATCH_VER} ]] ; then |
594 |
- einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
595 |
- eapply "${WORKDIR}/patch"/*.patch |
596 |
- fi |
597 |
- |
598 |
- # This check should probably go somewhere else, like pkg_pretend. |
599 |
- if [[ ${CTARGET} == *-uclibc* ]] ; then |
600 |
- if grep -qs 'linux-gnu' "${S}"/ltconfig ; then |
601 |
- die "sorry, but this binutils doesn't yet support uClibc :(" |
602 |
- fi |
603 |
- fi |
604 |
- |
605 |
- # Make sure our explicit libdir paths don't get clobbered. #562460 |
606 |
- sed -i \ |
607 |
- -e 's:@bfdlibdir@:@libdir@:g' \ |
608 |
- -e 's:@bfdincludedir@:@includedir@:g' \ |
609 |
- {bfd,opcodes}/Makefile.in || die |
610 |
- |
611 |
- # Fix locale issues if possible #122216 |
612 |
- if [[ -e ${FILESDIR}/binutils-configure-LANG.patch ]] ; then |
613 |
- einfo "Fixing misc issues in configure files" |
614 |
- for f in $(find "${S}" -name configure -exec grep -l 'autoconf version 2.13' {} +) ; do |
615 |
- ebegin " Updating ${f/${S}\/}" |
616 |
- patch "${f}" "${FILESDIR}"/binutils-configure-LANG.patch >& "${T}"/configure-patch.log \ |
617 |
- || eerror "Please file a bug about this" |
618 |
- eend $? |
619 |
- done |
620 |
- fi |
621 |
- |
622 |
- # Fix conflicts with newer glibc #272594 |
623 |
- if [[ -e libiberty/testsuite/test-demangle.c ]] ; then |
624 |
- sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c |
625 |
- fi |
626 |
- |
627 |
- # Apply things from PATCHES and user dirs |
628 |
- default |
629 |
- |
630 |
- # Run misc portage update scripts |
631 |
- gnuconfig_update |
632 |
- elibtoolize --portage --no-uclibc |
633 |
-} |
634 |
- |
635 |
-toolchain-binutils_bugurl() { |
636 |
- printf "https://bugs.gentoo.org/" |
637 |
-} |
638 |
-toolchain-binutils_pkgversion() { |
639 |
- printf "Gentoo ${PV}" |
640 |
- [[ -n ${PATCH_VER} ]] && printf " p${PATCH_VER}" |
641 |
-} |
642 |
- |
643 |
-src_configure() { |
644 |
- # Setup some paths |
645 |
- LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
646 |
- INCPATH=${LIBPATH}/include |
647 |
- DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} |
648 |
- if is_cross ; then |
649 |
- TOOLPATH=/usr/${CHOST}/${CTARGET} |
650 |
- else |
651 |
- TOOLPATH=/usr/${CTARGET} |
652 |
- fi |
653 |
- BINPATH=${TOOLPATH}/binutils-bin/${PV} |
654 |
- |
655 |
- # Make sure we filter $LINGUAS so that only ones that |
656 |
- # actually work make it through #42033 |
657 |
- strip-linguas -u */po |
658 |
- |
659 |
- # Keep things sane |
660 |
- strip-flags |
661 |
- |
662 |
- local x |
663 |
- echo |
664 |
- for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do |
665 |
- einfo "$(printf '%10s' ${x}:) ${!x}" |
666 |
- done |
667 |
- echo |
668 |
- |
669 |
- cd "${MY_BUILDDIR}" |
670 |
- local myconf=() |
671 |
- |
672 |
- if use plugins ; then |
673 |
- myconf+=( --enable-plugins ) |
674 |
- fi |
675 |
- # enable gold (installed as ld.gold) and ld's plugin architecture |
676 |
- if use gold ; then |
677 |
- myconf+=( --enable-gold ) |
678 |
- if use default-gold; then |
679 |
- myconf+=( --enable-gold=default ) |
680 |
- fi |
681 |
- fi |
682 |
- |
683 |
- if use nls ; then |
684 |
- myconf+=( --without-included-gettext ) |
685 |
- else |
686 |
- myconf+=( --disable-nls ) |
687 |
- fi |
688 |
- |
689 |
- myconf+=( --with-system-zlib ) |
690 |
- |
691 |
- # For bi-arch systems, enable a 64bit bfd. This matches |
692 |
- # the bi-arch logic in toolchain.eclass. #446946 |
693 |
- # We used to do it for everyone, but it's slow on 32bit arches. #438522 |
694 |
- case $(tc-arch) in |
695 |
- ppc|sparc|x86) myconf+=( --enable-64-bit-bfd ) ;; |
696 |
- esac |
697 |
- |
698 |
- use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
699 |
- |
700 |
- [[ -n ${CBUILD} ]] && myconf+=( --build=${CBUILD} ) |
701 |
- |
702 |
- is_cross && myconf+=( |
703 |
- --with-sysroot="${EPREFIX}"/usr/${CTARGET} |
704 |
- --enable-poison-system-directories |
705 |
- ) |
706 |
- |
707 |
- # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+ |
708 |
- # on everyone in alpha (for now), we'll just enable it when possible |
709 |
- has_version ">=${CATEGORY}/glibc-2.5" && myconf+=( --enable-secureplt ) |
710 |
- has_version ">=sys-libs/glibc-2.5" && myconf+=( --enable-secureplt ) |
711 |
- |
712 |
- # mips can't do hash-style=gnu ... |
713 |
- if [[ $(tc-arch) != mips ]] ; then |
714 |
- myconf+=( --enable-default-hash-style=gnu ) |
715 |
- fi |
716 |
- |
717 |
- myconf+=( |
718 |
- --prefix="${EPREFIX}"/usr |
719 |
- --host=${CHOST} |
720 |
- --target=${CTARGET} |
721 |
- --datadir="${EPREFIX}"${DATAPATH} |
722 |
- --datarootdir="${EPREFIX}"${DATAPATH} |
723 |
- --infodir="${EPREFIX}"${DATAPATH}/info |
724 |
- --mandir="${EPREFIX}"${DATAPATH}/man |
725 |
- --bindir="${EPREFIX}"${BINPATH} |
726 |
- --libdir="${EPREFIX}"${LIBPATH} |
727 |
- --libexecdir="${EPREFIX}"${LIBPATH} |
728 |
- --includedir="${EPREFIX}"${INCPATH} |
729 |
- --enable-obsolete |
730 |
- --enable-shared |
731 |
- --enable-threads |
732 |
- # Newer versions (>=2.27) offer a configure flag now. |
733 |
- --enable-relro |
734 |
- # Newer versions (>=2.24) make this an explicit option. #497268 |
735 |
- --enable-install-libiberty |
736 |
- --disable-werror |
737 |
- --with-bugurl="$(toolchain-binutils_bugurl)" |
738 |
- --with-pkgversion="$(toolchain-binutils_pkgversion)" |
739 |
- $(use_enable static-libs static) |
740 |
- ${EXTRA_ECONF} |
741 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
742 |
- --disable-{gdb,libdecnumber,readline,sim} |
743 |
- # Strip out broken static link flags. |
744 |
- # https://gcc.gnu.org/PR56750 |
745 |
- --without-stage1-ldflags |
746 |
- # Change SONAME to avoid conflict across |
747 |
- # {native,cross}/binutils, binutils-libs. #666100 |
748 |
- --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st) |
749 |
- ) |
750 |
- echo ./configure "${myconf[@]}" |
751 |
- "${S}"/configure "${myconf[@]}" || die |
752 |
- |
753 |
- # Prevent makeinfo from running if doc is unset. |
754 |
- if ! use doc ; then |
755 |
- sed -i \ |
756 |
- -e '/^MAKEINFO/s:=.*:= true:' \ |
757 |
- Makefile || die |
758 |
- fi |
759 |
-} |
760 |
- |
761 |
-src_compile() { |
762 |
- cd "${MY_BUILDDIR}" |
763 |
- # see Note [tooldir hack for ldscripts] |
764 |
- emake tooldir="${EPREFIX}${TOOLPATH}" all |
765 |
- |
766 |
- # only build info pages if the user wants them |
767 |
- if use doc ; then |
768 |
- emake info |
769 |
- fi |
770 |
- |
771 |
- # we nuke the manpages when we're left with junk |
772 |
- # (like when we bootstrap, no perl -> no manpages) |
773 |
- find . -name '*.1' -a -size 0 -delete |
774 |
-} |
775 |
- |
776 |
-src_test() { |
777 |
- cd "${MY_BUILDDIR}" |
778 |
- # bug 637066 |
779 |
- filter-flags -Wall -Wreturn-type |
780 |
- emake -k check |
781 |
-} |
782 |
- |
783 |
-src_install() { |
784 |
- local x d |
785 |
- |
786 |
- cd "${MY_BUILDDIR}" |
787 |
- # see Note [tooldir hack for ldscripts] |
788 |
- emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install |
789 |
- rm -rf "${ED}"/${LIBPATH}/bin |
790 |
- use static-libs || find "${ED}" -name '*.la' -delete |
791 |
- |
792 |
- # Newer versions of binutils get fancy with ${LIBPATH} #171905 |
793 |
- cd "${ED}"/${LIBPATH} |
794 |
- for d in ../* ; do |
795 |
- [[ ${d} == ../${PV} ]] && continue |
796 |
- mv ${d}/* . || die |
797 |
- rmdir ${d} || die |
798 |
- done |
799 |
- |
800 |
- # Now we collect everything intp the proper SLOT-ed dirs |
801 |
- # When something is built to cross-compile, it installs into |
802 |
- # /usr/$CHOST/ by default ... we have to 'fix' that :) |
803 |
- if is_cross ; then |
804 |
- cd "${ED}"/${BINPATH} |
805 |
- for x in * ; do |
806 |
- mv ${x} ${x/${CTARGET}-} |
807 |
- done |
808 |
- |
809 |
- if [[ -d ${ED}/usr/${CHOST}/${CTARGET} ]] ; then |
810 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/include "${ED}"/${INCPATH} |
811 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/lib/* "${ED}"/${LIBPATH}/ |
812 |
- rm -r "${ED}"/usr/${CHOST}/{include,lib} |
813 |
- fi |
814 |
- fi |
815 |
- insinto ${INCPATH} |
816 |
- local libiberty_headers=( |
817 |
- # Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir. |
818 |
- demangle.h |
819 |
- dyn-string.h |
820 |
- fibheap.h |
821 |
- hashtab.h |
822 |
- libiberty.h |
823 |
- objalloc.h |
824 |
- splay-tree.h |
825 |
- ) |
826 |
- doins "${libiberty_headers[@]/#/${S}/include/}" |
827 |
- if [[ -d ${ED}/${LIBPATH}/lib ]] ; then |
828 |
- mv "${ED}"/${LIBPATH}/lib/* "${ED}"/${LIBPATH}/ |
829 |
- rm -r "${ED}"/${LIBPATH}/lib |
830 |
- fi |
831 |
- |
832 |
- # Generate an env.d entry for this binutils |
833 |
- insinto /etc/env.d/binutils |
834 |
- cat <<-EOF > "${T}"/env.d |
835 |
- TARGET="${CTARGET}" |
836 |
- VER="${PV}" |
837 |
- LIBPATH="${EPREFIX}${LIBPATH}" |
838 |
- EOF |
839 |
- newins "${T}"/env.d ${CTARGET}-${PV} |
840 |
- |
841 |
- # Handle documentation |
842 |
- if ! is_cross ; then |
843 |
- cd "${S}" |
844 |
- dodoc README |
845 |
- docinto bfd |
846 |
- dodoc bfd/ChangeLog* bfd/README bfd/PORTING bfd/TODO |
847 |
- docinto binutils |
848 |
- dodoc binutils/ChangeLog binutils/NEWS binutils/README |
849 |
- docinto gas |
850 |
- dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/NEWS gas/README* |
851 |
- docinto gprof |
852 |
- dodoc gprof/ChangeLog* gprof/TEST gprof/TODO gprof/bbconv.pl |
853 |
- docinto ld |
854 |
- dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO |
855 |
- docinto libiberty |
856 |
- dodoc libiberty/ChangeLog* libiberty/README |
857 |
- docinto opcodes |
858 |
- dodoc opcodes/ChangeLog* |
859 |
- fi |
860 |
- |
861 |
- # Remove shared info pages |
862 |
- rm -f "${ED}"/${DATAPATH}/info/{dir,configure.info,standards.info} |
863 |
- |
864 |
- # Trim all empty dirs |
865 |
- find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null |
866 |
- |
867 |
- # the hppa64 hack; this should go into 9999 as a PN-conditional |
868 |
- # tweak the default fake list a little bit |
869 |
- cd "${D}"/etc/env.d/binutils |
870 |
- sed -i '/FAKE_TARGETS=/s:"$: hppa64-linux":' ${CTARGET}-${PV} || die |
871 |
-} |
872 |
- |
873 |
-pkg_postinst() { |
874 |
- # Make sure this ${CTARGET} has a binutils version selected |
875 |
- [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 |
876 |
- binutils-config ${CTARGET}-${PV} |
877 |
-} |
878 |
- |
879 |
-pkg_postrm() { |
880 |
- local current_profile=$(binutils-config -c ${CTARGET}) |
881 |
- |
882 |
- # If no other versions exist, then uninstall for this |
883 |
- # target ... otherwise, switch to the newest version |
884 |
- # Note: only do this if this version is unmerged. We |
885 |
- # rerun binutils-config if this is a remerge, as |
886 |
- # we want the mtimes on the symlinks updated (if |
887 |
- # it is the same as the current selected profile) |
888 |
- if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then |
889 |
- local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}') |
890 |
- choice=${choice//$'\n'/ } |
891 |
- choice=${choice/* } |
892 |
- if [[ -z ${choice} ]] ; then |
893 |
- binutils-config -u ${CTARGET} |
894 |
- else |
895 |
- binutils-config ${choice} |
896 |
- fi |
897 |
- elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then |
898 |
- binutils-config ${CTARGET}-${PV} |
899 |
- fi |
900 |
-} |
901 |
-# Note [slotting support] |
902 |
-# ----------------------- |
903 |
-# Gentoo's layout for binutils files is non-standard as Gentoo |
904 |
-# supports slotted installation for binutils. Many tools |
905 |
-# still expect binutils to reside in known locations. |
906 |
-# binutils-config package restores symlinks into known locations, |
907 |
-# like: |
908 |
-# /usr/bin/${CTARGET}-<tool> |
909 |
-# /usr/bin/${CHOST}/${CTARGET}/lib/ldscrips |
910 |
-# /usr/include/ |
911 |
-# |
912 |
-# Note [tooldir hack for ldscripts] |
913 |
-# --------------------------------- |
914 |
-# Build system does not allow ./configure to tweak every location |
915 |
-# we need for slotting binutils hence all the shuffling in |
916 |
-# src_install(). This note is about SCRIPTDIR define handling. |
917 |
-# |
918 |
-# SCRIPTDIR defines 'ldscripts/' directory location. SCRIPTDIR value |
919 |
-# is set at build-time in ld/Makefile.am as: 'scriptdir = $(tooldir)/lib' |
920 |
-# and hardcoded as -DSCRIPTDIR='"$(scriptdir)"' at compile time. |
921 |
-# Thus we can't just move files around after compilation finished. |
922 |
-# |
923 |
-# Our goal is the following: |
924 |
-# - at build-time set scriptdir to point to symlinked location: |
925 |
-# ${TOOLPATH}: /usr/${CHOST} (or /usr/${CHOST}/${CTARGET} for cross-case) |
926 |
-# - at install-time set scriptdir to point to slotted location: |
927 |
-# ${LIBPATH}: /usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
928 |
|
929 |
diff --git a/sys-devel/binutils-hppa64/binutils-hppa64-2.34-r2.ebuild b/sys-devel/binutils-hppa64/binutils-hppa64-2.34-r2.ebuild |
930 |
deleted file mode 100644 |
931 |
index 9eace9459ce..00000000000 |
932 |
--- a/sys-devel/binutils-hppa64/binutils-hppa64-2.34-r2.ebuild |
933 |
+++ /dev/null |
934 |
@@ -1,443 +0,0 @@ |
935 |
-# Copyright 1999-2021 Gentoo Authors |
936 |
-# Distributed under the terms of the GNU General Public License v2 |
937 |
- |
938 |
-EAPI=7 |
939 |
- |
940 |
-export CTARGET=hppa64-${CHOST#*-} |
941 |
- |
942 |
-inherit eutils libtool flag-o-matic gnuconfig multilib toolchain-funcs |
943 |
- |
944 |
-DESCRIPTION="Tools necessary to build programs" |
945 |
-HOMEPAGE="https://sourceware.org/binutils/" |
946 |
-LICENSE="GPL-3+" |
947 |
-IUSE="default-gold doc +gold multitarget +nls +plugins static-libs test" |
948 |
-REQUIRED_USE="default-gold? ( gold )" |
949 |
- |
950 |
-# Variables that can be set here: |
951 |
-# PATCH_VER - the patchset version |
952 |
-# Default: empty, no patching |
953 |
-# PATCH_BINUTILS_VER - the binutils version in the patchset name |
954 |
-# - Default: PV |
955 |
-# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/... |
956 |
-# for the patchsets |
957 |
- |
958 |
-PATCH_VER=6 |
959 |
-PATCH_DEV=dilfridge |
960 |
- |
961 |
-case ${PV} in |
962 |
- 9999) |
963 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
964 |
- inherit git-r3 |
965 |
- S=${WORKDIR}/binutils |
966 |
- EGIT_CHECKOUT_DIR=${S} |
967 |
- SLOT=${PV} |
968 |
- ;; |
969 |
- *.9999) |
970 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
971 |
- inherit git-r3 |
972 |
- S=${WORKDIR}/binutils |
973 |
- EGIT_CHECKOUT_DIR=${S} |
974 |
- EGIT_BRANCH=$(ver_cut 1-2) |
975 |
- EGIT_BRANCH="binutils-${EGIT_BRANCH/./_}-branch" |
976 |
- SLOT=$(ver_cut 1-2) |
977 |
- ;; |
978 |
- *) |
979 |
- SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz" |
980 |
- SLOT=$(ver_cut 1-2) |
981 |
- KEYWORDS="-* hppa" |
982 |
- ;; |
983 |
-esac |
984 |
- |
985 |
-# |
986 |
-# The Gentoo patchset |
987 |
-# |
988 |
-PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
989 |
-PATCH_DEV=${PATCH_DEV:-slyfox} |
990 |
- |
991 |
-[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI} |
992 |
- https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
993 |
- |
994 |
-# |
995 |
-# The cross-compile logic |
996 |
-# |
997 |
-export CTARGET=${CTARGET:-${CHOST}} |
998 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
999 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1000 |
- export CTARGET=${CATEGORY#cross-} |
1001 |
- fi |
1002 |
-fi |
1003 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1004 |
- |
1005 |
-# |
1006 |
-# The dependencies |
1007 |
-# |
1008 |
-RDEPEND=" |
1009 |
- >=sys-devel/binutils-config-3 |
1010 |
- sys-libs/zlib |
1011 |
-" |
1012 |
-DEPEND="${RDEPEND}" |
1013 |
-BDEPEND=" |
1014 |
- doc? ( sys-apps/texinfo ) |
1015 |
- test? ( dev-util/dejagnu ) |
1016 |
- nls? ( sys-devel/gettext ) |
1017 |
- sys-devel/flex |
1018 |
- virtual/yacc |
1019 |
-" |
1020 |
- |
1021 |
-RESTRICT="!test? ( test )" |
1022 |
- |
1023 |
-MY_BUILDDIR=${WORKDIR}/build |
1024 |
-S=${WORKDIR}/${P/-hppa64/} |
1025 |
- |
1026 |
-src_unpack() { |
1027 |
- case ${PV} in |
1028 |
- *9999) |
1029 |
- git-r3_src_unpack |
1030 |
- ;; |
1031 |
- *) |
1032 |
- ;; |
1033 |
- esac |
1034 |
- default |
1035 |
- mkdir -p "${MY_BUILDDIR}" |
1036 |
-} |
1037 |
- |
1038 |
-src_prepare() { |
1039 |
- if [[ ! -z ${PATCH_VER} ]] ; then |
1040 |
- einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
1041 |
- eapply "${WORKDIR}/patch"/*.patch |
1042 |
- fi |
1043 |
- |
1044 |
- # This check should probably go somewhere else, like pkg_pretend. |
1045 |
- if [[ ${CTARGET} == *-uclibc* ]] ; then |
1046 |
- if grep -qs 'linux-gnu' "${S}"/ltconfig ; then |
1047 |
- die "sorry, but this binutils doesn't yet support uClibc :(" |
1048 |
- fi |
1049 |
- fi |
1050 |
- |
1051 |
- # Make sure our explicit libdir paths don't get clobbered. #562460 |
1052 |
- sed -i \ |
1053 |
- -e 's:@bfdlibdir@:@libdir@:g' \ |
1054 |
- -e 's:@bfdincludedir@:@includedir@:g' \ |
1055 |
- {bfd,opcodes}/Makefile.in || die |
1056 |
- |
1057 |
- # Fix locale issues if possible #122216 |
1058 |
- if [[ -e ${FILESDIR}/binutils-configure-LANG.patch ]] ; then |
1059 |
- einfo "Fixing misc issues in configure files" |
1060 |
- for f in $(find "${S}" -name configure -exec grep -l 'autoconf version 2.13' {} +) ; do |
1061 |
- ebegin " Updating ${f/${S}\/}" |
1062 |
- patch "${f}" "${FILESDIR}"/binutils-configure-LANG.patch >& "${T}"/configure-patch.log \ |
1063 |
- || eerror "Please file a bug about this" |
1064 |
- eend $? |
1065 |
- done |
1066 |
- fi |
1067 |
- |
1068 |
- # Fix conflicts with newer glibc #272594 |
1069 |
- if [[ -e libiberty/testsuite/test-demangle.c ]] ; then |
1070 |
- sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c |
1071 |
- fi |
1072 |
- |
1073 |
- # Apply things from PATCHES and user dirs |
1074 |
- default |
1075 |
- |
1076 |
- # Run misc portage update scripts |
1077 |
- gnuconfig_update |
1078 |
- elibtoolize --portage --no-uclibc |
1079 |
-} |
1080 |
- |
1081 |
-toolchain-binutils_bugurl() { |
1082 |
- printf "https://bugs.gentoo.org/" |
1083 |
-} |
1084 |
-toolchain-binutils_pkgversion() { |
1085 |
- printf "Gentoo ${PV}" |
1086 |
- [[ -n ${PATCH_VER} ]] && printf " p${PATCH_VER}" |
1087 |
-} |
1088 |
- |
1089 |
-src_configure() { |
1090 |
- # Setup some paths |
1091 |
- LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
1092 |
- INCPATH=${LIBPATH}/include |
1093 |
- DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} |
1094 |
- if is_cross ; then |
1095 |
- TOOLPATH=/usr/${CHOST}/${CTARGET} |
1096 |
- else |
1097 |
- TOOLPATH=/usr/${CTARGET} |
1098 |
- fi |
1099 |
- BINPATH=${TOOLPATH}/binutils-bin/${PV} |
1100 |
- |
1101 |
- # Make sure we filter $LINGUAS so that only ones that |
1102 |
- # actually work make it through #42033 |
1103 |
- strip-linguas -u */po |
1104 |
- |
1105 |
- # Keep things sane |
1106 |
- strip-flags |
1107 |
- |
1108 |
- local x |
1109 |
- echo |
1110 |
- for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do |
1111 |
- einfo "$(printf '%10s' ${x}:) ${!x}" |
1112 |
- done |
1113 |
- echo |
1114 |
- |
1115 |
- cd "${MY_BUILDDIR}" |
1116 |
- local myconf=() |
1117 |
- |
1118 |
- if use plugins ; then |
1119 |
- myconf+=( --enable-plugins ) |
1120 |
- fi |
1121 |
- # enable gold (installed as ld.gold) and ld's plugin architecture |
1122 |
- if use gold ; then |
1123 |
- myconf+=( --enable-gold ) |
1124 |
- if use default-gold; then |
1125 |
- myconf+=( --enable-gold=default ) |
1126 |
- fi |
1127 |
- fi |
1128 |
- |
1129 |
- if use nls ; then |
1130 |
- myconf+=( --without-included-gettext ) |
1131 |
- else |
1132 |
- myconf+=( --disable-nls ) |
1133 |
- fi |
1134 |
- |
1135 |
- myconf+=( --with-system-zlib ) |
1136 |
- |
1137 |
- # For bi-arch systems, enable a 64bit bfd. This matches |
1138 |
- # the bi-arch logic in toolchain.eclass. #446946 |
1139 |
- # We used to do it for everyone, but it's slow on 32bit arches. #438522 |
1140 |
- case $(tc-arch) in |
1141 |
- ppc|sparc|x86) myconf+=( --enable-64-bit-bfd ) ;; |
1142 |
- esac |
1143 |
- |
1144 |
- use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
1145 |
- |
1146 |
- [[ -n ${CBUILD} ]] && myconf+=( --build=${CBUILD} ) |
1147 |
- |
1148 |
- is_cross && myconf+=( |
1149 |
- --with-sysroot="${EPREFIX}"/usr/${CTARGET} |
1150 |
- --enable-poison-system-directories |
1151 |
- ) |
1152 |
- |
1153 |
- # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+ |
1154 |
- # on everyone in alpha (for now), we'll just enable it when possible |
1155 |
- has_version ">=${CATEGORY}/glibc-2.5" && myconf+=( --enable-secureplt ) |
1156 |
- has_version ">=sys-libs/glibc-2.5" && myconf+=( --enable-secureplt ) |
1157 |
- |
1158 |
- # mips can't do hash-style=gnu ... |
1159 |
- if [[ $(tc-arch) != mips ]] ; then |
1160 |
- myconf+=( --enable-default-hash-style=gnu ) |
1161 |
- fi |
1162 |
- |
1163 |
- myconf+=( |
1164 |
- --prefix="${EPREFIX}"/usr |
1165 |
- --host=${CHOST} |
1166 |
- --target=${CTARGET} |
1167 |
- --datadir="${EPREFIX}"${DATAPATH} |
1168 |
- --datarootdir="${EPREFIX}"${DATAPATH} |
1169 |
- --infodir="${EPREFIX}"${DATAPATH}/info |
1170 |
- --mandir="${EPREFIX}"${DATAPATH}/man |
1171 |
- --bindir="${EPREFIX}"${BINPATH} |
1172 |
- --libdir="${EPREFIX}"${LIBPATH} |
1173 |
- --libexecdir="${EPREFIX}"${LIBPATH} |
1174 |
- --includedir="${EPREFIX}"${INCPATH} |
1175 |
- --enable-obsolete |
1176 |
- --enable-shared |
1177 |
- --enable-threads |
1178 |
- # Newer versions (>=2.27) offer a configure flag now. |
1179 |
- --enable-relro |
1180 |
- # Newer versions (>=2.24) make this an explicit option. #497268 |
1181 |
- --enable-install-libiberty |
1182 |
- --disable-werror |
1183 |
- --with-bugurl="$(toolchain-binutils_bugurl)" |
1184 |
- --with-pkgversion="$(toolchain-binutils_pkgversion)" |
1185 |
- $(use_enable static-libs static) |
1186 |
- ${EXTRA_ECONF} |
1187 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1188 |
- --disable-{gdb,libdecnumber,readline,sim} |
1189 |
- # Strip out broken static link flags. |
1190 |
- # https://gcc.gnu.org/PR56750 |
1191 |
- --without-stage1-ldflags |
1192 |
- # Change SONAME to avoid conflict across |
1193 |
- # {native,cross}/binutils, binutils-libs. #666100 |
1194 |
- --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st) |
1195 |
- |
1196 |
- # avoid automagic dependency on (currently prefix) systems |
1197 |
- # systems with debuginfod library, bug #754753 |
1198 |
- --without-debuginfod |
1199 |
- ) |
1200 |
- echo ./configure "${myconf[@]}" |
1201 |
- "${S}"/configure "${myconf[@]}" || die |
1202 |
- |
1203 |
- # Prevent makeinfo from running if doc is unset. |
1204 |
- if ! use doc ; then |
1205 |
- sed -i \ |
1206 |
- -e '/^MAKEINFO/s:=.*:= true:' \ |
1207 |
- Makefile || die |
1208 |
- fi |
1209 |
-} |
1210 |
- |
1211 |
-src_compile() { |
1212 |
- cd "${MY_BUILDDIR}" |
1213 |
- # see Note [tooldir hack for ldscripts] |
1214 |
- emake tooldir="${EPREFIX}${TOOLPATH}" all |
1215 |
- |
1216 |
- # only build info pages if the user wants them |
1217 |
- if use doc ; then |
1218 |
- emake info |
1219 |
- fi |
1220 |
- |
1221 |
- # we nuke the manpages when we're left with junk |
1222 |
- # (like when we bootstrap, no perl -> no manpages) |
1223 |
- find . -name '*.1' -a -size 0 -delete |
1224 |
-} |
1225 |
- |
1226 |
-src_test() { |
1227 |
- cd "${MY_BUILDDIR}" |
1228 |
- # bug 637066 |
1229 |
- filter-flags -Wall -Wreturn-type |
1230 |
- emake -k check |
1231 |
-} |
1232 |
- |
1233 |
-src_install() { |
1234 |
- local x d |
1235 |
- |
1236 |
- cd "${MY_BUILDDIR}" |
1237 |
- # see Note [tooldir hack for ldscripts] |
1238 |
- emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install |
1239 |
- rm -rf "${ED}"/${LIBPATH}/bin |
1240 |
- use static-libs || find "${ED}" -name '*.la' -delete |
1241 |
- |
1242 |
- # Newer versions of binutils get fancy with ${LIBPATH} #171905 |
1243 |
- cd "${ED}"/${LIBPATH} |
1244 |
- for d in ../* ; do |
1245 |
- [[ ${d} == ../${PV} ]] && continue |
1246 |
- mv ${d}/* . || die |
1247 |
- rmdir ${d} || die |
1248 |
- done |
1249 |
- |
1250 |
- # Now we collect everything intp the proper SLOT-ed dirs |
1251 |
- # When something is built to cross-compile, it installs into |
1252 |
- # /usr/$CHOST/ by default ... we have to 'fix' that :) |
1253 |
- if is_cross ; then |
1254 |
- cd "${ED}"/${BINPATH} |
1255 |
- for x in * ; do |
1256 |
- mv ${x} ${x/${CTARGET}-} |
1257 |
- done |
1258 |
- |
1259 |
- if [[ -d ${ED}/usr/${CHOST}/${CTARGET} ]] ; then |
1260 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/include "${ED}"/${INCPATH} |
1261 |
- mv "${ED}"/usr/${CHOST}/${CTARGET}/lib/* "${ED}"/${LIBPATH}/ |
1262 |
- rm -r "${ED}"/usr/${CHOST}/{include,lib} |
1263 |
- fi |
1264 |
- fi |
1265 |
- insinto ${INCPATH} |
1266 |
- local libiberty_headers=( |
1267 |
- # Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir. |
1268 |
- demangle.h |
1269 |
- dyn-string.h |
1270 |
- fibheap.h |
1271 |
- hashtab.h |
1272 |
- libiberty.h |
1273 |
- objalloc.h |
1274 |
- splay-tree.h |
1275 |
- ) |
1276 |
- doins "${libiberty_headers[@]/#/${S}/include/}" |
1277 |
- if [[ -d ${ED}/${LIBPATH}/lib ]] ; then |
1278 |
- mv "${ED}"/${LIBPATH}/lib/* "${ED}"/${LIBPATH}/ |
1279 |
- rm -r "${ED}"/${LIBPATH}/lib |
1280 |
- fi |
1281 |
- |
1282 |
- # Generate an env.d entry for this binutils |
1283 |
- insinto /etc/env.d/binutils |
1284 |
- cat <<-EOF > "${T}"/env.d |
1285 |
- TARGET="${CTARGET}" |
1286 |
- VER="${PV}" |
1287 |
- LIBPATH="${EPREFIX}${LIBPATH}" |
1288 |
- EOF |
1289 |
- newins "${T}"/env.d ${CTARGET}-${PV} |
1290 |
- |
1291 |
- # Handle documentation |
1292 |
- if ! is_cross ; then |
1293 |
- cd "${S}" |
1294 |
- dodoc README |
1295 |
- docinto bfd |
1296 |
- dodoc bfd/ChangeLog* bfd/README bfd/PORTING bfd/TODO |
1297 |
- docinto binutils |
1298 |
- dodoc binutils/ChangeLog binutils/NEWS binutils/README |
1299 |
- docinto gas |
1300 |
- dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/NEWS gas/README* |
1301 |
- docinto gprof |
1302 |
- dodoc gprof/ChangeLog* gprof/TEST gprof/TODO gprof/bbconv.pl |
1303 |
- docinto ld |
1304 |
- dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO |
1305 |
- docinto libiberty |
1306 |
- dodoc libiberty/ChangeLog* libiberty/README |
1307 |
- docinto opcodes |
1308 |
- dodoc opcodes/ChangeLog* |
1309 |
- fi |
1310 |
- |
1311 |
- # Remove shared info pages |
1312 |
- rm -f "${ED}"/${DATAPATH}/info/{dir,configure.info,standards.info} |
1313 |
- |
1314 |
- # Trim all empty dirs |
1315 |
- find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null |
1316 |
- |
1317 |
- # the hppa64 hack; this should go into 9999 as a PN-conditional |
1318 |
- # tweak the default fake list a little bit |
1319 |
- cd "${D}"/etc/env.d/binutils |
1320 |
- sed -i '/FAKE_TARGETS=/s:"$: hppa64-linux":' ${CTARGET}-${PV} || die |
1321 |
-} |
1322 |
- |
1323 |
-pkg_postinst() { |
1324 |
- # Make sure this ${CTARGET} has a binutils version selected |
1325 |
- [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 |
1326 |
- binutils-config ${CTARGET}-${PV} |
1327 |
-} |
1328 |
- |
1329 |
-pkg_postrm() { |
1330 |
- local current_profile=$(binutils-config -c ${CTARGET}) |
1331 |
- |
1332 |
- # If no other versions exist, then uninstall for this |
1333 |
- # target ... otherwise, switch to the newest version |
1334 |
- # Note: only do this if this version is unmerged. We |
1335 |
- # rerun binutils-config if this is a remerge, as |
1336 |
- # we want the mtimes on the symlinks updated (if |
1337 |
- # it is the same as the current selected profile) |
1338 |
- if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then |
1339 |
- local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}') |
1340 |
- choice=${choice//$'\n'/ } |
1341 |
- choice=${choice/* } |
1342 |
- if [[ -z ${choice} ]] ; then |
1343 |
- binutils-config -u ${CTARGET} |
1344 |
- else |
1345 |
- binutils-config ${choice} |
1346 |
- fi |
1347 |
- elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then |
1348 |
- binutils-config ${CTARGET}-${PV} |
1349 |
- fi |
1350 |
-} |
1351 |
-# Note [slotting support] |
1352 |
-# ----------------------- |
1353 |
-# Gentoo's layout for binutils files is non-standard as Gentoo |
1354 |
-# supports slotted installation for binutils. Many tools |
1355 |
-# still expect binutils to reside in known locations. |
1356 |
-# binutils-config package restores symlinks into known locations, |
1357 |
-# like: |
1358 |
-# /usr/bin/${CTARGET}-<tool> |
1359 |
-# /usr/bin/${CHOST}/${CTARGET}/lib/ldscrips |
1360 |
-# /usr/include/ |
1361 |
-# |
1362 |
-# Note [tooldir hack for ldscripts] |
1363 |
-# --------------------------------- |
1364 |
-# Build system does not allow ./configure to tweak every location |
1365 |
-# we need for slotting binutils hence all the shuffling in |
1366 |
-# src_install(). This note is about SCRIPTDIR define handling. |
1367 |
-# |
1368 |
-# SCRIPTDIR defines 'ldscripts/' directory location. SCRIPTDIR value |
1369 |
-# is set at build-time in ld/Makefile.am as: 'scriptdir = $(tooldir)/lib' |
1370 |
-# and hardcoded as -DSCRIPTDIR='"$(scriptdir)"' at compile time. |
1371 |
-# Thus we can't just move files around after compilation finished. |
1372 |
-# |
1373 |
-# Our goal is the following: |
1374 |
-# - at build-time set scriptdir to point to symlinked location: |
1375 |
-# ${TOOLPATH}: /usr/${CHOST} (or /usr/${CHOST}/${CTARGET} for cross-case) |
1376 |
-# - at install-time set scriptdir to point to slotted location: |
1377 |
-# ${LIBPATH}: /usr/$(get_libdir)/binutils/${CTARGET}/${PV} |