1 |
commit: 11fb6886774dd39d979c9bf5e404f0c85d17e430 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 2 17:49:48 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jul 2 17:49:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=11fb6886 |
7 |
|
8 |
sys-devel/gdb: remove old versions |
9 |
|
10 |
8.1-r1 is marked stable |
11 |
|
12 |
sys-devel/gdb/Manifest | 5 - |
13 |
sys-devel/gdb/files/gdb-linux_nat.patch | 26 --- |
14 |
sys-devel/gdb/files/gdb-missing-stat_h.patch | 11 -- |
15 |
sys-devel/gdb/gdb-7.10.1.ebuild | 239 ------------------------- |
16 |
sys-devel/gdb/gdb-7.12.1.ebuild | 239 ------------------------- |
17 |
sys-devel/gdb/gdb-8.0.1-r1.ebuild | 255 --------------------------- |
18 |
sys-devel/gdb/gdb-8.0.1.ebuild | 251 -------------------------- |
19 |
sys-devel/gdb/gdb-8.0.ebuild | 247 -------------------------- |
20 |
sys-devel/gdb/gdb-8.1.ebuild | 255 --------------------------- |
21 |
9 files changed, 1528 deletions(-) |
22 |
|
23 |
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest |
24 |
index 1f8119e..a06dce4 100644 |
25 |
--- a/sys-devel/gdb/Manifest |
26 |
+++ b/sys-devel/gdb/Manifest |
27 |
@@ -1,7 +1,2 @@ |
28 |
-DIST gdb-7.10.1.tar.xz 18531436 BLAKE2B b50a1b6b5b867e4a52943fdc4992c654ceec180099771381df78de5ba79086e822264356a762c61b89e986407d6f0cce336be216276545591e637131dc02f4a8 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 |
29 |
-DIST gdb-7.12.1.tar.xz 19225392 BLAKE2B 2e4b7fe69c3cb11c04b505d1e110bf0a9ca65b6178f3e6a6ccc11fde1e8750b595016baf64adb2c22903d346cec1dab15574681de812ac8d260aebf4152a3027 SHA512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7704251289cababbfaaf9e075550cdf741a54d6cd9ca3433d910efcd8 |
30 |
-DIST gdb-8.0.1-patches-1.tar.xz 8620 BLAKE2B 8595017a881c41cbe78846fae9f50460aa6a4aa8d3863b17e4b9119d886600ee086b642c44b427a2de29c5f3fd4697df838e85e23aafeac05a6ce3291546f099 SHA512 912ad1a51207ca1ec9d3c46e32b07d78a5d3368b617f277532f8a81e40875cc9ec5af8b62f9b1de67aa6d09520c6cc6ad32f48bd44415985d8ad03aa4a1bca7d |
31 |
-DIST gdb-8.0.1.tar.xz 19583920 BLAKE2B c22e314a0fe3ccb84cef6eca66c51af60914160ac9760cbe517628079dfb15ec73a623badf070b3162d4bd9e44937f717fd44e1d569edba4532853c82b31ac1d SHA512 5eb328910033f0918058be2f92caebf1e8dfc6caa3c730d99d621627e53de3c1b43761c2f683d53555893253c2f06768cbf56cdea051a3d291ffb6cfae87b5e1 |
32 |
-DIST gdb-8.0.tar.xz 19588616 BLAKE2B 148965e33a42787b5fa39650c2b6c48e28895930e36f11b44e8391366be1cc3bd4265ea7df932a7d650291fb20e3f66956c7dff1923025f889e5c035d3bf4207 SHA512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 |
33 |
DIST gdb-8.1-patches-1.tar.xz 8768 BLAKE2B 792ceddcb8eafd028db23d69ad5d9eb00223722520c6ff0a23a24fee1a33dceb02f05e61a1d6c3700835c480b38d66f43f71ef3c4af406d4ae1147eaaf8f311e SHA512 87a5c9d9207817245e1ffd07fdad2cb566de4fc11725aa0e49e58268c3ab1ae3b4b9f4b9faa55acc8cb4c3c7cb5a3875ea7da02abeb8f775953a8aed2e2c6403 |
34 |
DIST gdb-8.1.tar.xz 20095080 BLAKE2B 9332058b8b723261ba215124f42a2d6ba916219efdfb3c23ae1f48fecf131c801bbd31b345f2c8339b23d74da690be0260ac31f8f2e79549b62f0880199bfdec SHA512 ffd82f415d7652d62dad1716c307836f594217a363429609beb7d70239e8bf06b73b393345b0e000796228e56681ed7656ac3c8be05e91d6d652ab0d5b1dc357 |
35 |
|
36 |
diff --git a/sys-devel/gdb/files/gdb-linux_nat.patch b/sys-devel/gdb/files/gdb-linux_nat.patch |
37 |
deleted file mode 100644 |
38 |
index 6a7276c..0000000 |
39 |
--- a/sys-devel/gdb/files/gdb-linux_nat.patch |
40 |
+++ /dev/null |
41 |
@@ -1,26 +0,0 @@ |
42 |
---- ./gdb/linux-nat.c.orig |
43 |
-+++ ./gdb/linux-nat.c |
44 |
-@@ -169,6 +169,10 @@ |
45 |
- #define O_LARGEFILE 0 |
46 |
- #endif |
47 |
- |
48 |
-+#ifndef W_STOPCODE |
49 |
-+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) |
50 |
-+#endif |
51 |
-+ |
52 |
- /* The single-threaded native GNU/Linux target_ops. We save a pointer for |
53 |
- the use of the multi-threaded target. */ |
54 |
- static struct target_ops *linux_ops; |
55 |
-@@ -4875,10 +4879,10 @@ |
56 |
- fortunately they don't change! */ |
57 |
- |
58 |
- if (restart == 0) |
59 |
-- restart = __SIGRTMIN; |
60 |
-+ restart = SIGRTMIN; |
61 |
- |
62 |
- if (cancel == 0) |
63 |
-- cancel = __SIGRTMIN + 1; |
64 |
-+ cancel = SIGRTMIN + 1; |
65 |
- |
66 |
- sigaddset (set, restart); |
67 |
- sigaddset (set, cancel); |
68 |
|
69 |
diff --git a/sys-devel/gdb/files/gdb-missing-stat_h.patch b/sys-devel/gdb/files/gdb-missing-stat_h.patch |
70 |
deleted file mode 100644 |
71 |
index ffac2f2..0000000 |
72 |
--- a/sys-devel/gdb/files/gdb-missing-stat_h.patch |
73 |
+++ /dev/null |
74 |
@@ -1,11 +0,0 @@ |
75 |
-diff -Naur gdb-7.10.1.orig/gdb/gdbserver/target.h gdb-7.10.1/gdb/gdbserver/target.h |
76 |
---- gdb-7.10.1.orig/gdb/gdbserver/target.h 2015-12-05 10:16:45.000000000 -0500 |
77 |
-+++ gdb-7.10.1/gdb/gdbserver/target.h 2016-02-11 19:21:48.039659882 -0500 |
78 |
-@@ -21,6 +21,7 @@ |
79 |
- #ifndef TARGET_H |
80 |
- #define TARGET_H |
81 |
- |
82 |
-+#include <sys/stat.h> |
83 |
- #include "target/target.h" |
84 |
- #include "target/resume.h" |
85 |
- #include "target/wait.h" |
86 |
|
87 |
diff --git a/sys-devel/gdb/gdb-7.10.1.ebuild b/sys-devel/gdb/gdb-7.10.1.ebuild |
88 |
deleted file mode 100644 |
89 |
index 066bc19..0000000 |
90 |
--- a/sys-devel/gdb/gdb-7.10.1.ebuild |
91 |
+++ /dev/null |
92 |
@@ -1,239 +0,0 @@ |
93 |
-# Copyright 1999-2017 Gentoo Foundation |
94 |
-# Distributed under the terms of the GNU General Public License v2 |
95 |
- |
96 |
-EAPI="5" |
97 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
98 |
- |
99 |
-inherit flag-o-matic eutils python-single-r1 |
100 |
- |
101 |
-export CTARGET=${CTARGET:-${CHOST}} |
102 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
103 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
104 |
- export CTARGET=${CATEGORY#cross-} |
105 |
- fi |
106 |
-fi |
107 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
108 |
- |
109 |
-RPM= |
110 |
-MY_PV=${PV} |
111 |
-case ${PV} in |
112 |
-9999*) |
113 |
- # live git tree |
114 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
115 |
- inherit git-2 |
116 |
- SRC_URI="" |
117 |
- ;; |
118 |
-*.*.50.2???????) |
119 |
- # weekly snapshots |
120 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
121 |
- ;; |
122 |
-*.*.*.*.*.*) |
123 |
- # fedora versions; note we swap the rpm & fedora core versions. |
124 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
125 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
126 |
- inherit versionator rpm |
127 |
- gvcr() { get_version_component_range "$@"; } |
128 |
- parse_fedora_ver() { |
129 |
- set -- $(get_version_components) |
130 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
131 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
132 |
- } |
133 |
- parse_fedora_ver |
134 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
135 |
- ;; |
136 |
-*) |
137 |
- # Normal upstream release |
138 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
139 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
140 |
- ;; |
141 |
-esac |
142 |
- |
143 |
-PATCH_VER="" |
144 |
-DESCRIPTION="GNU debugger" |
145 |
-HOMEPAGE="https://sourceware.org/gdb/" |
146 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
147 |
- |
148 |
-LICENSE="GPL-2 LGPL-2" |
149 |
-SLOT="0" |
150 |
-if [[ ${PV} != 9999* ]] ; then |
151 |
- # alpha #562128 |
152 |
- KEYWORDS="amd64 arm ~mips ppc x86" |
153 |
-fi |
154 |
-IUSE="+client expat lzma multitarget nls +python +server test vanilla" |
155 |
-REQUIRED_USE=" |
156 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
157 |
- || ( client server ) |
158 |
-" |
159 |
- |
160 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
161 |
- client? ( |
162 |
- >=sys-libs/ncurses-5.2-r2:0= |
163 |
- sys-libs/readline:0= |
164 |
- expat? ( dev-libs/expat ) |
165 |
- lzma? ( app-arch/xz-utils ) |
166 |
- python? ( ${PYTHON_DEPS} ) |
167 |
- sys-libs/zlib |
168 |
- )" |
169 |
-DEPEND="${RDEPEND} |
170 |
- app-arch/xz-utils |
171 |
- sys-apps/texinfo |
172 |
- client? ( |
173 |
- virtual/yacc |
174 |
- test? ( dev-util/dejagnu ) |
175 |
- nls? ( sys-devel/gettext ) |
176 |
- )" |
177 |
- |
178 |
-S=${WORKDIR}/${PN}-${MY_PV} |
179 |
- |
180 |
-pkg_setup() { |
181 |
- use python && python-single-r1_pkg_setup |
182 |
-} |
183 |
- |
184 |
-src_prepare() { |
185 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
186 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
187 |
- |
188 |
- epatch "${FILESDIR}"/${PN}-linux_nat.patch |
189 |
- epatch "${FILESDIR}"/${PN}-missing-stat_h.patch |
190 |
- |
191 |
- epatch_user |
192 |
- strip-linguas -u bfd/po opcodes/po |
193 |
-} |
194 |
- |
195 |
-gdb_branding() { |
196 |
- printf "Gentoo ${PV} " |
197 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
198 |
- printf "p${PATCH_VER}" |
199 |
- else |
200 |
- printf "vanilla" |
201 |
- fi |
202 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
203 |
-} |
204 |
- |
205 |
-src_configure() { |
206 |
- strip-unsupported-flags |
207 |
- |
208 |
- local myconf=( |
209 |
- --with-pkgversion="$(gdb_branding)" |
210 |
- --with-bugurl='https://bugs.gentoo.org/' |
211 |
- --disable-werror |
212 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
213 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
214 |
- ) |
215 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
216 |
- is_cross && myconf+=( |
217 |
- --with-sysroot="${sysroot}" |
218 |
- --includedir="${sysroot}/usr/include" |
219 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
220 |
- ) |
221 |
- |
222 |
- if use server && ! use client ; then |
223 |
- # just configure+build in the gdbserver subdir to speed things up |
224 |
- cd gdb/gdbserver |
225 |
- myconf+=( --program-transform-name='' ) |
226 |
- else |
227 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
228 |
- # it also doesn't support all targets, so rather than duplicate |
229 |
- # the target list (which changes between versions), use the |
230 |
- # "auto" value when things are turned on. |
231 |
- is_cross \ |
232 |
- && myconf+=( --disable-gdbserver ) \ |
233 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
234 |
- fi |
235 |
- |
236 |
- if ! ( use server && ! use client ) ; then |
237 |
- # if we are configuring in the top level, then use all |
238 |
- # the additional global options |
239 |
- myconf+=( |
240 |
- --enable-64-bit-bfd |
241 |
- --disable-install-libbfd |
242 |
- --disable-install-libiberty |
243 |
- # Disable guile for now as it requires guile-2.x #562902 |
244 |
- --without-guile |
245 |
- # This only disables building in the readline subdir. |
246 |
- # For gdb itself, it'll use the system version. |
247 |
- --disable-readline |
248 |
- --with-system-readline |
249 |
- # This only disables building in the zlib subdir. |
250 |
- # For gdb itself, it'll use the system version. |
251 |
- --without-zlib |
252 |
- --with-system-zlib |
253 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
254 |
- $(use_with expat) |
255 |
- $(use_with lzma) |
256 |
- $(use_enable nls) |
257 |
- $(use multitarget && echo --enable-targets=all) |
258 |
- $(use_with python python "${EPYTHON}") |
259 |
- ) |
260 |
- fi |
261 |
- |
262 |
- econf "${myconf[@]}" |
263 |
-} |
264 |
- |
265 |
-src_test() { |
266 |
- nonfatal emake check || ewarn "tests failed" |
267 |
-} |
268 |
- |
269 |
-src_install() { |
270 |
- use server && ! use client && cd gdb/gdbserver |
271 |
- default |
272 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
273 |
- cd "${S}" |
274 |
- |
275 |
- # Delete translations that conflict with binutils-libs. #528088 |
276 |
- # Note: Should figure out how to store these in an internal gdb dir. |
277 |
- if use nls ; then |
278 |
- find "${ED}" \ |
279 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
280 |
- -delete |
281 |
- fi |
282 |
- |
283 |
- # Don't install docs when building a cross-gdb |
284 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
285 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
286 |
- local f |
287 |
- for f in "${ED}"/usr/share/man/*/* ; do |
288 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
289 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
290 |
- fi |
291 |
- done |
292 |
- return 0 |
293 |
- fi |
294 |
- # Install it by hand for now: |
295 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
296 |
- # Only install if it exists due to the twisted behavior (see |
297 |
- # notes in src_configure above). |
298 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
299 |
- |
300 |
- if use client ; then |
301 |
- docinto gdb |
302 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
303 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
304 |
- fi |
305 |
- docinto sim |
306 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
307 |
- if use server ; then |
308 |
- docinto gdbserver |
309 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
310 |
- fi |
311 |
- |
312 |
- if [[ -n ${PATCH_VER} ]] ; then |
313 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
314 |
- fi |
315 |
- |
316 |
- # Remove shared info pages |
317 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
318 |
-} |
319 |
- |
320 |
-pkg_postinst() { |
321 |
- # portage sucks and doesnt unmerge files in /etc |
322 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
323 |
- |
324 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
325 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
326 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
327 |
- ewarn "have to perform the following steps:" |
328 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
329 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
330 |
- fi |
331 |
-} |
332 |
|
333 |
diff --git a/sys-devel/gdb/gdb-7.12.1.ebuild b/sys-devel/gdb/gdb-7.12.1.ebuild |
334 |
deleted file mode 100644 |
335 |
index 877b5fe..0000000 |
336 |
--- a/sys-devel/gdb/gdb-7.12.1.ebuild |
337 |
+++ /dev/null |
338 |
@@ -1,239 +0,0 @@ |
339 |
-# Copyright 1999-2017 Gentoo Foundation |
340 |
-# Distributed under the terms of the GNU General Public License v2 |
341 |
- |
342 |
-EAPI="5" |
343 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
344 |
- |
345 |
-inherit flag-o-matic eutils python-single-r1 |
346 |
- |
347 |
-export CTARGET=${CTARGET:-${CHOST}} |
348 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
349 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
350 |
- export CTARGET=${CATEGORY#cross-} |
351 |
- fi |
352 |
-fi |
353 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
354 |
- |
355 |
-RPM= |
356 |
-MY_PV=${PV} |
357 |
-case ${PV} in |
358 |
-9999*) |
359 |
- # live git tree |
360 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
361 |
- inherit git-2 |
362 |
- SRC_URI="" |
363 |
- ;; |
364 |
-*.*.50.2???????) |
365 |
- # weekly snapshots |
366 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
367 |
- ;; |
368 |
-*.*.*.*.*.*) |
369 |
- # fedora versions; note we swap the rpm & fedora core versions. |
370 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
371 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
372 |
- inherit versionator rpm |
373 |
- gvcr() { get_version_component_range "$@"; } |
374 |
- parse_fedora_ver() { |
375 |
- set -- $(get_version_components) |
376 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
377 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
378 |
- } |
379 |
- parse_fedora_ver |
380 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
381 |
- ;; |
382 |
-*) |
383 |
- # Normal upstream release |
384 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
385 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
386 |
- ;; |
387 |
-esac |
388 |
- |
389 |
-PATCH_VER="" |
390 |
-DESCRIPTION="GNU debugger" |
391 |
-HOMEPAGE="https://sourceware.org/gdb/" |
392 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
393 |
- |
394 |
-LICENSE="GPL-2 LGPL-2" |
395 |
-SLOT="0" |
396 |
-if [[ ${PV} != 9999* ]] ; then |
397 |
- # alpha #562128 |
398 |
- KEYWORDS="amd64 arm ~mips ppc x86" |
399 |
-fi |
400 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
401 |
-REQUIRED_USE=" |
402 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
403 |
- || ( client server ) |
404 |
-" |
405 |
- |
406 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
407 |
- client? ( |
408 |
- >=sys-libs/ncurses-5.2-r2:0= |
409 |
- sys-libs/readline:0= |
410 |
- lzma? ( app-arch/xz-utils ) |
411 |
- python? ( ${PYTHON_DEPS} ) |
412 |
- xml? ( dev-libs/expat ) |
413 |
- sys-libs/zlib |
414 |
- )" |
415 |
-DEPEND="${RDEPEND} |
416 |
- app-arch/xz-utils |
417 |
- sys-apps/texinfo |
418 |
- client? ( |
419 |
- virtual/yacc |
420 |
- test? ( dev-util/dejagnu ) |
421 |
- nls? ( sys-devel/gettext ) |
422 |
- )" |
423 |
- |
424 |
-S=${WORKDIR}/${PN}-${MY_PV} |
425 |
- |
426 |
-pkg_setup() { |
427 |
- use python && python-single-r1_pkg_setup |
428 |
-} |
429 |
- |
430 |
-src_prepare() { |
431 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
432 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
433 |
- |
434 |
- epatch "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
435 |
- epatch "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
436 |
- |
437 |
- epatch_user |
438 |
- strip-linguas -u bfd/po opcodes/po |
439 |
-} |
440 |
- |
441 |
-gdb_branding() { |
442 |
- printf "Gentoo ${PV} " |
443 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
444 |
- printf "p${PATCH_VER}" |
445 |
- else |
446 |
- printf "vanilla" |
447 |
- fi |
448 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
449 |
-} |
450 |
- |
451 |
-src_configure() { |
452 |
- strip-unsupported-flags |
453 |
- |
454 |
- local myconf=( |
455 |
- --with-pkgversion="$(gdb_branding)" |
456 |
- --with-bugurl='https://bugs.gentoo.org/' |
457 |
- --disable-werror |
458 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
459 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
460 |
- ) |
461 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
462 |
- is_cross && myconf+=( |
463 |
- --with-sysroot="${sysroot}" |
464 |
- --includedir="${sysroot}/usr/include" |
465 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
466 |
- ) |
467 |
- |
468 |
- if use server && ! use client ; then |
469 |
- # just configure+build in the gdbserver subdir to speed things up |
470 |
- cd gdb/gdbserver |
471 |
- myconf+=( --program-transform-name='' ) |
472 |
- else |
473 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
474 |
- # it also doesn't support all targets, so rather than duplicate |
475 |
- # the target list (which changes between versions), use the |
476 |
- # "auto" value when things are turned on. |
477 |
- is_cross \ |
478 |
- && myconf+=( --disable-gdbserver ) \ |
479 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
480 |
- fi |
481 |
- |
482 |
- if ! ( use server && ! use client ) ; then |
483 |
- # if we are configuring in the top level, then use all |
484 |
- # the additional global options |
485 |
- myconf+=( |
486 |
- --enable-64-bit-bfd |
487 |
- --disable-install-libbfd |
488 |
- --disable-install-libiberty |
489 |
- # Disable guile for now as it requires guile-2.x #562902 |
490 |
- --without-guile |
491 |
- # This only disables building in the readline subdir. |
492 |
- # For gdb itself, it'll use the system version. |
493 |
- --disable-readline |
494 |
- --with-system-readline |
495 |
- # This only disables building in the zlib subdir. |
496 |
- # For gdb itself, it'll use the system version. |
497 |
- --without-zlib |
498 |
- --with-system-zlib |
499 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
500 |
- $(use_with xml expat) |
501 |
- $(use_with lzma) |
502 |
- $(use_enable nls) |
503 |
- $(use multitarget && echo --enable-targets=all) |
504 |
- $(use_with python python "${EPYTHON}") |
505 |
- ) |
506 |
- fi |
507 |
- |
508 |
- econf "${myconf[@]}" |
509 |
-} |
510 |
- |
511 |
-src_test() { |
512 |
- nonfatal emake check || ewarn "tests failed" |
513 |
-} |
514 |
- |
515 |
-src_install() { |
516 |
- use server && ! use client && cd gdb/gdbserver |
517 |
- default |
518 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
519 |
- cd "${S}" |
520 |
- |
521 |
- # Delete translations that conflict with binutils-libs. #528088 |
522 |
- # Note: Should figure out how to store these in an internal gdb dir. |
523 |
- if use nls ; then |
524 |
- find "${ED}" \ |
525 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
526 |
- -delete |
527 |
- fi |
528 |
- |
529 |
- # Don't install docs when building a cross-gdb |
530 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
531 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
532 |
- local f |
533 |
- for f in "${ED}"/usr/share/man/*/* ; do |
534 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
535 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
536 |
- fi |
537 |
- done |
538 |
- return 0 |
539 |
- fi |
540 |
- # Install it by hand for now: |
541 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
542 |
- # Only install if it exists due to the twisted behavior (see |
543 |
- # notes in src_configure above). |
544 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
545 |
- |
546 |
- if use client ; then |
547 |
- docinto gdb |
548 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
549 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
550 |
- fi |
551 |
- docinto sim |
552 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
553 |
- if use server ; then |
554 |
- docinto gdbserver |
555 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
556 |
- fi |
557 |
- |
558 |
- if [[ -n ${PATCH_VER} ]] ; then |
559 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
560 |
- fi |
561 |
- |
562 |
- # Remove shared info pages |
563 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
564 |
-} |
565 |
- |
566 |
-pkg_postinst() { |
567 |
- # portage sucks and doesnt unmerge files in /etc |
568 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
569 |
- |
570 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
571 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
572 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
573 |
- ewarn "have to perform the following steps:" |
574 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
575 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
576 |
- fi |
577 |
-} |
578 |
|
579 |
diff --git a/sys-devel/gdb/gdb-8.0.1-r1.ebuild b/sys-devel/gdb/gdb-8.0.1-r1.ebuild |
580 |
deleted file mode 100644 |
581 |
index aedaaa2..0000000 |
582 |
--- a/sys-devel/gdb/gdb-8.0.1-r1.ebuild |
583 |
+++ /dev/null |
584 |
@@ -1,255 +0,0 @@ |
585 |
-# Copyright 1999-2018 Gentoo Foundation |
586 |
-# Distributed under the terms of the GNU General Public License v2 |
587 |
- |
588 |
-EAPI=6 |
589 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
590 |
- |
591 |
-inherit flag-o-matic eutils python-single-r1 |
592 |
- |
593 |
-export CTARGET=${CTARGET:-${CHOST}} |
594 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
595 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
596 |
- export CTARGET=${CATEGORY#cross-} |
597 |
- fi |
598 |
-fi |
599 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
600 |
- |
601 |
-RPM= |
602 |
-MY_PV=${PV} |
603 |
-case ${PV} in |
604 |
-9999*) |
605 |
- # live git tree |
606 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
607 |
- inherit git-2 |
608 |
- SRC_URI="" |
609 |
- ;; |
610 |
-*.*.50.2???????) |
611 |
- # weekly snapshots |
612 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
613 |
- ;; |
614 |
-*.*.*.*.*.*) |
615 |
- # fedora versions; note we swap the rpm & fedora core versions. |
616 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
617 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
618 |
- inherit versionator rpm |
619 |
- gvcr() { get_version_component_range "$@"; } |
620 |
- parse_fedora_ver() { |
621 |
- set -- $(get_version_components) |
622 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
623 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
624 |
- } |
625 |
- parse_fedora_ver |
626 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
627 |
- ;; |
628 |
-*) |
629 |
- # Normal upstream release |
630 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
631 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
632 |
- ;; |
633 |
-esac |
634 |
- |
635 |
-PATCH_VER="1" |
636 |
-PATCH_DEV="slyfox" |
637 |
-DESCRIPTION="GNU debugger" |
638 |
-HOMEPAGE="https://sourceware.org/gdb/" |
639 |
-SRC_URI="${SRC_URI} |
640 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz} |
641 |
- ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz} |
642 |
-" |
643 |
- |
644 |
-LICENSE="GPL-2 LGPL-2" |
645 |
-SLOT="0" |
646 |
-if [[ ${PV} != 9999* ]] ; then |
647 |
- # alpha #562128 |
648 |
- KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
649 |
-fi |
650 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
651 |
-REQUIRED_USE=" |
652 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
653 |
- || ( client server ) |
654 |
-" |
655 |
- |
656 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
657 |
- client? ( |
658 |
- >=sys-libs/ncurses-5.2-r2:0= |
659 |
- sys-libs/readline:0= |
660 |
- lzma? ( app-arch/xz-utils ) |
661 |
- python? ( ${PYTHON_DEPS} ) |
662 |
- xml? ( dev-libs/expat ) |
663 |
- sys-libs/zlib |
664 |
- )" |
665 |
-DEPEND="${RDEPEND} |
666 |
- app-arch/xz-utils |
667 |
- sys-apps/texinfo |
668 |
- client? ( |
669 |
- virtual/yacc |
670 |
- test? ( dev-util/dejagnu ) |
671 |
- nls? ( sys-devel/gettext ) |
672 |
- )" |
673 |
- |
674 |
-PATCHES=( |
675 |
- "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
676 |
- "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
677 |
-) |
678 |
- |
679 |
-S=${WORKDIR}/${PN}-${MY_PV} |
680 |
- |
681 |
-pkg_setup() { |
682 |
- use python && python-single-r1_pkg_setup |
683 |
-} |
684 |
- |
685 |
-src_prepare() { |
686 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
687 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
688 |
- |
689 |
- default |
690 |
- |
691 |
- strip-linguas -u bfd/po opcodes/po |
692 |
-} |
693 |
- |
694 |
-gdb_branding() { |
695 |
- printf "Gentoo ${PV} " |
696 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
697 |
- printf "p${PATCH_VER}" |
698 |
- else |
699 |
- printf "vanilla" |
700 |
- fi |
701 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
702 |
-} |
703 |
- |
704 |
-src_configure() { |
705 |
- strip-unsupported-flags |
706 |
- |
707 |
- local myconf=( |
708 |
- --with-pkgversion="$(gdb_branding)" |
709 |
- --with-bugurl='https://bugs.gentoo.org/' |
710 |
- --disable-werror |
711 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
712 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
713 |
- ) |
714 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
715 |
- is_cross && myconf+=( |
716 |
- --with-sysroot="${sysroot}" |
717 |
- --includedir="${sysroot}/usr/include" |
718 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
719 |
- ) |
720 |
- |
721 |
- if use server && ! use client ; then |
722 |
- # just configure+build in the gdbserver subdir to speed things up |
723 |
- cd gdb/gdbserver |
724 |
- myconf+=( --program-transform-name='' ) |
725 |
- else |
726 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
727 |
- # it also doesn't support all targets, so rather than duplicate |
728 |
- # the target list (which changes between versions), use the |
729 |
- # "auto" value when things are turned on. |
730 |
- is_cross \ |
731 |
- && myconf+=( --disable-gdbserver ) \ |
732 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
733 |
- fi |
734 |
- |
735 |
- if ! ( use server && ! use client ) ; then |
736 |
- # if we are configuring in the top level, then use all |
737 |
- # the additional global options |
738 |
- myconf+=( |
739 |
- --enable-64-bit-bfd |
740 |
- --disable-install-libbfd |
741 |
- --disable-install-libiberty |
742 |
- # Disable guile for now as it requires guile-2.x #562902 |
743 |
- --without-guile |
744 |
- # This only disables building in the readline subdir. |
745 |
- # For gdb itself, it'll use the system version. |
746 |
- --disable-readline |
747 |
- --with-system-readline |
748 |
- # This only disables building in the zlib subdir. |
749 |
- # For gdb itself, it'll use the system version. |
750 |
- --without-zlib |
751 |
- --with-system-zlib |
752 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
753 |
- $(use_with xml expat) |
754 |
- $(use_with lzma) |
755 |
- $(use_enable nls) |
756 |
- $(use multitarget && echo --enable-targets=all) |
757 |
- $(use_with python python "${EPYTHON}") |
758 |
- ) |
759 |
- fi |
760 |
- if use sparc-solaris || use x86-solaris ; then |
761 |
- # disable largefile support |
762 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
763 |
- myconf+=( --disable-largefile ) |
764 |
- fi |
765 |
- |
766 |
- econf "${myconf[@]}" |
767 |
-} |
768 |
- |
769 |
-src_test() { |
770 |
- nonfatal emake check || ewarn "tests failed" |
771 |
-} |
772 |
- |
773 |
-src_install() { |
774 |
- if use server && ! use client; then |
775 |
- cd gdb/gdbserver || die |
776 |
- fi |
777 |
- default |
778 |
- if use client; then |
779 |
- find "${ED}"/usr -name libiberty.a -delete || die |
780 |
- fi |
781 |
- cd "${S}" || die |
782 |
- |
783 |
- # Delete translations that conflict with binutils-libs. #528088 |
784 |
- # Note: Should figure out how to store these in an internal gdb dir. |
785 |
- if use nls ; then |
786 |
- find "${ED}" \ |
787 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
788 |
- -delete || die |
789 |
- fi |
790 |
- |
791 |
- # Don't install docs when building a cross-gdb |
792 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
793 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
794 |
- local f |
795 |
- for f in "${ED}"/usr/share/man/*/* ; do |
796 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
797 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
798 |
- fi |
799 |
- done |
800 |
- return 0 |
801 |
- fi |
802 |
- # Install it by hand for now: |
803 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
804 |
- # Only install if it exists due to the twisted behavior (see |
805 |
- # notes in src_configure above). |
806 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
807 |
- |
808 |
- if use client ; then |
809 |
- docinto gdb |
810 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
811 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
812 |
- fi |
813 |
- docinto sim |
814 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
815 |
- if use server ; then |
816 |
- docinto gdbserver |
817 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
818 |
- fi |
819 |
- |
820 |
- if [[ -n ${PATCH_VER} ]] ; then |
821 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
822 |
- fi |
823 |
- |
824 |
- # Remove shared info pages |
825 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
826 |
-} |
827 |
- |
828 |
-pkg_postinst() { |
829 |
- # portage sucks and doesnt unmerge files in /etc |
830 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
831 |
- |
832 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
833 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
834 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
835 |
- ewarn "have to perform the following steps:" |
836 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
837 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
838 |
- fi |
839 |
-} |
840 |
|
841 |
diff --git a/sys-devel/gdb/gdb-8.0.1.ebuild b/sys-devel/gdb/gdb-8.0.1.ebuild |
842 |
deleted file mode 100644 |
843 |
index 69e5af0..0000000 |
844 |
--- a/sys-devel/gdb/gdb-8.0.1.ebuild |
845 |
+++ /dev/null |
846 |
@@ -1,251 +0,0 @@ |
847 |
-# Copyright 1999-2017 Gentoo Foundation |
848 |
-# Distributed under the terms of the GNU General Public License v2 |
849 |
- |
850 |
-EAPI=6 |
851 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
852 |
- |
853 |
-inherit flag-o-matic eutils python-single-r1 |
854 |
- |
855 |
-export CTARGET=${CTARGET:-${CHOST}} |
856 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
857 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
858 |
- export CTARGET=${CATEGORY#cross-} |
859 |
- fi |
860 |
-fi |
861 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
862 |
- |
863 |
-RPM= |
864 |
-MY_PV=${PV} |
865 |
-case ${PV} in |
866 |
-9999*) |
867 |
- # live git tree |
868 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
869 |
- inherit git-2 |
870 |
- SRC_URI="" |
871 |
- ;; |
872 |
-*.*.50.2???????) |
873 |
- # weekly snapshots |
874 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
875 |
- ;; |
876 |
-*.*.*.*.*.*) |
877 |
- # fedora versions; note we swap the rpm & fedora core versions. |
878 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
879 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
880 |
- inherit versionator rpm |
881 |
- gvcr() { get_version_component_range "$@"; } |
882 |
- parse_fedora_ver() { |
883 |
- set -- $(get_version_components) |
884 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
885 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
886 |
- } |
887 |
- parse_fedora_ver |
888 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
889 |
- ;; |
890 |
-*) |
891 |
- # Normal upstream release |
892 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
893 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
894 |
- ;; |
895 |
-esac |
896 |
- |
897 |
-PATCH_VER="" |
898 |
-DESCRIPTION="GNU debugger" |
899 |
-HOMEPAGE="https://sourceware.org/gdb/" |
900 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
901 |
- |
902 |
-LICENSE="GPL-2 LGPL-2" |
903 |
-SLOT="0" |
904 |
-if [[ ${PV} != 9999* ]] ; then |
905 |
- # alpha #562128 |
906 |
- KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
907 |
-fi |
908 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
909 |
-REQUIRED_USE=" |
910 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
911 |
- || ( client server ) |
912 |
-" |
913 |
- |
914 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
915 |
- client? ( |
916 |
- >=sys-libs/ncurses-5.2-r2:0= |
917 |
- sys-libs/readline:0= |
918 |
- lzma? ( app-arch/xz-utils ) |
919 |
- python? ( ${PYTHON_DEPS} ) |
920 |
- xml? ( dev-libs/expat ) |
921 |
- sys-libs/zlib |
922 |
- )" |
923 |
-DEPEND="${RDEPEND} |
924 |
- app-arch/xz-utils |
925 |
- sys-apps/texinfo |
926 |
- client? ( |
927 |
- virtual/yacc |
928 |
- test? ( dev-util/dejagnu ) |
929 |
- nls? ( sys-devel/gettext ) |
930 |
- )" |
931 |
- |
932 |
-PATCHES=( |
933 |
- "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
934 |
- "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
935 |
-) |
936 |
- |
937 |
-S=${WORKDIR}/${PN}-${MY_PV} |
938 |
- |
939 |
-pkg_setup() { |
940 |
- use python && python-single-r1_pkg_setup |
941 |
-} |
942 |
- |
943 |
-src_prepare() { |
944 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
945 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
946 |
- |
947 |
- default |
948 |
- |
949 |
- strip-linguas -u bfd/po opcodes/po |
950 |
-} |
951 |
- |
952 |
-gdb_branding() { |
953 |
- printf "Gentoo ${PV} " |
954 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
955 |
- printf "p${PATCH_VER}" |
956 |
- else |
957 |
- printf "vanilla" |
958 |
- fi |
959 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
960 |
-} |
961 |
- |
962 |
-src_configure() { |
963 |
- strip-unsupported-flags |
964 |
- |
965 |
- local myconf=( |
966 |
- --with-pkgversion="$(gdb_branding)" |
967 |
- --with-bugurl='https://bugs.gentoo.org/' |
968 |
- --disable-werror |
969 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
970 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
971 |
- ) |
972 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
973 |
- is_cross && myconf+=( |
974 |
- --with-sysroot="${sysroot}" |
975 |
- --includedir="${sysroot}/usr/include" |
976 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
977 |
- ) |
978 |
- |
979 |
- if use server && ! use client ; then |
980 |
- # just configure+build in the gdbserver subdir to speed things up |
981 |
- cd gdb/gdbserver |
982 |
- myconf+=( --program-transform-name='' ) |
983 |
- else |
984 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
985 |
- # it also doesn't support all targets, so rather than duplicate |
986 |
- # the target list (which changes between versions), use the |
987 |
- # "auto" value when things are turned on. |
988 |
- is_cross \ |
989 |
- && myconf+=( --disable-gdbserver ) \ |
990 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
991 |
- fi |
992 |
- |
993 |
- if ! ( use server && ! use client ) ; then |
994 |
- # if we are configuring in the top level, then use all |
995 |
- # the additional global options |
996 |
- myconf+=( |
997 |
- --enable-64-bit-bfd |
998 |
- --disable-install-libbfd |
999 |
- --disable-install-libiberty |
1000 |
- # Disable guile for now as it requires guile-2.x #562902 |
1001 |
- --without-guile |
1002 |
- # This only disables building in the readline subdir. |
1003 |
- # For gdb itself, it'll use the system version. |
1004 |
- --disable-readline |
1005 |
- --with-system-readline |
1006 |
- # This only disables building in the zlib subdir. |
1007 |
- # For gdb itself, it'll use the system version. |
1008 |
- --without-zlib |
1009 |
- --with-system-zlib |
1010 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1011 |
- $(use_with xml expat) |
1012 |
- $(use_with lzma) |
1013 |
- $(use_enable nls) |
1014 |
- $(use multitarget && echo --enable-targets=all) |
1015 |
- $(use_with python python "${EPYTHON}") |
1016 |
- ) |
1017 |
- fi |
1018 |
- if use sparc-solaris || use x86-solaris ; then |
1019 |
- # disable largefile support |
1020 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1021 |
- myconf+=( --disable-largefile ) |
1022 |
- fi |
1023 |
- |
1024 |
- econf "${myconf[@]}" |
1025 |
-} |
1026 |
- |
1027 |
-src_test() { |
1028 |
- nonfatal emake check || ewarn "tests failed" |
1029 |
-} |
1030 |
- |
1031 |
-src_install() { |
1032 |
- if use server && ! use client; then |
1033 |
- cd gdb/gdbserver || die |
1034 |
- fi |
1035 |
- default |
1036 |
- if use client; then |
1037 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1038 |
- fi |
1039 |
- cd "${S}" || die |
1040 |
- |
1041 |
- # Delete translations that conflict with binutils-libs. #528088 |
1042 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1043 |
- if use nls ; then |
1044 |
- find "${ED}" \ |
1045 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1046 |
- -delete || die |
1047 |
- fi |
1048 |
- |
1049 |
- # Don't install docs when building a cross-gdb |
1050 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1051 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1052 |
- local f |
1053 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1054 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1055 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1056 |
- fi |
1057 |
- done |
1058 |
- return 0 |
1059 |
- fi |
1060 |
- # Install it by hand for now: |
1061 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1062 |
- # Only install if it exists due to the twisted behavior (see |
1063 |
- # notes in src_configure above). |
1064 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1065 |
- |
1066 |
- if use client ; then |
1067 |
- docinto gdb |
1068 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1069 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1070 |
- fi |
1071 |
- docinto sim |
1072 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1073 |
- if use server ; then |
1074 |
- docinto gdbserver |
1075 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1076 |
- fi |
1077 |
- |
1078 |
- if [[ -n ${PATCH_VER} ]] ; then |
1079 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1080 |
- fi |
1081 |
- |
1082 |
- # Remove shared info pages |
1083 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1084 |
-} |
1085 |
- |
1086 |
-pkg_postinst() { |
1087 |
- # portage sucks and doesnt unmerge files in /etc |
1088 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1089 |
- |
1090 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1091 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1092 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1093 |
- ewarn "have to perform the following steps:" |
1094 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1095 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1096 |
- fi |
1097 |
-} |
1098 |
|
1099 |
diff --git a/sys-devel/gdb/gdb-8.0.ebuild b/sys-devel/gdb/gdb-8.0.ebuild |
1100 |
deleted file mode 100644 |
1101 |
index bbc411b..0000000 |
1102 |
--- a/sys-devel/gdb/gdb-8.0.ebuild |
1103 |
+++ /dev/null |
1104 |
@@ -1,247 +0,0 @@ |
1105 |
-# Copyright 1999-2017 Gentoo Foundation |
1106 |
-# Distributed under the terms of the GNU General Public License v2 |
1107 |
- |
1108 |
-EAPI="6" |
1109 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
1110 |
- |
1111 |
-inherit flag-o-matic eutils python-single-r1 |
1112 |
- |
1113 |
-export CTARGET=${CTARGET:-${CHOST}} |
1114 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1115 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1116 |
- export CTARGET=${CATEGORY#cross-} |
1117 |
- fi |
1118 |
-fi |
1119 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1120 |
- |
1121 |
-RPM= |
1122 |
-MY_PV=${PV} |
1123 |
-case ${PV} in |
1124 |
-9999*) |
1125 |
- # live git tree |
1126 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
1127 |
- inherit git-2 |
1128 |
- SRC_URI="" |
1129 |
- ;; |
1130 |
-*.*.50.2???????) |
1131 |
- # weekly snapshots |
1132 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
1133 |
- ;; |
1134 |
-*.*.*.*.*.*) |
1135 |
- # fedora versions; note we swap the rpm & fedora core versions. |
1136 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
1137 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
1138 |
- inherit versionator rpm |
1139 |
- gvcr() { get_version_component_range "$@"; } |
1140 |
- parse_fedora_ver() { |
1141 |
- set -- $(get_version_components) |
1142 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
1143 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
1144 |
- } |
1145 |
- parse_fedora_ver |
1146 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
1147 |
- ;; |
1148 |
-*) |
1149 |
- # Normal upstream release |
1150 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
1151 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
1152 |
- ;; |
1153 |
-esac |
1154 |
- |
1155 |
-PATCH_VER="" |
1156 |
-DESCRIPTION="GNU debugger" |
1157 |
-HOMEPAGE="https://sourceware.org/gdb/" |
1158 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
1159 |
- |
1160 |
-LICENSE="GPL-2 LGPL-2" |
1161 |
-SLOT="0" |
1162 |
-if [[ ${PV} != 9999* ]] ; then |
1163 |
- # alpha #562128 |
1164 |
- KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
1165 |
-fi |
1166 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
1167 |
-REQUIRED_USE=" |
1168 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1169 |
- || ( client server ) |
1170 |
-" |
1171 |
- |
1172 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
1173 |
- client? ( |
1174 |
- >=sys-libs/ncurses-5.2-r2:0= |
1175 |
- sys-libs/readline:0= |
1176 |
- lzma? ( app-arch/xz-utils ) |
1177 |
- python? ( ${PYTHON_DEPS} ) |
1178 |
- xml? ( dev-libs/expat ) |
1179 |
- sys-libs/zlib |
1180 |
- )" |
1181 |
-DEPEND="${RDEPEND} |
1182 |
- app-arch/xz-utils |
1183 |
- sys-apps/texinfo |
1184 |
- client? ( |
1185 |
- virtual/yacc |
1186 |
- test? ( dev-util/dejagnu ) |
1187 |
- nls? ( sys-devel/gettext ) |
1188 |
- )" |
1189 |
- |
1190 |
-PATCHES=( |
1191 |
- "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
1192 |
- "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
1193 |
-) |
1194 |
- |
1195 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1196 |
- |
1197 |
-pkg_setup() { |
1198 |
- use python && python-single-r1_pkg_setup |
1199 |
-} |
1200 |
- |
1201 |
-src_prepare() { |
1202 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1203 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1204 |
- |
1205 |
- default |
1206 |
- |
1207 |
- strip-linguas -u bfd/po opcodes/po |
1208 |
-} |
1209 |
- |
1210 |
-gdb_branding() { |
1211 |
- printf "Gentoo ${PV} " |
1212 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1213 |
- printf "p${PATCH_VER}" |
1214 |
- else |
1215 |
- printf "vanilla" |
1216 |
- fi |
1217 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1218 |
-} |
1219 |
- |
1220 |
-src_configure() { |
1221 |
- strip-unsupported-flags |
1222 |
- |
1223 |
- local myconf=( |
1224 |
- --with-pkgversion="$(gdb_branding)" |
1225 |
- --with-bugurl='https://bugs.gentoo.org/' |
1226 |
- --disable-werror |
1227 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1228 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1229 |
- ) |
1230 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1231 |
- is_cross && myconf+=( |
1232 |
- --with-sysroot="${sysroot}" |
1233 |
- --includedir="${sysroot}/usr/include" |
1234 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1235 |
- ) |
1236 |
- |
1237 |
- if use server && ! use client ; then |
1238 |
- # just configure+build in the gdbserver subdir to speed things up |
1239 |
- cd gdb/gdbserver |
1240 |
- myconf+=( --program-transform-name='' ) |
1241 |
- else |
1242 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1243 |
- # it also doesn't support all targets, so rather than duplicate |
1244 |
- # the target list (which changes between versions), use the |
1245 |
- # "auto" value when things are turned on. |
1246 |
- is_cross \ |
1247 |
- && myconf+=( --disable-gdbserver ) \ |
1248 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1249 |
- fi |
1250 |
- |
1251 |
- if ! ( use server && ! use client ) ; then |
1252 |
- # if we are configuring in the top level, then use all |
1253 |
- # the additional global options |
1254 |
- myconf+=( |
1255 |
- --enable-64-bit-bfd |
1256 |
- --disable-install-libbfd |
1257 |
- --disable-install-libiberty |
1258 |
- # Disable guile for now as it requires guile-2.x #562902 |
1259 |
- --without-guile |
1260 |
- # This only disables building in the readline subdir. |
1261 |
- # For gdb itself, it'll use the system version. |
1262 |
- --disable-readline |
1263 |
- --with-system-readline |
1264 |
- # This only disables building in the zlib subdir. |
1265 |
- # For gdb itself, it'll use the system version. |
1266 |
- --without-zlib |
1267 |
- --with-system-zlib |
1268 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1269 |
- $(use_with xml expat) |
1270 |
- $(use_with lzma) |
1271 |
- $(use_enable nls) |
1272 |
- $(use multitarget && echo --enable-targets=all) |
1273 |
- $(use_with python python "${EPYTHON}") |
1274 |
- ) |
1275 |
- fi |
1276 |
- if use sparc-solaris || use x86-solaris ; then |
1277 |
- # disable largefile support |
1278 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1279 |
- myconf+=( --disable-largefile ) |
1280 |
- fi |
1281 |
- |
1282 |
- econf "${myconf[@]}" |
1283 |
-} |
1284 |
- |
1285 |
-src_test() { |
1286 |
- nonfatal emake check || ewarn "tests failed" |
1287 |
-} |
1288 |
- |
1289 |
-src_install() { |
1290 |
- use server && ! use client && cd gdb/gdbserver |
1291 |
- default |
1292 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
1293 |
- cd "${S}" |
1294 |
- |
1295 |
- # Delete translations that conflict with binutils-libs. #528088 |
1296 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1297 |
- if use nls ; then |
1298 |
- find "${ED}" \ |
1299 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1300 |
- -delete |
1301 |
- fi |
1302 |
- |
1303 |
- # Don't install docs when building a cross-gdb |
1304 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1305 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
1306 |
- local f |
1307 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1308 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1309 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1310 |
- fi |
1311 |
- done |
1312 |
- return 0 |
1313 |
- fi |
1314 |
- # Install it by hand for now: |
1315 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1316 |
- # Only install if it exists due to the twisted behavior (see |
1317 |
- # notes in src_configure above). |
1318 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1319 |
- |
1320 |
- if use client ; then |
1321 |
- docinto gdb |
1322 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1323 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1324 |
- fi |
1325 |
- docinto sim |
1326 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1327 |
- if use server ; then |
1328 |
- docinto gdbserver |
1329 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1330 |
- fi |
1331 |
- |
1332 |
- if [[ -n ${PATCH_VER} ]] ; then |
1333 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1334 |
- fi |
1335 |
- |
1336 |
- # Remove shared info pages |
1337 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1338 |
-} |
1339 |
- |
1340 |
-pkg_postinst() { |
1341 |
- # portage sucks and doesnt unmerge files in /etc |
1342 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1343 |
- |
1344 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1345 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1346 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1347 |
- ewarn "have to perform the following steps:" |
1348 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1349 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1350 |
- fi |
1351 |
-} |
1352 |
|
1353 |
diff --git a/sys-devel/gdb/gdb-8.1.ebuild b/sys-devel/gdb/gdb-8.1.ebuild |
1354 |
deleted file mode 100644 |
1355 |
index a6a3d61..0000000 |
1356 |
--- a/sys-devel/gdb/gdb-8.1.ebuild |
1357 |
+++ /dev/null |
1358 |
@@ -1,255 +0,0 @@ |
1359 |
-# Copyright 1999-2018 Gentoo Foundation |
1360 |
-# Distributed under the terms of the GNU General Public License v2 |
1361 |
- |
1362 |
-EAPI=6 |
1363 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
1364 |
- |
1365 |
-inherit flag-o-matic eutils python-single-r1 |
1366 |
- |
1367 |
-export CTARGET=${CTARGET:-${CHOST}} |
1368 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1369 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1370 |
- export CTARGET=${CATEGORY#cross-} |
1371 |
- fi |
1372 |
-fi |
1373 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1374 |
- |
1375 |
-RPM= |
1376 |
-MY_PV=${PV} |
1377 |
-case ${PV} in |
1378 |
-9999*) |
1379 |
- # live git tree |
1380 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
1381 |
- inherit git-2 |
1382 |
- SRC_URI="" |
1383 |
- ;; |
1384 |
-*.*.50.2???????) |
1385 |
- # weekly snapshots |
1386 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
1387 |
- ;; |
1388 |
-*.*.*.*.*.*) |
1389 |
- # fedora versions; note we swap the rpm & fedora core versions. |
1390 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
1391 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
1392 |
- inherit versionator rpm |
1393 |
- gvcr() { get_version_component_range "$@"; } |
1394 |
- parse_fedora_ver() { |
1395 |
- set -- $(get_version_components) |
1396 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
1397 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
1398 |
- } |
1399 |
- parse_fedora_ver |
1400 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
1401 |
- ;; |
1402 |
-*) |
1403 |
- # Normal upstream release |
1404 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
1405 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
1406 |
- ;; |
1407 |
-esac |
1408 |
- |
1409 |
-PATCH_VER="1" |
1410 |
-PATCH_DEV="slyfox" |
1411 |
-DESCRIPTION="GNU debugger" |
1412 |
-HOMEPAGE="https://sourceware.org/gdb/" |
1413 |
-SRC_URI="${SRC_URI} |
1414 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.0.1-patches-${PATCH_VER}.tar.xz} |
1415 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.0.1-patches-${PATCH_VER}.tar.xz} |
1416 |
-" |
1417 |
- |
1418 |
-LICENSE="GPL-2 LGPL-2" |
1419 |
-SLOT="0" |
1420 |
-if [[ ${PV} != 9999* ]] ; then |
1421 |
- # alpha #562128 |
1422 |
- KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
1423 |
-fi |
1424 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
1425 |
-REQUIRED_USE=" |
1426 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1427 |
- || ( client server ) |
1428 |
-" |
1429 |
- |
1430 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
1431 |
- client? ( |
1432 |
- >=sys-libs/ncurses-5.2-r2:0= |
1433 |
- sys-libs/readline:0= |
1434 |
- lzma? ( app-arch/xz-utils ) |
1435 |
- python? ( ${PYTHON_DEPS} ) |
1436 |
- xml? ( dev-libs/expat ) |
1437 |
- sys-libs/zlib |
1438 |
- )" |
1439 |
-DEPEND="${RDEPEND} |
1440 |
- app-arch/xz-utils |
1441 |
- sys-apps/texinfo |
1442 |
- client? ( |
1443 |
- virtual/yacc |
1444 |
- test? ( dev-util/dejagnu ) |
1445 |
- nls? ( sys-devel/gettext ) |
1446 |
- )" |
1447 |
- |
1448 |
-PATCHES=( |
1449 |
- "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
1450 |
- "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
1451 |
-) |
1452 |
- |
1453 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1454 |
- |
1455 |
-pkg_setup() { |
1456 |
- use python && python-single-r1_pkg_setup |
1457 |
-} |
1458 |
- |
1459 |
-src_prepare() { |
1460 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1461 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1462 |
- |
1463 |
- default |
1464 |
- |
1465 |
- strip-linguas -u bfd/po opcodes/po |
1466 |
-} |
1467 |
- |
1468 |
-gdb_branding() { |
1469 |
- printf "Gentoo ${PV} " |
1470 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1471 |
- printf "p${PATCH_VER}" |
1472 |
- else |
1473 |
- printf "vanilla" |
1474 |
- fi |
1475 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1476 |
-} |
1477 |
- |
1478 |
-src_configure() { |
1479 |
- strip-unsupported-flags |
1480 |
- |
1481 |
- local myconf=( |
1482 |
- --with-pkgversion="$(gdb_branding)" |
1483 |
- --with-bugurl='https://bugs.gentoo.org/' |
1484 |
- --disable-werror |
1485 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1486 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1487 |
- ) |
1488 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1489 |
- is_cross && myconf+=( |
1490 |
- --with-sysroot="${sysroot}" |
1491 |
- --includedir="${sysroot}/usr/include" |
1492 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1493 |
- ) |
1494 |
- |
1495 |
- if use server && ! use client ; then |
1496 |
- # just configure+build in the gdbserver subdir to speed things up |
1497 |
- cd gdb/gdbserver |
1498 |
- myconf+=( --program-transform-name='' ) |
1499 |
- else |
1500 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1501 |
- # it also doesn't support all targets, so rather than duplicate |
1502 |
- # the target list (which changes between versions), use the |
1503 |
- # "auto" value when things are turned on. |
1504 |
- is_cross \ |
1505 |
- && myconf+=( --disable-gdbserver ) \ |
1506 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1507 |
- fi |
1508 |
- |
1509 |
- if ! ( use server && ! use client ) ; then |
1510 |
- # if we are configuring in the top level, then use all |
1511 |
- # the additional global options |
1512 |
- myconf+=( |
1513 |
- --enable-64-bit-bfd |
1514 |
- --disable-install-libbfd |
1515 |
- --disable-install-libiberty |
1516 |
- # Disable guile for now as it requires guile-2.x #562902 |
1517 |
- --without-guile |
1518 |
- # This only disables building in the readline subdir. |
1519 |
- # For gdb itself, it'll use the system version. |
1520 |
- --disable-readline |
1521 |
- --with-system-readline |
1522 |
- # This only disables building in the zlib subdir. |
1523 |
- # For gdb itself, it'll use the system version. |
1524 |
- --without-zlib |
1525 |
- --with-system-zlib |
1526 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1527 |
- $(use_with xml expat) |
1528 |
- $(use_with lzma) |
1529 |
- $(use_enable nls) |
1530 |
- $(use multitarget && echo --enable-targets=all) |
1531 |
- $(use_with python python "${EPYTHON}") |
1532 |
- ) |
1533 |
- fi |
1534 |
- if use sparc-solaris || use x86-solaris ; then |
1535 |
- # disable largefile support |
1536 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1537 |
- myconf+=( --disable-largefile ) |
1538 |
- fi |
1539 |
- |
1540 |
- econf "${myconf[@]}" |
1541 |
-} |
1542 |
- |
1543 |
-src_test() { |
1544 |
- nonfatal emake check || ewarn "tests failed" |
1545 |
-} |
1546 |
- |
1547 |
-src_install() { |
1548 |
- if use server && ! use client; then |
1549 |
- cd gdb/gdbserver || die |
1550 |
- fi |
1551 |
- default |
1552 |
- if use client; then |
1553 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1554 |
- fi |
1555 |
- cd "${S}" || die |
1556 |
- |
1557 |
- # Delete translations that conflict with binutils-libs. #528088 |
1558 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1559 |
- if use nls ; then |
1560 |
- find "${ED}" \ |
1561 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1562 |
- -delete || die |
1563 |
- fi |
1564 |
- |
1565 |
- # Don't install docs when building a cross-gdb |
1566 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1567 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1568 |
- local f |
1569 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1570 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1571 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1572 |
- fi |
1573 |
- done |
1574 |
- return 0 |
1575 |
- fi |
1576 |
- # Install it by hand for now: |
1577 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1578 |
- # Only install if it exists due to the twisted behavior (see |
1579 |
- # notes in src_configure above). |
1580 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1581 |
- |
1582 |
- if use client ; then |
1583 |
- docinto gdb |
1584 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1585 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1586 |
- fi |
1587 |
- docinto sim |
1588 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1589 |
- if use server ; then |
1590 |
- docinto gdbserver |
1591 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1592 |
- fi |
1593 |
- |
1594 |
- if [[ -n ${PATCH_VER} ]] ; then |
1595 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1596 |
- fi |
1597 |
- |
1598 |
- # Remove shared info pages |
1599 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1600 |
-} |
1601 |
- |
1602 |
-pkg_postinst() { |
1603 |
- # portage sucks and doesnt unmerge files in /etc |
1604 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1605 |
- |
1606 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1607 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1608 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1609 |
- ewarn "have to perform the following steps:" |
1610 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1611 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1612 |
- fi |
1613 |
-} |