1 |
commit: 68c8ba3c42bb435f391807a056610b9e6bd2940c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 2 07:51:57 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 07:52:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68c8ba3c |
7 |
|
8 |
sys-devel/gdb: drop 12.1, 12.1-r1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/gdb/gdb-12.1-r1.ebuild | 296 --------------------------------------- |
13 |
sys-devel/gdb/gdb-12.1.ebuild | 285 ------------------------------------- |
14 |
2 files changed, 581 deletions(-) |
15 |
|
16 |
diff --git a/sys-devel/gdb/gdb-12.1-r1.ebuild b/sys-devel/gdb/gdb-12.1-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index f75e337dc424..000000000000 |
19 |
--- a/sys-devel/gdb/gdb-12.1-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,296 +0,0 @@ |
22 |
-# Copyright 1999-2022 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{8..11} ) |
28 |
-inherit flag-o-matic python-single-r1 strip-linguas toolchain-funcs |
29 |
- |
30 |
-export CTARGET=${CTARGET:-${CHOST}} |
31 |
- |
32 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
33 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
34 |
- export CTARGET=${CATEGORY#cross-} |
35 |
- fi |
36 |
-fi |
37 |
- |
38 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
39 |
- |
40 |
-case ${PV} in |
41 |
- 9999*) |
42 |
- # live git tree |
43 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
44 |
- inherit git-r3 |
45 |
- SRC_URI="" |
46 |
- ;; |
47 |
- *.*.50.2???????) |
48 |
- # weekly snapshots |
49 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
50 |
- ;; |
51 |
- *) |
52 |
- # Normal upstream release |
53 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
54 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
55 |
- ;; |
56 |
-esac |
57 |
- |
58 |
-PATCH_VER="" |
59 |
-PATCH_DEV="" |
60 |
-DESCRIPTION="GNU debugger" |
61 |
-HOMEPAGE="https://sourceware.org/gdb/" |
62 |
-SRC_URI="${SRC_URI} |
63 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz} |
64 |
- ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz} |
65 |
-" |
66 |
- |
67 |
-LICENSE="GPL-3+ LGPL-2.1+" |
68 |
-SLOT="0" |
69 |
- |
70 |
-if [[ ${PV} != 9999* ]] ; then |
71 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
72 |
-fi |
73 |
- |
74 |
-IUSE="cet guile lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" |
75 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
76 |
- |
77 |
-# In fact, gdb's test suite needs some work to get passing. |
78 |
-# See e.g. https://sourceware.org/gdb/wiki/TestingGDB. |
79 |
-# As of 11.2, on amd64: "# of unexpected failures 8600" |
80 |
-# ia64 kernel crashes when gdb testsuite is running |
81 |
-# in fact, gdb's test suite needs some work to get passing. |
82 |
-# See e.g. https://sourceware.org/gdb/wiki/TestingGDB. |
83 |
-# As of 11.2, on amd64: "# of unexpected failures 8600" |
84 |
-RESTRICT=" |
85 |
- ia64? ( test ) |
86 |
- !test? ( test ) |
87 |
- test |
88 |
-" |
89 |
- |
90 |
-RDEPEND=" |
91 |
- dev-libs/mpfr:0= |
92 |
- dev-libs/gmp:= |
93 |
- >=sys-libs/ncurses-5.2-r2:0= |
94 |
- >=sys-libs/readline-7:0= |
95 |
- sys-libs/zlib |
96 |
- elibc_glibc? ( net-libs/libnsl:= ) |
97 |
- lzma? ( app-arch/xz-utils ) |
98 |
- python? ( ${PYTHON_DEPS} ) |
99 |
- guile? ( >=dev-scheme/guile-2.0 ) |
100 |
- xml? ( dev-libs/expat ) |
101 |
- source-highlight? ( |
102 |
- dev-util/source-highlight |
103 |
- ) |
104 |
- xxhash? ( |
105 |
- dev-libs/xxhash |
106 |
- ) |
107 |
-" |
108 |
-DEPEND="${RDEPEND}" |
109 |
-BDEPEND=" |
110 |
- app-arch/xz-utils |
111 |
- sys-apps/texinfo |
112 |
- virtual/yacc |
113 |
- nls? ( sys-devel/gettext ) |
114 |
- source-highlight? ( virtual/pkgconfig ) |
115 |
- test? ( dev-util/dejagnu ) |
116 |
-" |
117 |
- |
118 |
-PATCHES=( |
119 |
- "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch |
120 |
- "${FILESDIR}"/${P}-readline-8.2-build.patch |
121 |
-) |
122 |
- |
123 |
-pkg_setup() { |
124 |
- use python && python-single-r1_pkg_setup |
125 |
-} |
126 |
- |
127 |
-src_prepare() { |
128 |
- default |
129 |
- |
130 |
- strip-linguas -u bfd/po opcodes/po |
131 |
- |
132 |
- # Avoid using ancient termcap from host on Prefix systems |
133 |
- sed -i -e 's/termcap tinfow/tinfow/g' \ |
134 |
- gdb/configure{.ac,} || die |
135 |
-} |
136 |
- |
137 |
-gdb_branding() { |
138 |
- printf "Gentoo ${PV} " |
139 |
- |
140 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
141 |
- printf "p${PATCH_VER}" |
142 |
- else |
143 |
- printf "vanilla" |
144 |
- fi |
145 |
- |
146 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
147 |
-} |
148 |
- |
149 |
-src_configure() { |
150 |
- strip-unsupported-flags |
151 |
- |
152 |
- # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html |
153 |
- # Avoid really confusing logs from subconfigure spam, makes logs far |
154 |
- # more legible. |
155 |
- MAKEOPTS="--output-sync=line ${MAKEOPTS}" |
156 |
- |
157 |
- local myconf=( |
158 |
- # portage's econf() does not detect presence of --d-d-t |
159 |
- # because it greps only top-level ./configure. But not |
160 |
- # gnulib's or gdb's configure. |
161 |
- --disable-dependency-tracking |
162 |
- |
163 |
- --with-pkgversion="$(gdb_branding)" |
164 |
- --with-bugurl='https://bugs.gentoo.org/' |
165 |
- --disable-werror |
166 |
- # Disable modules that are in a combined binutils/gdb tree. bug #490566 |
167 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
168 |
- |
169 |
- # avoid automagic dependency on (currently prefix) systems |
170 |
- # systems with debuginfod library, bug #754753 |
171 |
- --without-debuginfod |
172 |
- |
173 |
- $(use_enable test unit-tests) |
174 |
- |
175 |
- # Allow user to opt into CET for host libraries. |
176 |
- # Ideally we would like automagic-or-disabled here. |
177 |
- # But the check does not quite work on i686: bug #760926. |
178 |
- $(use_enable cet) |
179 |
- |
180 |
- # We need to set both configure options, --with-sysroot and --libdir, |
181 |
- # to fix cross build issues that happen when configuring gmp. |
182 |
- # We explicitly need --libdir. Having only --with-sysroot without |
183 |
- # --libdir would not fix the build issues. |
184 |
- # For some reason, it is not enough to set only --with-sysroot, |
185 |
- # also not enough to pass --with-gmp-xxx options. |
186 |
- --with-sysroot="${ESYSROOT}" |
187 |
- --libdir="${ESYSROOT}/usr/$(get_libdir)" |
188 |
- ) |
189 |
- |
190 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
191 |
- |
192 |
- is_cross && myconf+=( |
193 |
- --with-sysroot="${sysroot}" |
194 |
- --includedir="${sysroot}/usr/include" |
195 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
196 |
- ) |
197 |
- |
198 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
199 |
- # it also doesn't support all targets, so rather than duplicate |
200 |
- # the target list (which changes between versions), use the |
201 |
- # "auto" value when things are turned on, which is triggered |
202 |
- # whenever no --enable or --disable is given |
203 |
- if is_cross || use !server ; then |
204 |
- myconf+=( --disable-gdbserver ) |
205 |
- fi |
206 |
- |
207 |
- myconf+=( |
208 |
- --enable-64-bit-bfd |
209 |
- --disable-install-libbfd |
210 |
- --disable-install-libiberty |
211 |
- --enable-obsolete |
212 |
- # This only disables building in the readline subdir. |
213 |
- # For gdb itself, it'll use the system version. |
214 |
- --disable-readline |
215 |
- --with-system-readline |
216 |
- # This only disables building in the zlib subdir. |
217 |
- # For gdb itself, it'll use the system version. |
218 |
- --without-zlib |
219 |
- --with-system-zlib |
220 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
221 |
- $(use_with xml expat) |
222 |
- $(use_with lzma) |
223 |
- $(use_enable nls) |
224 |
- $(use_enable source-highlight) |
225 |
- $(use multitarget && echo --enable-targets=all) |
226 |
- $(use_with python python "${EPYTHON}") |
227 |
- $(use_with xxhash) |
228 |
- $(use_with guile) |
229 |
- ) |
230 |
- |
231 |
- if use sparc-solaris || use x86-solaris ; then |
232 |
- # Disable largefile support |
233 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
234 |
- myconf+=( --disable-largefile ) |
235 |
- fi |
236 |
- |
237 |
- # source-highlight is detected with pkg-config: bug #716558 |
238 |
- export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" |
239 |
- |
240 |
- export CC_FOR_BUILD="$(tc-getBUILD_CC)" |
241 |
- |
242 |
- # ensure proper compiler is detected for Clang builds: bug #831202 |
243 |
- export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" |
244 |
- |
245 |
- econf "${myconf[@]}" |
246 |
-} |
247 |
- |
248 |
-src_compile() { |
249 |
- emake V=1 |
250 |
-} |
251 |
- |
252 |
-src_install() { |
253 |
- emake V=1 DESTDIR="${D}" install |
254 |
- |
255 |
- find "${ED}"/usr -name libiberty.a -delete || die |
256 |
- |
257 |
- # Delete translations that conflict with binutils-libs. bug #528088 |
258 |
- # Note: Should figure out how to store these in an internal gdb dir. |
259 |
- if use nls ; then |
260 |
- find "${ED}" \ |
261 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
262 |
- -delete || die |
263 |
- fi |
264 |
- |
265 |
- # Don't install docs when building a cross-gdb |
266 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
267 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
268 |
- local f |
269 |
- for f in "${ED}"/usr/share/man/*/* ; do |
270 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
271 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
272 |
- fi |
273 |
- done |
274 |
- return 0 |
275 |
- fi |
276 |
- |
277 |
- # Install it by hand for now: |
278 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
279 |
- # Only install if it exists due to the twisted behavior (see |
280 |
- # notes in src_configure above). |
281 |
- [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay |
282 |
- |
283 |
- docinto gdb |
284 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
285 |
- gdb/NEWS gdb/PROBLEMS |
286 |
- docinto sim |
287 |
- dodoc sim/{MAINTAINERS,README-HACKING} |
288 |
- |
289 |
- if use server ; then |
290 |
- docinto gdbserver |
291 |
- dodoc gdbserver/README |
292 |
- fi |
293 |
- |
294 |
- if [[ -n ${PATCH_VER} ]] ; then |
295 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
296 |
- fi |
297 |
- |
298 |
- # Remove shared info pages |
299 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* |
300 |
- |
301 |
- if use python ; then |
302 |
- python_optimize "${ED}"/usr/share/gdb/python/gdb |
303 |
- fi |
304 |
-} |
305 |
- |
306 |
-pkg_postinst() { |
307 |
- # Portage doesn't unmerge files in /etc |
308 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
309 |
- |
310 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
311 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
312 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
313 |
- ewarn "have to perform the following steps:" |
314 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
315 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
316 |
- fi |
317 |
-} |
318 |
|
319 |
diff --git a/sys-devel/gdb/gdb-12.1.ebuild b/sys-devel/gdb/gdb-12.1.ebuild |
320 |
deleted file mode 100644 |
321 |
index 0accf1af301f..000000000000 |
322 |
--- a/sys-devel/gdb/gdb-12.1.ebuild |
323 |
+++ /dev/null |
324 |
@@ -1,285 +0,0 @@ |
325 |
-# Copyright 1999-2022 Gentoo Authors |
326 |
-# Distributed under the terms of the GNU General Public License v2 |
327 |
- |
328 |
-EAPI=7 |
329 |
- |
330 |
-PYTHON_COMPAT=( python3_{8,9,10} ) |
331 |
-inherit flag-o-matic python-single-r1 strip-linguas toolchain-funcs |
332 |
- |
333 |
-export CTARGET=${CTARGET:-${CHOST}} |
334 |
- |
335 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
336 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
337 |
- export CTARGET=${CATEGORY#cross-} |
338 |
- fi |
339 |
-fi |
340 |
- |
341 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
342 |
- |
343 |
-case ${PV} in |
344 |
- 9999*) |
345 |
- # live git tree |
346 |
- EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git" |
347 |
- inherit git-r3 |
348 |
- SRC_URI="" |
349 |
- ;; |
350 |
- *.*.50.2???????) |
351 |
- # weekly snapshots |
352 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
353 |
- ;; |
354 |
- *) |
355 |
- # Normal upstream release |
356 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
357 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
358 |
- ;; |
359 |
-esac |
360 |
- |
361 |
-PATCH_VER="" |
362 |
-PATCH_DEV="" |
363 |
-DESCRIPTION="GNU debugger" |
364 |
-HOMEPAGE="https://sourceware.org/gdb/" |
365 |
-SRC_URI="${SRC_URI} |
366 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz} |
367 |
- ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz} |
368 |
-" |
369 |
- |
370 |
-LICENSE="GPL-3+ LGPL-2.1+" |
371 |
-SLOT="0" |
372 |
- |
373 |
-if [[ ${PV} != 9999* ]] ; then |
374 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
375 |
-fi |
376 |
- |
377 |
-IUSE="cet guile lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" |
378 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
379 |
- |
380 |
-# In fact, gdb's test suite needs some work to get passing. |
381 |
-# See e.g. https://sourceware.org/gdb/wiki/TestingGDB. |
382 |
-# As of 11.2, on amd64: "# of unexpected failures 8600" |
383 |
-# ia64 kernel crashes when gdb testsuite is running |
384 |
-# in fact, gdb's test suite needs some work to get passing. |
385 |
-# See e.g. https://sourceware.org/gdb/wiki/TestingGDB. |
386 |
-# As of 11.2, on amd64: "# of unexpected failures 8600" |
387 |
-RESTRICT=" |
388 |
- ia64? ( test ) |
389 |
- !test? ( test ) |
390 |
- test |
391 |
-" |
392 |
- |
393 |
-RDEPEND=" |
394 |
- dev-libs/mpfr:0= |
395 |
- dev-libs/gmp:= |
396 |
- >=sys-libs/ncurses-5.2-r2:0= |
397 |
- >=sys-libs/readline-7:0= |
398 |
- sys-libs/zlib |
399 |
- elibc_glibc? ( net-libs/libnsl:= ) |
400 |
- lzma? ( app-arch/xz-utils ) |
401 |
- python? ( ${PYTHON_DEPS} ) |
402 |
- guile? ( >=dev-scheme/guile-2.0 ) |
403 |
- xml? ( dev-libs/expat ) |
404 |
- source-highlight? ( |
405 |
- dev-util/source-highlight |
406 |
- ) |
407 |
- xxhash? ( |
408 |
- dev-libs/xxhash |
409 |
- ) |
410 |
-" |
411 |
-DEPEND="${RDEPEND}" |
412 |
-BDEPEND=" |
413 |
- app-arch/xz-utils |
414 |
- sys-apps/texinfo |
415 |
- virtual/yacc |
416 |
- nls? ( sys-devel/gettext ) |
417 |
- source-highlight? ( virtual/pkgconfig ) |
418 |
- test? ( dev-util/dejagnu ) |
419 |
-" |
420 |
- |
421 |
-PATCHES=( |
422 |
- "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch |
423 |
- "${FILESDIR}"/${P}-readline-8.2-build.patch |
424 |
-) |
425 |
- |
426 |
-pkg_setup() { |
427 |
- use python && python-single-r1_pkg_setup |
428 |
-} |
429 |
- |
430 |
-src_prepare() { |
431 |
- default |
432 |
- |
433 |
- strip-linguas -u bfd/po opcodes/po |
434 |
- |
435 |
- # Avoid using ancient termcap from host on Prefix systems |
436 |
- sed -i -e 's/termcap tinfow/tinfow/g' \ |
437 |
- gdb/configure{.ac,} || die |
438 |
-} |
439 |
- |
440 |
-gdb_branding() { |
441 |
- printf "Gentoo ${PV} " |
442 |
- |
443 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
444 |
- printf "p${PATCH_VER}" |
445 |
- else |
446 |
- printf "vanilla" |
447 |
- fi |
448 |
- |
449 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
450 |
-} |
451 |
- |
452 |
-src_configure() { |
453 |
- strip-unsupported-flags |
454 |
- |
455 |
- # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html |
456 |
- # Avoid really confusing logs from subconfigure spam, makes logs far |
457 |
- # more legible. |
458 |
- MAKEOPTS="--output-sync=line ${MAKEOPTS}" |
459 |
- |
460 |
- local myconf=( |
461 |
- # portage's econf() does not detect presence of --d-d-t |
462 |
- # because it greps only top-level ./configure. But not |
463 |
- # gnulib's or gdb's configure. |
464 |
- --disable-dependency-tracking |
465 |
- |
466 |
- --with-pkgversion="$(gdb_branding)" |
467 |
- --with-bugurl='https://bugs.gentoo.org/' |
468 |
- --disable-werror |
469 |
- # Disable modules that are in a combined binutils/gdb tree. bug #490566 |
470 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
471 |
- |
472 |
- # avoid automagic dependency on (currently prefix) systems |
473 |
- # systems with debuginfod library, bug #754753 |
474 |
- --without-debuginfod |
475 |
- |
476 |
- # Allow user to opt into CET for host libraries. |
477 |
- # Ideally we would like automagic-or-disabled here. |
478 |
- # But the check does not quite work on i686: bug #760926. |
479 |
- $(use_enable cet) |
480 |
- ) |
481 |
- |
482 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
483 |
- |
484 |
- is_cross && myconf+=( |
485 |
- --with-sysroot="${sysroot}" |
486 |
- --includedir="${sysroot}/usr/include" |
487 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
488 |
- ) |
489 |
- |
490 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
491 |
- # it also doesn't support all targets, so rather than duplicate |
492 |
- # the target list (which changes between versions), use the |
493 |
- # "auto" value when things are turned on, which is triggered |
494 |
- # whenever no --enable or --disable is given |
495 |
- if is_cross || use !server ; then |
496 |
- myconf+=( --disable-gdbserver ) |
497 |
- fi |
498 |
- |
499 |
- myconf+=( |
500 |
- --enable-64-bit-bfd |
501 |
- --disable-install-libbfd |
502 |
- --disable-install-libiberty |
503 |
- --enable-obsolete |
504 |
- # This only disables building in the readline subdir. |
505 |
- # For gdb itself, it'll use the system version. |
506 |
- --disable-readline |
507 |
- --with-system-readline |
508 |
- # This only disables building in the zlib subdir. |
509 |
- # For gdb itself, it'll use the system version. |
510 |
- --without-zlib |
511 |
- --with-system-zlib |
512 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
513 |
- $(use_with xml expat) |
514 |
- $(use_with lzma) |
515 |
- $(use_enable nls) |
516 |
- $(use_enable source-highlight) |
517 |
- $(use multitarget && echo --enable-targets=all) |
518 |
- $(use_with python python "${EPYTHON}") |
519 |
- $(use_with xxhash) |
520 |
- $(use_with guile) |
521 |
- ) |
522 |
- |
523 |
- if use sparc-solaris || use x86-solaris ; then |
524 |
- # Disable largefile support |
525 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
526 |
- myconf+=( --disable-largefile ) |
527 |
- fi |
528 |
- |
529 |
- # source-highlight is detected with pkg-config: bug #716558 |
530 |
- export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" |
531 |
- |
532 |
- export CC_FOR_BUILD="$(tc-getBUILD_CC)" |
533 |
- |
534 |
- # ensure proper compiler is detected for Clang builds: bug #831202 |
535 |
- export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" |
536 |
- |
537 |
- econf "${myconf[@]}" |
538 |
-} |
539 |
- |
540 |
-src_compile() { |
541 |
- emake V=1 |
542 |
-} |
543 |
- |
544 |
-src_install() { |
545 |
- emake V=1 DESTDIR="${D}" install |
546 |
- |
547 |
- find "${ED}"/usr -name libiberty.a -delete || die |
548 |
- |
549 |
- # Delete translations that conflict with binutils-libs. bug #528088 |
550 |
- # Note: Should figure out how to store these in an internal gdb dir. |
551 |
- if use nls ; then |
552 |
- find "${ED}" \ |
553 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
554 |
- -delete || die |
555 |
- fi |
556 |
- |
557 |
- # Don't install docs when building a cross-gdb |
558 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
559 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
560 |
- local f |
561 |
- for f in "${ED}"/usr/share/man/*/* ; do |
562 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
563 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
564 |
- fi |
565 |
- done |
566 |
- return 0 |
567 |
- fi |
568 |
- |
569 |
- # Install it by hand for now: |
570 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
571 |
- # Only install if it exists due to the twisted behavior (see |
572 |
- # notes in src_configure above). |
573 |
- [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay |
574 |
- |
575 |
- docinto gdb |
576 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
577 |
- gdb/NEWS gdb/PROBLEMS |
578 |
- docinto sim |
579 |
- dodoc sim/{MAINTAINERS,README-HACKING} |
580 |
- |
581 |
- if use server ; then |
582 |
- docinto gdbserver |
583 |
- dodoc gdbserver/README |
584 |
- fi |
585 |
- |
586 |
- if [[ -n ${PATCH_VER} ]] ; then |
587 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
588 |
- fi |
589 |
- |
590 |
- # Remove shared info pages |
591 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* |
592 |
- |
593 |
- if use python ; then |
594 |
- python_optimize "${ED}"/usr/share/gdb/python/gdb |
595 |
- fi |
596 |
-} |
597 |
- |
598 |
-pkg_postinst() { |
599 |
- # Portage doesn't unmerge files in /etc |
600 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
601 |
- |
602 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
603 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
604 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
605 |
- ewarn "have to perform the following steps:" |
606 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
607 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
608 |
- fi |
609 |
-} |