1 |
commit: 929a060890bd8cd0ffd4eda91cab3682fd137a5e |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 9 20:50:10 2019 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 9 20:50:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=929a0608 |
7 |
|
8 |
sys-devel/gdb: Remove old |
9 |
|
10 |
Versions prior to 8.3 cannot handle debug info built with |
11 |
binutils 2.32 and later. Old binutils will be masked because |
12 |
of CVEs. |
13 |
|
14 |
Package-Manager: Portage-2.3.70, Repoman-2.3.16 |
15 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
16 |
|
17 |
sys-devel/gdb/Manifest | 8 - |
18 |
sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch | 26 -- |
19 |
sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch | 10 - |
20 |
sys-devel/gdb/files/gdb-8.2-tinfow.patch | 44 ---- |
21 |
sys-devel/gdb/files/gdb-8.2.1-aarch64-musl.patch | 49 ---- |
22 |
sys-devel/gdb/gdb-7.10.1.ebuild | 235 ------------------ |
23 |
sys-devel/gdb/gdb-7.12.1.ebuild | 236 ------------------ |
24 |
sys-devel/gdb/gdb-7.9.1.ebuild | 221 ----------------- |
25 |
sys-devel/gdb/gdb-8.1-r1.ebuild | 257 -------------------- |
26 |
sys-devel/gdb/gdb-8.1-r2.ebuild | 256 -------------------- |
27 |
sys-devel/gdb/gdb-8.1.1.ebuild | 256 -------------------- |
28 |
sys-devel/gdb/gdb-8.2-r1.ebuild | 265 --------------------- |
29 |
sys-devel/gdb/gdb-8.2.1.ebuild | 262 -------------------- |
30 |
sys-devel/gdb/gdb-8.2.ebuild | 260 -------------------- |
31 |
14 files changed, 2385 deletions(-) |
32 |
|
33 |
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest |
34 |
index 9ca691037e8..6a9e27259f5 100644 |
35 |
--- a/sys-devel/gdb/Manifest |
36 |
+++ b/sys-devel/gdb/Manifest |
37 |
@@ -1,9 +1 @@ |
38 |
-DIST gdb-7.10.1.tar.xz 18531436 BLAKE2B b50a1b6b5b867e4a52943fdc4992c654ceec180099771381df78de5ba79086e822264356a762c61b89e986407d6f0cce336be216276545591e637131dc02f4a8 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 |
39 |
-DIST gdb-7.12.1.tar.xz 19225392 BLAKE2B 2e4b7fe69c3cb11c04b505d1e110bf0a9ca65b6178f3e6a6ccc11fde1e8750b595016baf64adb2c22903d346cec1dab15574681de812ac8d260aebf4152a3027 SHA512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7704251289cababbfaaf9e075550cdf741a54d6cd9ca3433d910efcd8 |
40 |
-DIST gdb-7.9.1.tar.xz 17867692 BLAKE2B f5de07a4ebf1a5112a1b40341b217d08f1eb6820eb2237a4be2cd289f832600b81b3c14f4632a762fdc13945a2fb65ffb58f13eb330f3d48892799e27bb62c87 SHA512 eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414 |
41 |
-DIST gdb-8.1-patches-1.tar.xz 8768 BLAKE2B 792ceddcb8eafd028db23d69ad5d9eb00223722520c6ff0a23a24fee1a33dceb02f05e61a1d6c3700835c480b38d66f43f71ef3c4af406d4ae1147eaaf8f311e SHA512 87a5c9d9207817245e1ffd07fdad2cb566de4fc11725aa0e49e58268c3ab1ae3b4b9f4b9faa55acc8cb4c3c7cb5a3875ea7da02abeb8f775953a8aed2e2c6403 |
42 |
-DIST gdb-8.1.1.tar.xz 20064728 BLAKE2B bd17a27a3974a34b94aa5898a97cf26dba9e91b815f25e6a0d67a7b4bc718ed2701a38cddbbfddce087c5d2d24c596daee4f06ea1acfe662f47a909409815311 SHA512 7dcd5e8c90de92f577834d887b5f54edb93a07083bfe661bc46c270a6cc4919f0b348e7e2fe8ae4511298a570ef150eeefdc667ef7cf527f0cf60943177ab6c9 |
43 |
-DIST gdb-8.1.tar.xz 20095080 BLAKE2B 9332058b8b723261ba215124f42a2d6ba916219efdfb3c23ae1f48fecf131c801bbd31b345f2c8339b23d74da690be0260ac31f8f2e79549b62f0880199bfdec SHA512 ffd82f415d7652d62dad1716c307836f594217a363429609beb7d70239e8bf06b73b393345b0e000796228e56681ed7656ac3c8be05e91d6d652ab0d5b1dc357 |
44 |
-DIST gdb-8.2.1.tar.xz 20170388 BLAKE2B 4008232de312ee71d379ac32a0ee6d63a828c0b58e84799ab9148760ce184400920f7b22c204b9878b09c452412b1b4db507a9185456dc973538de8b88483259 SHA512 2aa81cfd389bb48c35d7d9f95cc10e88b4f7ad4597bdde0f8f1fd312f60f10d9fb2cc6e5a9355227d89ff328f7feb0fc411a69394560cafeb9fa75d35d896d11 |
45 |
-DIST gdb-8.2.tar.xz 20173112 BLAKE2B 921fdc02f7192f0bd76eb176f857c9c041b7316dc10c5e800eb81deef82a3186d511ec431145f952e5fbd20a4b2c89c14652c42dc52e0d8152acd811f3ae44a7 SHA512 11cc481bebc51eb6db73249ecb62b8c07455cf3db169f4860b3a83114849fbd2b5860a2db64488ba6c5909cf07b255c04770f1e36059eae6bee16d2a3581be90 |
46 |
DIST gdb-8.3.tar.xz 20490300 BLAKE2B 24b2a2a9bda7ae8093f757e42d6d0ab5642ff1d7e5a832896c28c5b17961166072c0dae158c04d7f7660cb059194c259bcff71ad5763960027b0ac3d7045eb1a SHA512 47ac074d20a09a3fac8f4a41dce0a0cbe6ef702f7dc21ba8b7d650d306128dcae481e9a16bf65e596b3a541dc82ae57c02bcbb786d551b4ef3e2917b9b6f0ae1 |
47 |
|
48 |
diff --git a/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch b/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch |
49 |
deleted file mode 100644 |
50 |
index 3b910da4227..00000000000 |
51 |
--- a/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch |
52 |
+++ /dev/null |
53 |
@@ -1,26 +0,0 @@ |
54 |
-fixes build failure on ia64 |
55 |
- |
56 |
-It's a backport of upstream fix by Émeric Maschino |
57 |
-https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8 |
58 |
-https://bugs.gentoo.org/658014 |
59 |
---- a/gdb/nat/linux-ptrace.c 2017-01-21 14:48:42.000000000 +0100 |
60 |
-+++ b/gdb/nat/linux-ptrace.c 2018-06-20 00:03:40.520317323 +0200 |
61 |
-@@ -21,8 +21,6 @@ |
62 |
- #include "linux-procfs.h" |
63 |
- #include "linux-waitpid.h" |
64 |
- #include "buffer.h" |
65 |
--#include "gdb_wait.h" |
66 |
--#include "gdb_ptrace.h" |
67 |
- #include <sys/procfs.h> |
68 |
- |
69 |
- /* Stores the ptrace options supported by the running kernel. |
70 |
---- a/gdb/nat/linux-ptrace.h 2017-01-21 14:46:47.000000000 +0100 |
71 |
-+++ b/gdb/nat/linux-ptrace.h 2018-06-20 00:04:28.706220951 +0200 |
72 |
-@@ -21,6 +21,7 @@ |
73 |
- struct buffer; |
74 |
- |
75 |
- #include "nat/gdb_ptrace.h" |
76 |
-+#include "gdb_wait.h" |
77 |
- |
78 |
- #ifdef __UCLIBC__ |
79 |
- #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__)) |
80 |
|
81 |
diff --git a/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch b/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch |
82 |
deleted file mode 100644 |
83 |
index 5ed32c04fd7..00000000000 |
84 |
--- a/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch |
85 |
+++ /dev/null |
86 |
@@ -1,10 +0,0 @@ |
87 |
-Fix invalid c++: https://bugs.gentoo.org/671726 |
88 |
---- a/gdb/sparc-linux-nat.c |
89 |
-+++ b/gdb/sparc-linux-nat.c |
90 |
-@@ -36,5 +36,5 @@ public: |
91 |
- { sparc_fetch_inferior_registers (regcache, regnum); } |
92 |
- |
93 |
-- void store_registers (struct regcache *regcache, int regnum) override; |
94 |
-+ void store_registers (struct regcache *regcache, int regnum) override |
95 |
- { sparc_store_inferior_registers (regcache, regnum); } |
96 |
- }; |
97 |
|
98 |
diff --git a/sys-devel/gdb/files/gdb-8.2-tinfow.patch b/sys-devel/gdb/files/gdb-8.2-tinfow.patch |
99 |
deleted file mode 100644 |
100 |
index 48f6109664a..00000000000 |
101 |
--- a/sys-devel/gdb/files/gdb-8.2-tinfow.patch |
102 |
+++ /dev/null |
103 |
@@ -1,44 +0,0 @@ |
104 |
-Try to link gdb against tinfow first, then tinfo. |
105 |
- |
106 |
-In bug #669096 gdb was directly linked both |
107 |
-to libtinfo.so.6 and libncursesw.so.6: |
108 |
- $ lddtree /usr/bin/gdb |
109 |
- /usr/bin/gdb (interpreter => /lib64/ld-linux-x86-64.so.2) |
110 |
- libtinfo.so.6 => /lib64/libtinfo.so.6 |
111 |
- libncursesw.so.6 => /lib64/libncursesw.so.6 |
112 |
- libtinfow.so.6 => /lib64/libtinfow.so.6 |
113 |
- ... |
114 |
-and caused gdb to SIGSEGV at start. |
115 |
- |
116 |
-Let's consistently link against *w libraries. |
117 |
- |
118 |
-Note: the fix on it's own is not enough: |
119 |
-- we don't pass include paths to ncursesw libraries |
120 |
-- libreadline.so.7 is still linked against libtinfo.so.6 in Gentoo |
121 |
- and needs a separate fix. |
122 |
- |
123 |
-But it's enough to make immediate SIGSEGV to go away. |
124 |
- |
125 |
-Reported-by: Michał Górny |
126 |
-Bug: https://bugs.gentoo.org/669096 |
127 |
---- a/gdb/configure.ac |
128 |
-+++ b/gdb/configure.ac |
129 |
-@@ -616,4 +616,4 @@ esac |
130 |
- |
131 |
--# These are the libraries checked by Readline. |
132 |
--AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses]) |
133 |
-+# These are the libraries checked by Readline. Not really: readline does not know about *w libs. |
134 |
-+AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses]) |
135 |
- |
136 |
---- a/gdb/configure |
137 |
-+++ b/gdb/configure |
138 |
-@@ -8984,3 +8984,3 @@ esac |
139 |
- |
140 |
--# These are the libraries checked by Readline. |
141 |
-+# These are the libraries checked by Readline. Not really: readline does not know about *w libs. |
142 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
143 |
-@@ -9009,3 +9009,3 @@ return tgetent (); |
144 |
- _ACEOF |
145 |
--for ac_lib in '' termcap tinfo curses ncursesw ncurses; do |
146 |
-+for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do |
147 |
- if test -z "$ac_lib"; then |
148 |
|
149 |
diff --git a/sys-devel/gdb/files/gdb-8.2.1-aarch64-musl.patch b/sys-devel/gdb/files/gdb-8.2.1-aarch64-musl.patch |
150 |
deleted file mode 100644 |
151 |
index 70f42df90a9..00000000000 |
152 |
--- a/sys-devel/gdb/files/gdb-8.2.1-aarch64-musl.patch |
153 |
+++ /dev/null |
154 |
@@ -1,49 +0,0 @@ |
155 |
-https://bugs.gentoo.org/676620 |
156 |
- |
157 |
-From 51b4f73a37c2e7eec31e932fc3c8dae879735f63 Mon Sep 17 00:00:00 2001 |
158 |
-From: Szabolcs Nagy <szabolcs.nagy@×××.com> |
159 |
-Date: Thu, 13 Dec 2018 17:47:17 +0000 |
160 |
-Subject: [PATCH] AArch64: Fix the gdb build with musl libc |
161 |
- |
162 |
-Including asm/sigcontext.h together with libc headers is not valid. In |
163 |
-general linux headers may not work with libc headers, so mixing them |
164 |
-should be avoided, especially when the linux header defines types that |
165 |
-are also exposed in libc headers. |
166 |
- |
167 |
-In case of asm/sigcontext.h glibc happens to work because glibc signal.h |
168 |
-directly includes it, but e.g. in musl libc signal.h replicates the |
169 |
-sigcontext.h definitions in an abi compatible way which are in conflict |
170 |
-with the linux definitions when both headers are included. |
171 |
- |
172 |
-Since old linux headers or old libc headers may not have the necessary |
173 |
-definitions, gdb has to replicate the definitions it relies on anyway. |
174 |
-Which is fine since all definitions must be ABI stable. For linux apis |
175 |
-that are not available via libc headers, replicating the definitions in |
176 |
-gdb is the most reliable way to use them. |
177 |
- |
178 |
-Note: asm/ptrace.h includes asm/sigcontext.h in some versions of linux |
179 |
-headers, which is just as problematic and should be fixed in linux. |
180 |
- |
181 |
-gdb/ChangeLog: |
182 |
- |
183 |
- * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of |
184 |
- asm/sigcontext.h. |
185 |
---- |
186 |
- gdb/ChangeLog | 5 +++++ |
187 |
- gdb/nat/aarch64-sve-linux-ptrace.h | 2 +- |
188 |
- 2 files changed, 6 insertions(+), 1 deletion(-) |
189 |
- |
190 |
---- a/gdb/nat/aarch64-sve-linux-ptrace.h |
191 |
-+++ b/gdb/nat/aarch64-sve-linux-ptrace.h |
192 |
-@@ -20,7 +20,7 @@ |
193 |
- #ifndef AARCH64_SVE_LINUX_PTRACE_H |
194 |
- #define AARCH64_SVE_LINUX_PTRACE_H |
195 |
- |
196 |
--#include <asm/sigcontext.h> |
197 |
-+#include <signal.h> |
198 |
- #include <sys/utsname.h> |
199 |
- #include <sys/ptrace.h> |
200 |
- #include <asm/ptrace.h> |
201 |
--- |
202 |
-2.20.1 |
203 |
- |
204 |
|
205 |
diff --git a/sys-devel/gdb/gdb-7.10.1.ebuild b/sys-devel/gdb/gdb-7.10.1.ebuild |
206 |
deleted file mode 100644 |
207 |
index c257be6a84d..00000000000 |
208 |
--- a/sys-devel/gdb/gdb-7.10.1.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,235 +0,0 @@ |
211 |
-# Copyright 1999-2019 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI="5" |
215 |
-PYTHON_COMPAT=( python{2_7,3_5} ) |
216 |
- |
217 |
-inherit flag-o-matic eutils python-single-r1 |
218 |
- |
219 |
-export CTARGET=${CTARGET:-${CHOST}} |
220 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
221 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
222 |
- export CTARGET=${CATEGORY#cross-} |
223 |
- fi |
224 |
-fi |
225 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
226 |
- |
227 |
-RPM= |
228 |
-MY_PV=${PV} |
229 |
-case ${PV} in |
230 |
-9999*) |
231 |
- # live git tree |
232 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
233 |
- inherit git-r3 |
234 |
- SRC_URI="" |
235 |
- ;; |
236 |
-*.*.50.2???????) |
237 |
- # weekly snapshots |
238 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
239 |
- ;; |
240 |
-*.*.*.*.*.*) |
241 |
- # fedora versions; note we swap the rpm & fedora core versions. |
242 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
243 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
244 |
- inherit versionator rpm |
245 |
- gvcr() { get_version_component_range "$@"; } |
246 |
- parse_fedora_ver() { |
247 |
- set -- $(get_version_components) |
248 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
249 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
250 |
- } |
251 |
- parse_fedora_ver |
252 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
253 |
- ;; |
254 |
-*) |
255 |
- # Normal upstream release |
256 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
257 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
258 |
- ;; |
259 |
-esac |
260 |
- |
261 |
-PATCH_VER="" |
262 |
-DESCRIPTION="GNU debugger" |
263 |
-HOMEPAGE="https://sourceware.org/gdb/" |
264 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
265 |
- |
266 |
-LICENSE="GPL-2 LGPL-2" |
267 |
-SLOT="0" |
268 |
-if [[ ${PV} != 9999* ]] ; then |
269 |
- # alpha #562128 |
270 |
- KEYWORDS="-alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
271 |
-fi |
272 |
-IUSE="+client expat lzma multitarget nls +python +server test vanilla" |
273 |
-REQUIRED_USE=" |
274 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
275 |
- || ( client server ) |
276 |
-" |
277 |
- |
278 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
279 |
- client? ( |
280 |
- >=sys-libs/ncurses-5.2-r2:0= |
281 |
- sys-libs/readline:0= |
282 |
- expat? ( dev-libs/expat ) |
283 |
- lzma? ( app-arch/xz-utils ) |
284 |
- python? ( ${PYTHON_DEPS} ) |
285 |
- sys-libs/zlib |
286 |
- )" |
287 |
-DEPEND="${RDEPEND} |
288 |
- app-arch/xz-utils |
289 |
- sys-apps/texinfo |
290 |
- client? ( |
291 |
- virtual/yacc |
292 |
- test? ( dev-util/dejagnu ) |
293 |
- nls? ( sys-devel/gettext ) |
294 |
- )" |
295 |
- |
296 |
-S=${WORKDIR}/${PN}-${MY_PV} |
297 |
- |
298 |
-pkg_setup() { |
299 |
- use python && python-single-r1_pkg_setup |
300 |
-} |
301 |
- |
302 |
-src_prepare() { |
303 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
304 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
305 |
- epatch_user |
306 |
- strip-linguas -u bfd/po opcodes/po |
307 |
-} |
308 |
- |
309 |
-gdb_branding() { |
310 |
- printf "Gentoo ${PV} " |
311 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
312 |
- printf "p${PATCH_VER}" |
313 |
- else |
314 |
- printf "vanilla" |
315 |
- fi |
316 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
317 |
-} |
318 |
- |
319 |
-src_configure() { |
320 |
- strip-unsupported-flags |
321 |
- |
322 |
- local myconf=( |
323 |
- --with-pkgversion="$(gdb_branding)" |
324 |
- --with-bugurl='https://bugs.gentoo.org/' |
325 |
- --disable-werror |
326 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
327 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
328 |
- ) |
329 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
330 |
- is_cross && myconf+=( |
331 |
- --with-sysroot="${sysroot}" |
332 |
- --includedir="${sysroot}/usr/include" |
333 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
334 |
- ) |
335 |
- |
336 |
- if use server && ! use client ; then |
337 |
- # just configure+build in the gdbserver subdir to speed things up |
338 |
- cd gdb/gdbserver |
339 |
- myconf+=( --program-transform-name='' ) |
340 |
- else |
341 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
342 |
- # it also doesn't support all targets, so rather than duplicate |
343 |
- # the target list (which changes between versions), use the |
344 |
- # "auto" value when things are turned on. |
345 |
- is_cross \ |
346 |
- && myconf+=( --disable-gdbserver ) \ |
347 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
348 |
- fi |
349 |
- |
350 |
- if ! ( use server && ! use client ) ; then |
351 |
- # if we are configuring in the top level, then use all |
352 |
- # the additional global options |
353 |
- myconf+=( |
354 |
- --enable-64-bit-bfd |
355 |
- --disable-install-libbfd |
356 |
- --disable-install-libiberty |
357 |
- # Disable guile for now as it requires guile-2.x #562902 |
358 |
- --without-guile |
359 |
- # This only disables building in the readline subdir. |
360 |
- # For gdb itself, it'll use the system version. |
361 |
- --disable-readline |
362 |
- --with-system-readline |
363 |
- # This only disables building in the zlib subdir. |
364 |
- # For gdb itself, it'll use the system version. |
365 |
- --without-zlib |
366 |
- --with-system-zlib |
367 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
368 |
- $(use_with expat) |
369 |
- $(use_with lzma) |
370 |
- $(use_enable nls) |
371 |
- $(use multitarget && echo --enable-targets=all) |
372 |
- $(use_with python python "${EPYTHON}") |
373 |
- ) |
374 |
- fi |
375 |
- |
376 |
- econf "${myconf[@]}" |
377 |
-} |
378 |
- |
379 |
-src_test() { |
380 |
- nonfatal emake check || ewarn "tests failed" |
381 |
-} |
382 |
- |
383 |
-src_install() { |
384 |
- use server && ! use client && cd gdb/gdbserver |
385 |
- default |
386 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
387 |
- cd "${S}" |
388 |
- |
389 |
- # Delete translations that conflict with binutils-libs. #528088 |
390 |
- # Note: Should figure out how to store these in an internal gdb dir. |
391 |
- if use nls ; then |
392 |
- find "${ED}" \ |
393 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
394 |
- -delete |
395 |
- fi |
396 |
- |
397 |
- # Don't install docs when building a cross-gdb |
398 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
399 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
400 |
- local f |
401 |
- for f in "${ED}"/usr/share/man/*/* ; do |
402 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
403 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
404 |
- fi |
405 |
- done |
406 |
- return 0 |
407 |
- fi |
408 |
- # Install it by hand for now: |
409 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
410 |
- # Only install if it exists due to the twisted behavior (see |
411 |
- # notes in src_configure above). |
412 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
413 |
- |
414 |
- if use client ; then |
415 |
- docinto gdb |
416 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
417 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
418 |
- fi |
419 |
- docinto sim |
420 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
421 |
- if use server ; then |
422 |
- docinto gdbserver |
423 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
424 |
- fi |
425 |
- |
426 |
- if [[ -n ${PATCH_VER} ]] ; then |
427 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
428 |
- fi |
429 |
- |
430 |
- # Remove shared info pages |
431 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
432 |
-} |
433 |
- |
434 |
-pkg_postinst() { |
435 |
- # portage sucks and doesnt unmerge files in /etc |
436 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
437 |
- |
438 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
439 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
440 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
441 |
- ewarn "have to perform the following steps:" |
442 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
443 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
444 |
- fi |
445 |
-} |
446 |
|
447 |
diff --git a/sys-devel/gdb/gdb-7.12.1.ebuild b/sys-devel/gdb/gdb-7.12.1.ebuild |
448 |
deleted file mode 100644 |
449 |
index 5ca8e9079ae..00000000000 |
450 |
--- a/sys-devel/gdb/gdb-7.12.1.ebuild |
451 |
+++ /dev/null |
452 |
@@ -1,236 +0,0 @@ |
453 |
-# Copyright 1999-2019 Gentoo Authors |
454 |
-# Distributed under the terms of the GNU General Public License v2 |
455 |
- |
456 |
-EAPI="5" |
457 |
-PYTHON_COMPAT=( python{2_7,3_5} ) |
458 |
- |
459 |
-inherit flag-o-matic eutils python-single-r1 |
460 |
- |
461 |
-export CTARGET=${CTARGET:-${CHOST}} |
462 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
463 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
464 |
- export CTARGET=${CATEGORY#cross-} |
465 |
- fi |
466 |
-fi |
467 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
468 |
- |
469 |
-RPM= |
470 |
-MY_PV=${PV} |
471 |
-case ${PV} in |
472 |
-9999*) |
473 |
- # live git tree |
474 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
475 |
- inherit git-r3 |
476 |
- SRC_URI="" |
477 |
- ;; |
478 |
-*.*.50.2???????) |
479 |
- # weekly snapshots |
480 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
481 |
- ;; |
482 |
-*.*.*.*.*.*) |
483 |
- # fedora versions; note we swap the rpm & fedora core versions. |
484 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
485 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
486 |
- inherit versionator rpm |
487 |
- gvcr() { get_version_component_range "$@"; } |
488 |
- parse_fedora_ver() { |
489 |
- set -- $(get_version_components) |
490 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
491 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
492 |
- } |
493 |
- parse_fedora_ver |
494 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
495 |
- ;; |
496 |
-*) |
497 |
- # Normal upstream release |
498 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
499 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
500 |
- ;; |
501 |
-esac |
502 |
- |
503 |
-PATCH_VER="" |
504 |
-DESCRIPTION="GNU debugger" |
505 |
-HOMEPAGE="https://sourceware.org/gdb/" |
506 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
507 |
- |
508 |
-LICENSE="GPL-2 LGPL-2" |
509 |
-SLOT="0" |
510 |
-if [[ ${PV} != 9999* ]] ; then |
511 |
- # alpha #562128 |
512 |
- KEYWORDS="-alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
513 |
-fi |
514 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
515 |
-REQUIRED_USE=" |
516 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
517 |
- || ( client server ) |
518 |
-" |
519 |
- |
520 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
521 |
- client? ( |
522 |
- >=sys-libs/ncurses-5.2-r2:0= |
523 |
- sys-libs/readline:0= |
524 |
- lzma? ( app-arch/xz-utils ) |
525 |
- python? ( ${PYTHON_DEPS} ) |
526 |
- xml? ( dev-libs/expat ) |
527 |
- sys-libs/zlib |
528 |
- )" |
529 |
-DEPEND="${RDEPEND} |
530 |
- app-arch/xz-utils |
531 |
- sys-apps/texinfo |
532 |
- client? ( |
533 |
- virtual/yacc |
534 |
- test? ( dev-util/dejagnu ) |
535 |
- nls? ( sys-devel/gettext ) |
536 |
- )" |
537 |
- |
538 |
-S=${WORKDIR}/${PN}-${MY_PV} |
539 |
- |
540 |
-pkg_setup() { |
541 |
- use python && python-single-r1_pkg_setup |
542 |
-} |
543 |
- |
544 |
-src_prepare() { |
545 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
546 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
547 |
- epatch "${FILESDIR}"/${P}-ia64-include.patch #655270 |
548 |
- epatch_user |
549 |
- strip-linguas -u bfd/po opcodes/po |
550 |
-} |
551 |
- |
552 |
-gdb_branding() { |
553 |
- printf "Gentoo ${PV} " |
554 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
555 |
- printf "p${PATCH_VER}" |
556 |
- else |
557 |
- printf "vanilla" |
558 |
- fi |
559 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
560 |
-} |
561 |
- |
562 |
-src_configure() { |
563 |
- strip-unsupported-flags |
564 |
- |
565 |
- local myconf=( |
566 |
- --with-pkgversion="$(gdb_branding)" |
567 |
- --with-bugurl='https://bugs.gentoo.org/' |
568 |
- --disable-werror |
569 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
570 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
571 |
- ) |
572 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
573 |
- is_cross && myconf+=( |
574 |
- --with-sysroot="${sysroot}" |
575 |
- --includedir="${sysroot}/usr/include" |
576 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
577 |
- ) |
578 |
- |
579 |
- if use server && ! use client ; then |
580 |
- # just configure+build in the gdbserver subdir to speed things up |
581 |
- cd gdb/gdbserver |
582 |
- myconf+=( --program-transform-name='' ) |
583 |
- else |
584 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
585 |
- # it also doesn't support all targets, so rather than duplicate |
586 |
- # the target list (which changes between versions), use the |
587 |
- # "auto" value when things are turned on. |
588 |
- is_cross \ |
589 |
- && myconf+=( --disable-gdbserver ) \ |
590 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
591 |
- fi |
592 |
- |
593 |
- if ! ( use server && ! use client ) ; then |
594 |
- # if we are configuring in the top level, then use all |
595 |
- # the additional global options |
596 |
- myconf+=( |
597 |
- --enable-64-bit-bfd |
598 |
- --disable-install-libbfd |
599 |
- --disable-install-libiberty |
600 |
- # Disable guile for now as it requires guile-2.x #562902 |
601 |
- --without-guile |
602 |
- # This only disables building in the readline subdir. |
603 |
- # For gdb itself, it'll use the system version. |
604 |
- --disable-readline |
605 |
- --with-system-readline |
606 |
- # This only disables building in the zlib subdir. |
607 |
- # For gdb itself, it'll use the system version. |
608 |
- --without-zlib |
609 |
- --with-system-zlib |
610 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
611 |
- $(use_with xml expat) |
612 |
- $(use_with lzma) |
613 |
- $(use_enable nls) |
614 |
- $(use multitarget && echo --enable-targets=all) |
615 |
- $(use_with python python "${EPYTHON}") |
616 |
- ) |
617 |
- fi |
618 |
- |
619 |
- econf "${myconf[@]}" |
620 |
-} |
621 |
- |
622 |
-src_test() { |
623 |
- nonfatal emake check || ewarn "tests failed" |
624 |
-} |
625 |
- |
626 |
-src_install() { |
627 |
- use server && ! use client && cd gdb/gdbserver |
628 |
- default |
629 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
630 |
- cd "${S}" |
631 |
- |
632 |
- # Delete translations that conflict with binutils-libs. #528088 |
633 |
- # Note: Should figure out how to store these in an internal gdb dir. |
634 |
- if use nls ; then |
635 |
- find "${ED}" \ |
636 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
637 |
- -delete |
638 |
- fi |
639 |
- |
640 |
- # Don't install docs when building a cross-gdb |
641 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
642 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
643 |
- local f |
644 |
- for f in "${ED}"/usr/share/man/*/* ; do |
645 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
646 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
647 |
- fi |
648 |
- done |
649 |
- return 0 |
650 |
- fi |
651 |
- # Install it by hand for now: |
652 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
653 |
- # Only install if it exists due to the twisted behavior (see |
654 |
- # notes in src_configure above). |
655 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
656 |
- |
657 |
- if use client ; then |
658 |
- docinto gdb |
659 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
660 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
661 |
- fi |
662 |
- docinto sim |
663 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
664 |
- if use server ; then |
665 |
- docinto gdbserver |
666 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
667 |
- fi |
668 |
- |
669 |
- if [[ -n ${PATCH_VER} ]] ; then |
670 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
671 |
- fi |
672 |
- |
673 |
- # Remove shared info pages |
674 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
675 |
-} |
676 |
- |
677 |
-pkg_postinst() { |
678 |
- # portage sucks and doesnt unmerge files in /etc |
679 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
680 |
- |
681 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
682 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
683 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
684 |
- ewarn "have to perform the following steps:" |
685 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
686 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
687 |
- fi |
688 |
-} |
689 |
|
690 |
diff --git a/sys-devel/gdb/gdb-7.9.1.ebuild b/sys-devel/gdb/gdb-7.9.1.ebuild |
691 |
deleted file mode 100644 |
692 |
index 12d5daf6084..00000000000 |
693 |
--- a/sys-devel/gdb/gdb-7.9.1.ebuild |
694 |
+++ /dev/null |
695 |
@@ -1,221 +0,0 @@ |
696 |
-# Copyright 1999-2019 Gentoo Authors |
697 |
-# Distributed under the terms of the GNU General Public License v2 |
698 |
- |
699 |
-EAPI="5" |
700 |
-PYTHON_COMPAT=( python2_7 ) |
701 |
- |
702 |
-inherit flag-o-matic eutils python-single-r1 |
703 |
- |
704 |
-export CTARGET=${CTARGET:-${CHOST}} |
705 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
706 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
707 |
- export CTARGET=${CATEGORY#cross-} |
708 |
- fi |
709 |
-fi |
710 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
711 |
- |
712 |
-RPM= |
713 |
-MY_PV=${PV} |
714 |
-case ${PV} in |
715 |
-9999*) |
716 |
- # live git tree |
717 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
718 |
- inherit git-r3 |
719 |
- SRC_URI="" |
720 |
- ;; |
721 |
-*.*.50.2???????) |
722 |
- # weekly snapshots |
723 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
724 |
- ;; |
725 |
-*.*.*.*.*.*) |
726 |
- # fedora versions; note we swap the rpm & fedora core versions. |
727 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
728 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
729 |
- inherit versionator rpm |
730 |
- gvcr() { get_version_component_range "$@"; } |
731 |
- parse_fedora_ver() { |
732 |
- set -- $(get_version_components) |
733 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
734 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
735 |
- } |
736 |
- parse_fedora_ver |
737 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
738 |
- ;; |
739 |
-*) |
740 |
- # Normal upstream release |
741 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
742 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
743 |
- ;; |
744 |
-esac |
745 |
- |
746 |
-PATCH_VER="" |
747 |
-DESCRIPTION="GNU debugger" |
748 |
-HOMEPAGE="https://sourceware.org/gdb/" |
749 |
-SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
750 |
- |
751 |
-LICENSE="GPL-2 LGPL-2" |
752 |
-SLOT="0" |
753 |
-if [[ ${PV} != 9999* ]] ; then |
754 |
- KEYWORDS="alpha" |
755 |
-fi |
756 |
-IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib" |
757 |
-REQUIRED_USE=" |
758 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
759 |
- || ( client server ) |
760 |
-" |
761 |
- |
762 |
-RDEPEND="server? ( !dev-util/gdbserver ) |
763 |
- client? ( |
764 |
- >=sys-libs/ncurses-5.2-r2:0= |
765 |
- sys-libs/readline:0= |
766 |
- expat? ( dev-libs/expat ) |
767 |
- lzma? ( app-arch/xz-utils ) |
768 |
- python? ( ${PYTHON_DEPS} ) |
769 |
- zlib? ( sys-libs/zlib ) |
770 |
- )" |
771 |
-DEPEND="${RDEPEND} |
772 |
- app-arch/xz-utils |
773 |
- client? ( |
774 |
- virtual/yacc |
775 |
- test? ( dev-util/dejagnu ) |
776 |
- nls? ( sys-devel/gettext ) |
777 |
- )" |
778 |
- |
779 |
-S=${WORKDIR}/${PN}-${MY_PV} |
780 |
- |
781 |
-pkg_setup() { |
782 |
- use python && python-single-r1_pkg_setup |
783 |
-} |
784 |
- |
785 |
-src_prepare() { |
786 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
787 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
788 |
- epatch_user |
789 |
- strip-linguas -u bfd/po opcodes/po |
790 |
-} |
791 |
- |
792 |
-gdb_branding() { |
793 |
- printf "Gentoo ${PV} " |
794 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
795 |
- printf "p${PATCH_VER}" |
796 |
- else |
797 |
- printf "vanilla" |
798 |
- fi |
799 |
-} |
800 |
- |
801 |
-src_configure() { |
802 |
- strip-unsupported-flags |
803 |
- |
804 |
- local myconf=( |
805 |
- --with-pkgversion="$(gdb_branding)" |
806 |
- --with-bugurl='https://bugs.gentoo.org/' |
807 |
- --disable-werror |
808 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
809 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
810 |
- ) |
811 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
812 |
- is_cross && myconf+=( |
813 |
- --with-sysroot="${sysroot}" |
814 |
- --includedir="${sysroot}/usr/include" |
815 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
816 |
- ) |
817 |
- |
818 |
- if use server && ! use client ; then |
819 |
- # just configure+build in the gdbserver subdir to speed things up |
820 |
- cd gdb/gdbserver |
821 |
- myconf+=( --program-transform-name='' ) |
822 |
- else |
823 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
824 |
- # it also doesn't support all targets, so rather than duplicate |
825 |
- # the target list (which changes between versions), use the |
826 |
- # "auto" value when things are turned on. |
827 |
- is_cross \ |
828 |
- && myconf+=( --disable-gdbserver ) \ |
829 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
830 |
- fi |
831 |
- |
832 |
- if ! ( use server && ! use client ) ; then |
833 |
- # if we are configuring in the top level, then use all |
834 |
- # the additional global options |
835 |
- myconf+=( |
836 |
- --enable-64-bit-bfd |
837 |
- --disable-install-libbfd |
838 |
- --disable-install-libiberty |
839 |
- # Disable guile for now as it requires guile-2.x #562902 |
840 |
- --without-guile |
841 |
- # This only disables building in the readline subdir. |
842 |
- # For gdb itself, it'll use the system version. |
843 |
- --disable-readline |
844 |
- --with-system-readline |
845 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
846 |
- $(use_with expat) |
847 |
- $(use_with lzma) |
848 |
- $(use_enable nls) |
849 |
- $(use multitarget && echo --enable-targets=all) |
850 |
- $(use_with python python "${EPYTHON}") |
851 |
- $(use_with zlib) |
852 |
- ) |
853 |
- fi |
854 |
- |
855 |
- econf "${myconf[@]}" |
856 |
-} |
857 |
- |
858 |
-src_test() { |
859 |
- nonfatal emake check || ewarn "tests failed" |
860 |
-} |
861 |
- |
862 |
-src_install() { |
863 |
- use server && ! use client && cd gdb/gdbserver |
864 |
- default |
865 |
- use client && find "${ED}"/usr -name libiberty.a -delete |
866 |
- cd "${S}" |
867 |
- |
868 |
- # Don't install docs when building a cross-gdb |
869 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
870 |
- rm -r "${ED}"/usr/share/{doc,info,locale} |
871 |
- local f |
872 |
- for f in "${ED}"/usr/share/man/*/* ; do |
873 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
874 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
875 |
- fi |
876 |
- done |
877 |
- return 0 |
878 |
- fi |
879 |
- # Install it by hand for now: |
880 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
881 |
- # Only install if it exists due to the twisted behavior (see |
882 |
- # notes in src_configure above). |
883 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
884 |
- |
885 |
- if use client ; then |
886 |
- docinto gdb |
887 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
888 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
889 |
- fi |
890 |
- docinto sim |
891 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
892 |
- if use server ; then |
893 |
- docinto gdbserver |
894 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
895 |
- fi |
896 |
- |
897 |
- if [[ -n ${PATCH_VER} ]] ; then |
898 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
899 |
- fi |
900 |
- |
901 |
- # Remove shared info pages |
902 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
903 |
-} |
904 |
- |
905 |
-pkg_postinst() { |
906 |
- # portage sucks and doesnt unmerge files in /etc |
907 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
908 |
- |
909 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
910 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
911 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
912 |
- ewarn "have to perform the following steps:" |
913 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
914 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
915 |
- fi |
916 |
-} |
917 |
|
918 |
diff --git a/sys-devel/gdb/gdb-8.1-r1.ebuild b/sys-devel/gdb/gdb-8.1-r1.ebuild |
919 |
deleted file mode 100644 |
920 |
index eb10f901b4a..00000000000 |
921 |
--- a/sys-devel/gdb/gdb-8.1-r1.ebuild |
922 |
+++ /dev/null |
923 |
@@ -1,257 +0,0 @@ |
924 |
-# Copyright 1999-2019 Gentoo Authors |
925 |
-# Distributed under the terms of the GNU General Public License v2 |
926 |
- |
927 |
-EAPI=6 |
928 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
929 |
- |
930 |
-inherit epatch eutils flag-o-matic python-single-r1 |
931 |
- |
932 |
-export CTARGET=${CTARGET:-${CHOST}} |
933 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
934 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
935 |
- export CTARGET=${CATEGORY#cross-} |
936 |
- fi |
937 |
-fi |
938 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
939 |
- |
940 |
-RPM= |
941 |
-MY_PV=${PV} |
942 |
-case ${PV} in |
943 |
-9999*) |
944 |
- # live git tree |
945 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
946 |
- inherit git-r3 |
947 |
- SRC_URI="" |
948 |
- ;; |
949 |
-*.*.50.2???????) |
950 |
- # weekly snapshots |
951 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
952 |
- ;; |
953 |
-*.*.*.*.*.*) |
954 |
- # fedora versions; note we swap the rpm & fedora core versions. |
955 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
956 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
957 |
- inherit versionator rpm |
958 |
- gvcr() { get_version_component_range "$@"; } |
959 |
- parse_fedora_ver() { |
960 |
- set -- $(get_version_components) |
961 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
962 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
963 |
- } |
964 |
- parse_fedora_ver |
965 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
966 |
- ;; |
967 |
-*) |
968 |
- # Normal upstream release |
969 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
970 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
971 |
- ;; |
972 |
-esac |
973 |
- |
974 |
-PATCH_VER="1" |
975 |
-PATCH_DEV="slyfox" |
976 |
-DESCRIPTION="GNU debugger" |
977 |
-HOMEPAGE="https://sourceware.org/gdb/" |
978 |
-SRC_URI="${SRC_URI} |
979 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
980 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
981 |
-" |
982 |
- |
983 |
-LICENSE="GPL-2 LGPL-2" |
984 |
-SLOT="0" |
985 |
-if [[ ${PV} != 9999* ]] ; then |
986 |
- KEYWORDS="alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
987 |
-fi |
988 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
989 |
-REQUIRED_USE=" |
990 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
991 |
- || ( client server ) |
992 |
-" |
993 |
- |
994 |
-RDEPEND=" |
995 |
- dev-libs/mpfr:= |
996 |
- server? ( !dev-util/gdbserver ) |
997 |
- client? ( |
998 |
- >=sys-libs/ncurses-5.2-r2:0= |
999 |
- sys-libs/readline:0= |
1000 |
- lzma? ( app-arch/xz-utils ) |
1001 |
- python? ( ${PYTHON_DEPS} ) |
1002 |
- xml? ( dev-libs/expat ) |
1003 |
- sys-libs/zlib |
1004 |
- )" |
1005 |
-DEPEND="${RDEPEND} |
1006 |
- app-arch/xz-utils |
1007 |
- sys-apps/texinfo |
1008 |
- client? ( |
1009 |
- virtual/yacc |
1010 |
- test? ( dev-util/dejagnu ) |
1011 |
- nls? ( sys-devel/gettext ) |
1012 |
- )" |
1013 |
- |
1014 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1015 |
- |
1016 |
-pkg_setup() { |
1017 |
- use python && python-single-r1_pkg_setup |
1018 |
-} |
1019 |
- |
1020 |
-src_prepare() { |
1021 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1022 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1023 |
- |
1024 |
- default |
1025 |
- |
1026 |
- strip-linguas -u bfd/po opcodes/po |
1027 |
-} |
1028 |
- |
1029 |
-gdb_branding() { |
1030 |
- printf "Gentoo ${PV} " |
1031 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1032 |
- printf "p${PATCH_VER}" |
1033 |
- else |
1034 |
- printf "vanilla" |
1035 |
- fi |
1036 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1037 |
-} |
1038 |
- |
1039 |
-src_configure() { |
1040 |
- strip-unsupported-flags |
1041 |
- |
1042 |
- local myconf=( |
1043 |
- --with-pkgversion="$(gdb_branding)" |
1044 |
- --with-bugurl='https://bugs.gentoo.org/' |
1045 |
- --with-mpfr |
1046 |
- --disable-werror |
1047 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1048 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1049 |
- ) |
1050 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1051 |
- is_cross && myconf+=( |
1052 |
- --with-sysroot="${sysroot}" |
1053 |
- --includedir="${sysroot}/usr/include" |
1054 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1055 |
- ) |
1056 |
- |
1057 |
- if use server && ! use client ; then |
1058 |
- # just configure+build in the gdbserver subdir to speed things up |
1059 |
- cd gdb/gdbserver |
1060 |
- myconf+=( --program-transform-name='' ) |
1061 |
- else |
1062 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1063 |
- # it also doesn't support all targets, so rather than duplicate |
1064 |
- # the target list (which changes between versions), use the |
1065 |
- # "auto" value when things are turned on. |
1066 |
- is_cross \ |
1067 |
- && myconf+=( --disable-gdbserver ) \ |
1068 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1069 |
- fi |
1070 |
- |
1071 |
- if ! ( use server && ! use client ) ; then |
1072 |
- # if we are configuring in the top level, then use all |
1073 |
- # the additional global options |
1074 |
- myconf+=( |
1075 |
- --enable-64-bit-bfd |
1076 |
- --disable-install-libbfd |
1077 |
- --disable-install-libiberty |
1078 |
- # Disable guile for now as it requires guile-2.x #562902 |
1079 |
- --without-guile |
1080 |
- # This only disables building in the readline subdir. |
1081 |
- # For gdb itself, it'll use the system version. |
1082 |
- --disable-readline |
1083 |
- --with-system-readline |
1084 |
- # This only disables building in the zlib subdir. |
1085 |
- # For gdb itself, it'll use the system version. |
1086 |
- --without-zlib |
1087 |
- --with-system-zlib |
1088 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1089 |
- $(use_with xml expat) |
1090 |
- $(use_with lzma) |
1091 |
- $(use_enable nls) |
1092 |
- $(use multitarget && echo --enable-targets=all) |
1093 |
- $(use_with python python "${EPYTHON}") |
1094 |
- ) |
1095 |
- fi |
1096 |
- if use sparc-solaris || use x86-solaris ; then |
1097 |
- # disable largefile support |
1098 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1099 |
- myconf+=( --disable-largefile ) |
1100 |
- fi |
1101 |
- |
1102 |
- econf "${myconf[@]}" |
1103 |
-} |
1104 |
- |
1105 |
-src_test() { |
1106 |
- nonfatal emake check || ewarn "tests failed" |
1107 |
-} |
1108 |
- |
1109 |
-src_install() { |
1110 |
- if use server && ! use client; then |
1111 |
- cd gdb/gdbserver || die |
1112 |
- fi |
1113 |
- default |
1114 |
- if use client; then |
1115 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1116 |
- fi |
1117 |
- cd "${S}" || die |
1118 |
- |
1119 |
- # Delete translations that conflict with binutils-libs. #528088 |
1120 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1121 |
- if use nls ; then |
1122 |
- find "${ED}" \ |
1123 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1124 |
- -delete || die |
1125 |
- fi |
1126 |
- |
1127 |
- # Don't install docs when building a cross-gdb |
1128 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1129 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1130 |
- local f |
1131 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1132 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1133 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1134 |
- fi |
1135 |
- done |
1136 |
- return 0 |
1137 |
- fi |
1138 |
- # Install it by hand for now: |
1139 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1140 |
- # Only install if it exists due to the twisted behavior (see |
1141 |
- # notes in src_configure above). |
1142 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1143 |
- |
1144 |
- if use client ; then |
1145 |
- docinto gdb |
1146 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1147 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1148 |
- fi |
1149 |
- docinto sim |
1150 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1151 |
- if use server ; then |
1152 |
- docinto gdbserver |
1153 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1154 |
- fi |
1155 |
- |
1156 |
- if [[ -n ${PATCH_VER} ]] ; then |
1157 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1158 |
- fi |
1159 |
- |
1160 |
- # Remove shared info pages |
1161 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1162 |
- |
1163 |
- # gcore is part of ubin on freebsd |
1164 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
1165 |
- rm "${ED}"/usr/bin/gcore || die |
1166 |
- fi |
1167 |
-} |
1168 |
- |
1169 |
-pkg_postinst() { |
1170 |
- # portage sucks and doesnt unmerge files in /etc |
1171 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1172 |
- |
1173 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1174 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1175 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1176 |
- ewarn "have to perform the following steps:" |
1177 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1178 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1179 |
- fi |
1180 |
-} |
1181 |
|
1182 |
diff --git a/sys-devel/gdb/gdb-8.1-r2.ebuild b/sys-devel/gdb/gdb-8.1-r2.ebuild |
1183 |
deleted file mode 100644 |
1184 |
index 19b1e9074ca..00000000000 |
1185 |
--- a/sys-devel/gdb/gdb-8.1-r2.ebuild |
1186 |
+++ /dev/null |
1187 |
@@ -1,256 +0,0 @@ |
1188 |
-# Copyright 1999-2019 Gentoo Authors |
1189 |
-# Distributed under the terms of the GNU General Public License v2 |
1190 |
- |
1191 |
-EAPI=6 |
1192 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
1193 |
- |
1194 |
-inherit epatch eutils flag-o-matic python-single-r1 |
1195 |
- |
1196 |
-export CTARGET=${CTARGET:-${CHOST}} |
1197 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1198 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1199 |
- export CTARGET=${CATEGORY#cross-} |
1200 |
- fi |
1201 |
-fi |
1202 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1203 |
- |
1204 |
-RPM= |
1205 |
-MY_PV=${PV} |
1206 |
-case ${PV} in |
1207 |
-9999*) |
1208 |
- # live git tree |
1209 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
1210 |
- inherit git-r3 |
1211 |
- SRC_URI="" |
1212 |
- ;; |
1213 |
-*.*.50.2???????) |
1214 |
- # weekly snapshots |
1215 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
1216 |
- ;; |
1217 |
-*.*.*.*.*.*) |
1218 |
- # fedora versions; note we swap the rpm & fedora core versions. |
1219 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
1220 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
1221 |
- inherit versionator rpm |
1222 |
- gvcr() { get_version_component_range "$@"; } |
1223 |
- parse_fedora_ver() { |
1224 |
- set -- $(get_version_components) |
1225 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
1226 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
1227 |
- } |
1228 |
- parse_fedora_ver |
1229 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
1230 |
- ;; |
1231 |
-*) |
1232 |
- # Normal upstream release |
1233 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
1234 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
1235 |
- ;; |
1236 |
-esac |
1237 |
- |
1238 |
-PATCH_VER="1" |
1239 |
-PATCH_DEV="slyfox" |
1240 |
-DESCRIPTION="GNU debugger" |
1241 |
-HOMEPAGE="https://sourceware.org/gdb/" |
1242 |
-SRC_URI="${SRC_URI} |
1243 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1244 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1245 |
-" |
1246 |
- |
1247 |
-LICENSE="GPL-2 LGPL-2" |
1248 |
-SLOT="0" |
1249 |
-if [[ ${PV} != 9999* ]] ; then |
1250 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1251 |
-fi |
1252 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
1253 |
-REQUIRED_USE=" |
1254 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1255 |
- || ( client server ) |
1256 |
-" |
1257 |
- |
1258 |
-RDEPEND=" |
1259 |
- server? ( !dev-util/gdbserver ) |
1260 |
- client? ( |
1261 |
- dev-libs/mpfr:0= |
1262 |
- >=sys-libs/ncurses-5.2-r2:0= |
1263 |
- sys-libs/readline:0= |
1264 |
- lzma? ( app-arch/xz-utils ) |
1265 |
- python? ( ${PYTHON_DEPS} ) |
1266 |
- xml? ( dev-libs/expat ) |
1267 |
- sys-libs/zlib |
1268 |
- )" |
1269 |
-DEPEND="${RDEPEND} |
1270 |
- app-arch/xz-utils |
1271 |
- sys-apps/texinfo |
1272 |
- client? ( |
1273 |
- virtual/yacc |
1274 |
- test? ( dev-util/dejagnu ) |
1275 |
- nls? ( sys-devel/gettext ) |
1276 |
- )" |
1277 |
- |
1278 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1279 |
- |
1280 |
-pkg_setup() { |
1281 |
- use python && python-single-r1_pkg_setup |
1282 |
-} |
1283 |
- |
1284 |
-src_prepare() { |
1285 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1286 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1287 |
- |
1288 |
- default |
1289 |
- |
1290 |
- strip-linguas -u bfd/po opcodes/po |
1291 |
-} |
1292 |
- |
1293 |
-gdb_branding() { |
1294 |
- printf "Gentoo ${PV} " |
1295 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1296 |
- printf "p${PATCH_VER}" |
1297 |
- else |
1298 |
- printf "vanilla" |
1299 |
- fi |
1300 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1301 |
-} |
1302 |
- |
1303 |
-src_configure() { |
1304 |
- strip-unsupported-flags |
1305 |
- |
1306 |
- local myconf=( |
1307 |
- --with-pkgversion="$(gdb_branding)" |
1308 |
- --with-bugurl='https://bugs.gentoo.org/' |
1309 |
- --disable-werror |
1310 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1311 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1312 |
- ) |
1313 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1314 |
- is_cross && myconf+=( |
1315 |
- --with-sysroot="${sysroot}" |
1316 |
- --includedir="${sysroot}/usr/include" |
1317 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1318 |
- ) |
1319 |
- |
1320 |
- if use server && ! use client ; then |
1321 |
- # just configure+build in the gdbserver subdir to speed things up |
1322 |
- cd gdb/gdbserver |
1323 |
- myconf+=( --program-transform-name='' ) |
1324 |
- else |
1325 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1326 |
- # it also doesn't support all targets, so rather than duplicate |
1327 |
- # the target list (which changes between versions), use the |
1328 |
- # "auto" value when things are turned on. |
1329 |
- is_cross \ |
1330 |
- && myconf+=( --disable-gdbserver ) \ |
1331 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1332 |
- fi |
1333 |
- |
1334 |
- if ! ( use server && ! use client ) ; then |
1335 |
- # if we are configuring in the top level, then use all |
1336 |
- # the additional global options |
1337 |
- myconf+=( |
1338 |
- --enable-64-bit-bfd |
1339 |
- --disable-install-libbfd |
1340 |
- --disable-install-libiberty |
1341 |
- # Disable guile for now as it requires guile-2.x #562902 |
1342 |
- --without-guile |
1343 |
- # This only disables building in the readline subdir. |
1344 |
- # For gdb itself, it'll use the system version. |
1345 |
- --disable-readline |
1346 |
- --with-system-readline |
1347 |
- # This only disables building in the zlib subdir. |
1348 |
- # For gdb itself, it'll use the system version. |
1349 |
- --without-zlib |
1350 |
- --with-system-zlib |
1351 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1352 |
- $(use_with xml expat) |
1353 |
- $(use_with lzma) |
1354 |
- $(use_enable nls) |
1355 |
- $(use multitarget && echo --enable-targets=all) |
1356 |
- $(use_with python python "${EPYTHON}") |
1357 |
- ) |
1358 |
- fi |
1359 |
- if use sparc-solaris || use x86-solaris ; then |
1360 |
- # disable largefile support |
1361 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1362 |
- myconf+=( --disable-largefile ) |
1363 |
- fi |
1364 |
- |
1365 |
- econf "${myconf[@]}" |
1366 |
-} |
1367 |
- |
1368 |
-src_test() { |
1369 |
- nonfatal emake check || ewarn "tests failed" |
1370 |
-} |
1371 |
- |
1372 |
-src_install() { |
1373 |
- if use server && ! use client; then |
1374 |
- cd gdb/gdbserver || die |
1375 |
- fi |
1376 |
- default |
1377 |
- if use client; then |
1378 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1379 |
- fi |
1380 |
- cd "${S}" || die |
1381 |
- |
1382 |
- # Delete translations that conflict with binutils-libs. #528088 |
1383 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1384 |
- if use nls ; then |
1385 |
- find "${ED}" \ |
1386 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1387 |
- -delete || die |
1388 |
- fi |
1389 |
- |
1390 |
- # Don't install docs when building a cross-gdb |
1391 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1392 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1393 |
- local f |
1394 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1395 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1396 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1397 |
- fi |
1398 |
- done |
1399 |
- return 0 |
1400 |
- fi |
1401 |
- # Install it by hand for now: |
1402 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1403 |
- # Only install if it exists due to the twisted behavior (see |
1404 |
- # notes in src_configure above). |
1405 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1406 |
- |
1407 |
- if use client ; then |
1408 |
- docinto gdb |
1409 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1410 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1411 |
- fi |
1412 |
- docinto sim |
1413 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1414 |
- if use server ; then |
1415 |
- docinto gdbserver |
1416 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1417 |
- fi |
1418 |
- |
1419 |
- if [[ -n ${PATCH_VER} ]] ; then |
1420 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1421 |
- fi |
1422 |
- |
1423 |
- # Remove shared info pages |
1424 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1425 |
- |
1426 |
- # gcore is part of ubin on freebsd |
1427 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
1428 |
- rm "${ED}"/usr/bin/gcore || die |
1429 |
- fi |
1430 |
-} |
1431 |
- |
1432 |
-pkg_postinst() { |
1433 |
- # portage sucks and doesnt unmerge files in /etc |
1434 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1435 |
- |
1436 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1437 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1438 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1439 |
- ewarn "have to perform the following steps:" |
1440 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1441 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1442 |
- fi |
1443 |
-} |
1444 |
|
1445 |
diff --git a/sys-devel/gdb/gdb-8.1.1.ebuild b/sys-devel/gdb/gdb-8.1.1.ebuild |
1446 |
deleted file mode 100644 |
1447 |
index 07f3c40d6f8..00000000000 |
1448 |
--- a/sys-devel/gdb/gdb-8.1.1.ebuild |
1449 |
+++ /dev/null |
1450 |
@@ -1,256 +0,0 @@ |
1451 |
-# Copyright 1999-2019 Gentoo Authors |
1452 |
-# Distributed under the terms of the GNU General Public License v2 |
1453 |
- |
1454 |
-EAPI=6 |
1455 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
1456 |
- |
1457 |
-inherit epatch eutils flag-o-matic python-single-r1 |
1458 |
- |
1459 |
-export CTARGET=${CTARGET:-${CHOST}} |
1460 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1461 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1462 |
- export CTARGET=${CATEGORY#cross-} |
1463 |
- fi |
1464 |
-fi |
1465 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1466 |
- |
1467 |
-RPM= |
1468 |
-MY_PV=${PV} |
1469 |
-case ${PV} in |
1470 |
-9999*) |
1471 |
- # live git tree |
1472 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
1473 |
- inherit git-r3 |
1474 |
- SRC_URI="" |
1475 |
- ;; |
1476 |
-*.*.50.2???????) |
1477 |
- # weekly snapshots |
1478 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
1479 |
- ;; |
1480 |
-*.*.*.*.*.*) |
1481 |
- # fedora versions; note we swap the rpm & fedora core versions. |
1482 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
1483 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
1484 |
- inherit versionator rpm |
1485 |
- gvcr() { get_version_component_range "$@"; } |
1486 |
- parse_fedora_ver() { |
1487 |
- set -- $(get_version_components) |
1488 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
1489 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
1490 |
- } |
1491 |
- parse_fedora_ver |
1492 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
1493 |
- ;; |
1494 |
-*) |
1495 |
- # Normal upstream release |
1496 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
1497 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
1498 |
- ;; |
1499 |
-esac |
1500 |
- |
1501 |
-PATCH_VER="1" |
1502 |
-PATCH_DEV="slyfox" |
1503 |
-DESCRIPTION="GNU debugger" |
1504 |
-HOMEPAGE="https://sourceware.org/gdb/" |
1505 |
-SRC_URI="${SRC_URI} |
1506 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1507 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1508 |
-" |
1509 |
- |
1510 |
-LICENSE="GPL-2 LGPL-2" |
1511 |
-SLOT="0" |
1512 |
-if [[ ${PV} != 9999* ]] ; then |
1513 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1514 |
-fi |
1515 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
1516 |
-REQUIRED_USE=" |
1517 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1518 |
- || ( client server ) |
1519 |
-" |
1520 |
- |
1521 |
-RDEPEND=" |
1522 |
- server? ( !dev-util/gdbserver ) |
1523 |
- client? ( |
1524 |
- dev-libs/mpfr:0= |
1525 |
- >=sys-libs/ncurses-5.2-r2:0= |
1526 |
- sys-libs/readline:0= |
1527 |
- lzma? ( app-arch/xz-utils ) |
1528 |
- python? ( ${PYTHON_DEPS} ) |
1529 |
- xml? ( dev-libs/expat ) |
1530 |
- sys-libs/zlib |
1531 |
- )" |
1532 |
-DEPEND="${RDEPEND} |
1533 |
- app-arch/xz-utils |
1534 |
- sys-apps/texinfo |
1535 |
- client? ( |
1536 |
- virtual/yacc |
1537 |
- test? ( dev-util/dejagnu ) |
1538 |
- nls? ( sys-devel/gettext ) |
1539 |
- )" |
1540 |
- |
1541 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1542 |
- |
1543 |
-pkg_setup() { |
1544 |
- use python && python-single-r1_pkg_setup |
1545 |
-} |
1546 |
- |
1547 |
-src_prepare() { |
1548 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1549 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1550 |
- |
1551 |
- default |
1552 |
- |
1553 |
- strip-linguas -u bfd/po opcodes/po |
1554 |
-} |
1555 |
- |
1556 |
-gdb_branding() { |
1557 |
- printf "Gentoo ${PV} " |
1558 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1559 |
- printf "p${PATCH_VER}" |
1560 |
- else |
1561 |
- printf "vanilla" |
1562 |
- fi |
1563 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1564 |
-} |
1565 |
- |
1566 |
-src_configure() { |
1567 |
- strip-unsupported-flags |
1568 |
- |
1569 |
- local myconf=( |
1570 |
- --with-pkgversion="$(gdb_branding)" |
1571 |
- --with-bugurl='https://bugs.gentoo.org/' |
1572 |
- --disable-werror |
1573 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1574 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1575 |
- ) |
1576 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1577 |
- is_cross && myconf+=( |
1578 |
- --with-sysroot="${sysroot}" |
1579 |
- --includedir="${sysroot}/usr/include" |
1580 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1581 |
- ) |
1582 |
- |
1583 |
- if use server && ! use client ; then |
1584 |
- # just configure+build in the gdbserver subdir to speed things up |
1585 |
- cd gdb/gdbserver |
1586 |
- myconf+=( --program-transform-name='' ) |
1587 |
- else |
1588 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1589 |
- # it also doesn't support all targets, so rather than duplicate |
1590 |
- # the target list (which changes between versions), use the |
1591 |
- # "auto" value when things are turned on. |
1592 |
- is_cross \ |
1593 |
- && myconf+=( --disable-gdbserver ) \ |
1594 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1595 |
- fi |
1596 |
- |
1597 |
- if ! ( use server && ! use client ) ; then |
1598 |
- # if we are configuring in the top level, then use all |
1599 |
- # the additional global options |
1600 |
- myconf+=( |
1601 |
- --enable-64-bit-bfd |
1602 |
- --disable-install-libbfd |
1603 |
- --disable-install-libiberty |
1604 |
- # Disable guile for now as it requires guile-2.x #562902 |
1605 |
- --without-guile |
1606 |
- # This only disables building in the readline subdir. |
1607 |
- # For gdb itself, it'll use the system version. |
1608 |
- --disable-readline |
1609 |
- --with-system-readline |
1610 |
- # This only disables building in the zlib subdir. |
1611 |
- # For gdb itself, it'll use the system version. |
1612 |
- --without-zlib |
1613 |
- --with-system-zlib |
1614 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1615 |
- $(use_with xml expat) |
1616 |
- $(use_with lzma) |
1617 |
- $(use_enable nls) |
1618 |
- $(use multitarget && echo --enable-targets=all) |
1619 |
- $(use_with python python "${EPYTHON}") |
1620 |
- ) |
1621 |
- fi |
1622 |
- if use sparc-solaris || use x86-solaris ; then |
1623 |
- # disable largefile support |
1624 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1625 |
- myconf+=( --disable-largefile ) |
1626 |
- fi |
1627 |
- |
1628 |
- econf "${myconf[@]}" |
1629 |
-} |
1630 |
- |
1631 |
-src_test() { |
1632 |
- nonfatal emake check || ewarn "tests failed" |
1633 |
-} |
1634 |
- |
1635 |
-src_install() { |
1636 |
- if use server && ! use client; then |
1637 |
- cd gdb/gdbserver || die |
1638 |
- fi |
1639 |
- default |
1640 |
- if use client; then |
1641 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1642 |
- fi |
1643 |
- cd "${S}" || die |
1644 |
- |
1645 |
- # Delete translations that conflict with binutils-libs. #528088 |
1646 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1647 |
- if use nls ; then |
1648 |
- find "${ED}" \ |
1649 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1650 |
- -delete || die |
1651 |
- fi |
1652 |
- |
1653 |
- # Don't install docs when building a cross-gdb |
1654 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1655 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1656 |
- local f |
1657 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1658 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1659 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1660 |
- fi |
1661 |
- done |
1662 |
- return 0 |
1663 |
- fi |
1664 |
- # Install it by hand for now: |
1665 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1666 |
- # Only install if it exists due to the twisted behavior (see |
1667 |
- # notes in src_configure above). |
1668 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1669 |
- |
1670 |
- if use client ; then |
1671 |
- docinto gdb |
1672 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1673 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1674 |
- fi |
1675 |
- docinto sim |
1676 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1677 |
- if use server ; then |
1678 |
- docinto gdbserver |
1679 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1680 |
- fi |
1681 |
- |
1682 |
- if [[ -n ${PATCH_VER} ]] ; then |
1683 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1684 |
- fi |
1685 |
- |
1686 |
- # Remove shared info pages |
1687 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1688 |
- |
1689 |
- # gcore is part of ubin on freebsd |
1690 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
1691 |
- rm "${ED}"/usr/bin/gcore || die |
1692 |
- fi |
1693 |
-} |
1694 |
- |
1695 |
-pkg_postinst() { |
1696 |
- # portage sucks and doesnt unmerge files in /etc |
1697 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1698 |
- |
1699 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1700 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1701 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1702 |
- ewarn "have to perform the following steps:" |
1703 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1704 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1705 |
- fi |
1706 |
-} |
1707 |
|
1708 |
diff --git a/sys-devel/gdb/gdb-8.2-r1.ebuild b/sys-devel/gdb/gdb-8.2-r1.ebuild |
1709 |
deleted file mode 100644 |
1710 |
index df5d7e5091a..00000000000 |
1711 |
--- a/sys-devel/gdb/gdb-8.2-r1.ebuild |
1712 |
+++ /dev/null |
1713 |
@@ -1,265 +0,0 @@ |
1714 |
-# Copyright 1999-2019 Gentoo Authors |
1715 |
-# Distributed under the terms of the GNU General Public License v2 |
1716 |
- |
1717 |
-EAPI=6 |
1718 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
1719 |
- |
1720 |
-inherit epatch eutils flag-o-matic python-single-r1 |
1721 |
- |
1722 |
-export CTARGET=${CTARGET:-${CHOST}} |
1723 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1724 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1725 |
- export CTARGET=${CATEGORY#cross-} |
1726 |
- fi |
1727 |
-fi |
1728 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
1729 |
- |
1730 |
-RPM= |
1731 |
-MY_PV=${PV} |
1732 |
-case ${PV} in |
1733 |
-9999*) |
1734 |
- # live git tree |
1735 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
1736 |
- inherit git-r3 |
1737 |
- SRC_URI="" |
1738 |
- ;; |
1739 |
-*.*.50.2???????) |
1740 |
- # weekly snapshots |
1741 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
1742 |
- ;; |
1743 |
-*.*.*.*.*.*) |
1744 |
- # fedora versions; note we swap the rpm & fedora core versions. |
1745 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
1746 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
1747 |
- inherit versionator rpm |
1748 |
- gvcr() { get_version_component_range "$@"; } |
1749 |
- parse_fedora_ver() { |
1750 |
- set -- $(get_version_components) |
1751 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
1752 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
1753 |
- } |
1754 |
- parse_fedora_ver |
1755 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
1756 |
- ;; |
1757 |
-*) |
1758 |
- # Normal upstream release |
1759 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
1760 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
1761 |
- ;; |
1762 |
-esac |
1763 |
- |
1764 |
-PATCH_VER="1" |
1765 |
-PATCH_DEV="slyfox" |
1766 |
-DESCRIPTION="GNU debugger" |
1767 |
-HOMEPAGE="https://sourceware.org/gdb/" |
1768 |
-SRC_URI="${SRC_URI} |
1769 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1770 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
1771 |
-" |
1772 |
- |
1773 |
-LICENSE="GPL-2 LGPL-2" |
1774 |
-SLOT="0" |
1775 |
-if [[ ${PV} != 9999* ]] ; then |
1776 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1777 |
-fi |
1778 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
1779 |
-REQUIRED_USE=" |
1780 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
1781 |
- || ( client server ) |
1782 |
-" |
1783 |
- |
1784 |
-RDEPEND=" |
1785 |
- server? ( !dev-util/gdbserver ) |
1786 |
- client? ( |
1787 |
- dev-libs/mpfr:0= |
1788 |
- >=sys-libs/ncurses-5.2-r2:0= |
1789 |
- sys-libs/readline:0= |
1790 |
- lzma? ( app-arch/xz-utils ) |
1791 |
- python? ( ${PYTHON_DEPS} ) |
1792 |
- xml? ( dev-libs/expat ) |
1793 |
- sys-libs/zlib |
1794 |
- )" |
1795 |
-DEPEND="${RDEPEND} |
1796 |
- app-arch/xz-utils |
1797 |
- sys-apps/texinfo |
1798 |
- client? ( |
1799 |
- virtual/yacc |
1800 |
- test? ( dev-util/dejagnu ) |
1801 |
- nls? ( sys-devel/gettext ) |
1802 |
- )" |
1803 |
- |
1804 |
-S=${WORKDIR}/${PN}-${MY_PV} |
1805 |
- |
1806 |
-PATCHES=( |
1807 |
- "${FILESDIR}"/${P}-tinfow.patch |
1808 |
- "${FILESDIR}"/${P}-sparc-fix-syntax.patch |
1809 |
-) |
1810 |
- |
1811 |
-pkg_setup() { |
1812 |
- use python && python-single-r1_pkg_setup |
1813 |
-} |
1814 |
- |
1815 |
-src_prepare() { |
1816 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
1817 |
- |
1818 |
- # upstreamed |
1819 |
- EPATCH_EXCLUDE+=" 01_all_ia64-TRAP_HWBKPT.patch" |
1820 |
- EPATCH_EXCLUDE+=" 02_all_solaris-no-uuidsys.patch" |
1821 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
1822 |
- |
1823 |
- default |
1824 |
- |
1825 |
- strip-linguas -u bfd/po opcodes/po |
1826 |
-} |
1827 |
- |
1828 |
-gdb_branding() { |
1829 |
- printf "Gentoo ${PV} " |
1830 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
1831 |
- printf "p${PATCH_VER}" |
1832 |
- else |
1833 |
- printf "vanilla" |
1834 |
- fi |
1835 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
1836 |
-} |
1837 |
- |
1838 |
-src_configure() { |
1839 |
- strip-unsupported-flags |
1840 |
- |
1841 |
- local myconf=( |
1842 |
- --with-pkgversion="$(gdb_branding)" |
1843 |
- --with-bugurl='https://bugs.gentoo.org/' |
1844 |
- --disable-werror |
1845 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
1846 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
1847 |
- ) |
1848 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
1849 |
- is_cross && myconf+=( |
1850 |
- --with-sysroot="${sysroot}" |
1851 |
- --includedir="${sysroot}/usr/include" |
1852 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
1853 |
- ) |
1854 |
- |
1855 |
- if use server && ! use client ; then |
1856 |
- # just configure+build in the gdbserver subdir to speed things up |
1857 |
- cd gdb/gdbserver |
1858 |
- myconf+=( --program-transform-name='' ) |
1859 |
- else |
1860 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
1861 |
- # it also doesn't support all targets, so rather than duplicate |
1862 |
- # the target list (which changes between versions), use the |
1863 |
- # "auto" value when things are turned on. |
1864 |
- is_cross \ |
1865 |
- && myconf+=( --disable-gdbserver ) \ |
1866 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
1867 |
- fi |
1868 |
- |
1869 |
- if ! ( use server && ! use client ) ; then |
1870 |
- # if we are configuring in the top level, then use all |
1871 |
- # the additional global options |
1872 |
- myconf+=( |
1873 |
- --enable-64-bit-bfd |
1874 |
- --disable-install-libbfd |
1875 |
- --disable-install-libiberty |
1876 |
- # Disable guile for now as it requires guile-2.x #562902 |
1877 |
- --without-guile |
1878 |
- # This only disables building in the readline subdir. |
1879 |
- # For gdb itself, it'll use the system version. |
1880 |
- --disable-readline |
1881 |
- --with-system-readline |
1882 |
- # This only disables building in the zlib subdir. |
1883 |
- # For gdb itself, it'll use the system version. |
1884 |
- --without-zlib |
1885 |
- --with-system-zlib |
1886 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
1887 |
- $(use_with xml expat) |
1888 |
- $(use_with lzma) |
1889 |
- $(use_enable nls) |
1890 |
- $(use multitarget && echo --enable-targets=all) |
1891 |
- $(use_with python python "${EPYTHON}") |
1892 |
- ) |
1893 |
- fi |
1894 |
- if use sparc-solaris || use x86-solaris ; then |
1895 |
- # disable largefile support |
1896 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
1897 |
- myconf+=( --disable-largefile ) |
1898 |
- fi |
1899 |
- |
1900 |
- econf "${myconf[@]}" |
1901 |
-} |
1902 |
- |
1903 |
-src_test() { |
1904 |
- nonfatal emake check || ewarn "tests failed" |
1905 |
-} |
1906 |
- |
1907 |
-src_install() { |
1908 |
- if use server && ! use client; then |
1909 |
- cd gdb/gdbserver || die |
1910 |
- fi |
1911 |
- default |
1912 |
- if use client; then |
1913 |
- find "${ED}"/usr -name libiberty.a -delete || die |
1914 |
- fi |
1915 |
- cd "${S}" || die |
1916 |
- |
1917 |
- # Delete translations that conflict with binutils-libs. #528088 |
1918 |
- # Note: Should figure out how to store these in an internal gdb dir. |
1919 |
- if use nls ; then |
1920 |
- find "${ED}" \ |
1921 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
1922 |
- -delete || die |
1923 |
- fi |
1924 |
- |
1925 |
- # Don't install docs when building a cross-gdb |
1926 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
1927 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
1928 |
- local f |
1929 |
- for f in "${ED}"/usr/share/man/*/* ; do |
1930 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
1931 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
1932 |
- fi |
1933 |
- done |
1934 |
- return 0 |
1935 |
- fi |
1936 |
- # Install it by hand for now: |
1937 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
1938 |
- # Only install if it exists due to the twisted behavior (see |
1939 |
- # notes in src_configure above). |
1940 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
1941 |
- |
1942 |
- if use client ; then |
1943 |
- docinto gdb |
1944 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
1945 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
1946 |
- fi |
1947 |
- docinto sim |
1948 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
1949 |
- if use server ; then |
1950 |
- docinto gdbserver |
1951 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
1952 |
- fi |
1953 |
- |
1954 |
- if [[ -n ${PATCH_VER} ]] ; then |
1955 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
1956 |
- fi |
1957 |
- |
1958 |
- # Remove shared info pages |
1959 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
1960 |
- |
1961 |
- # gcore is part of ubin on freebsd |
1962 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
1963 |
- rm "${ED}"/usr/bin/gcore || die |
1964 |
- fi |
1965 |
-} |
1966 |
- |
1967 |
-pkg_postinst() { |
1968 |
- # portage sucks and doesnt unmerge files in /etc |
1969 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
1970 |
- |
1971 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
1972 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
1973 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
1974 |
- ewarn "have to perform the following steps:" |
1975 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
1976 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
1977 |
- fi |
1978 |
-} |
1979 |
|
1980 |
diff --git a/sys-devel/gdb/gdb-8.2.1.ebuild b/sys-devel/gdb/gdb-8.2.1.ebuild |
1981 |
deleted file mode 100644 |
1982 |
index 290a0081c16..00000000000 |
1983 |
--- a/sys-devel/gdb/gdb-8.2.1.ebuild |
1984 |
+++ /dev/null |
1985 |
@@ -1,262 +0,0 @@ |
1986 |
-# Copyright 1999-2019 Gentoo Authors |
1987 |
-# Distributed under the terms of the GNU General Public License v2 |
1988 |
- |
1989 |
-EAPI=7 |
1990 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
1991 |
- |
1992 |
-inherit eutils flag-o-matic python-single-r1 |
1993 |
- |
1994 |
-export CTARGET=${CTARGET:-${CHOST}} |
1995 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
1996 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
1997 |
- export CTARGET=${CATEGORY#cross-} |
1998 |
- fi |
1999 |
-fi |
2000 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
2001 |
- |
2002 |
-RPM= |
2003 |
-MY_PV=${PV} |
2004 |
-case ${PV} in |
2005 |
-9999*) |
2006 |
- # live git tree |
2007 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
2008 |
- inherit git-r3 |
2009 |
- SRC_URI="" |
2010 |
- ;; |
2011 |
-*.*.50.2???????) |
2012 |
- # weekly snapshots |
2013 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
2014 |
- ;; |
2015 |
-*.*.*.*.*.*) |
2016 |
- # fedora versions; note we swap the rpm & fedora core versions. |
2017 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
2018 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
2019 |
- inherit versionator rpm |
2020 |
- gvcr() { get_version_component_range "$@"; } |
2021 |
- parse_fedora_ver() { |
2022 |
- set -- $(get_version_components) |
2023 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
2024 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
2025 |
- } |
2026 |
- parse_fedora_ver |
2027 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
2028 |
- ;; |
2029 |
-*) |
2030 |
- # Normal upstream release |
2031 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
2032 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
2033 |
- ;; |
2034 |
-esac |
2035 |
- |
2036 |
-PATCH_VER="1" |
2037 |
-PATCH_DEV="slyfox" |
2038 |
-DESCRIPTION="GNU debugger" |
2039 |
-HOMEPAGE="https://sourceware.org/gdb/" |
2040 |
-SRC_URI="${SRC_URI} |
2041 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
2042 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
2043 |
-" |
2044 |
- |
2045 |
-LICENSE="GPL-2 LGPL-2" |
2046 |
-SLOT="0" |
2047 |
-if [[ ${PV} != 9999* ]] ; then |
2048 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
2049 |
-fi |
2050 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
2051 |
-REQUIRED_USE=" |
2052 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
2053 |
- || ( client server ) |
2054 |
-" |
2055 |
- |
2056 |
-RDEPEND=" |
2057 |
- server? ( !dev-util/gdbserver ) |
2058 |
- client? ( |
2059 |
- dev-libs/mpfr:0= |
2060 |
- >=sys-libs/ncurses-5.2-r2:0= |
2061 |
- sys-libs/readline:0= |
2062 |
- lzma? ( app-arch/xz-utils ) |
2063 |
- python? ( ${PYTHON_DEPS} ) |
2064 |
- xml? ( dev-libs/expat ) |
2065 |
- sys-libs/zlib |
2066 |
- )" |
2067 |
-DEPEND="${RDEPEND}" |
2068 |
-BDEPEND=" |
2069 |
- app-arch/xz-utils |
2070 |
- sys-apps/texinfo |
2071 |
- client? ( |
2072 |
- virtual/yacc |
2073 |
- test? ( dev-util/dejagnu ) |
2074 |
- nls? ( sys-devel/gettext ) |
2075 |
- )" |
2076 |
- |
2077 |
-S=${WORKDIR}/${PN}-${MY_PV} |
2078 |
- |
2079 |
-PATCHES=( |
2080 |
- "${FILESDIR}"/${PN}-8.2-tinfow.patch |
2081 |
- "${FILESDIR}"/${PN}-8.2-sparc-fix-syntax.patch |
2082 |
- "${FILESDIR}"/${PN}-8.2.1-aarch64-musl.patch |
2083 |
-) |
2084 |
- |
2085 |
-pkg_setup() { |
2086 |
- use python && python-single-r1_pkg_setup |
2087 |
-} |
2088 |
- |
2089 |
-src_prepare() { |
2090 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
2091 |
- |
2092 |
- default |
2093 |
- |
2094 |
- strip-linguas -u bfd/po opcodes/po |
2095 |
-} |
2096 |
- |
2097 |
-gdb_branding() { |
2098 |
- printf "Gentoo ${PV} " |
2099 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
2100 |
- printf "p${PATCH_VER}" |
2101 |
- else |
2102 |
- printf "vanilla" |
2103 |
- fi |
2104 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
2105 |
-} |
2106 |
- |
2107 |
-src_configure() { |
2108 |
- strip-unsupported-flags |
2109 |
- |
2110 |
- local myconf=( |
2111 |
- --with-pkgversion="$(gdb_branding)" |
2112 |
- --with-bugurl='https://bugs.gentoo.org/' |
2113 |
- --disable-werror |
2114 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
2115 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
2116 |
- ) |
2117 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
2118 |
- is_cross && myconf+=( |
2119 |
- --with-sysroot="${sysroot}" |
2120 |
- --includedir="${sysroot}/usr/include" |
2121 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
2122 |
- ) |
2123 |
- |
2124 |
- if use server && ! use client ; then |
2125 |
- # just configure+build in the gdbserver subdir to speed things up |
2126 |
- cd gdb/gdbserver |
2127 |
- myconf+=( --program-transform-name='' ) |
2128 |
- else |
2129 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
2130 |
- # it also doesn't support all targets, so rather than duplicate |
2131 |
- # the target list (which changes between versions), use the |
2132 |
- # "auto" value when things are turned on. |
2133 |
- is_cross \ |
2134 |
- && myconf+=( --disable-gdbserver ) \ |
2135 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
2136 |
- fi |
2137 |
- |
2138 |
- if ! ( use server && ! use client ) ; then |
2139 |
- # if we are configuring in the top level, then use all |
2140 |
- # the additional global options |
2141 |
- myconf+=( |
2142 |
- --enable-64-bit-bfd |
2143 |
- --disable-install-libbfd |
2144 |
- --disable-install-libiberty |
2145 |
- # Disable guile for now as it requires guile-2.x #562902 |
2146 |
- --without-guile |
2147 |
- # This only disables building in the readline subdir. |
2148 |
- # For gdb itself, it'll use the system version. |
2149 |
- --disable-readline |
2150 |
- --with-system-readline |
2151 |
- # This only disables building in the zlib subdir. |
2152 |
- # For gdb itself, it'll use the system version. |
2153 |
- --without-zlib |
2154 |
- --with-system-zlib |
2155 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
2156 |
- $(use_with xml expat) |
2157 |
- $(use_with lzma) |
2158 |
- $(use_enable nls) |
2159 |
- $(use multitarget && echo --enable-targets=all) |
2160 |
- $(use_with python python "${EPYTHON}") |
2161 |
- ) |
2162 |
- fi |
2163 |
- if use sparc-solaris || use x86-solaris ; then |
2164 |
- # disable largefile support |
2165 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
2166 |
- myconf+=( --disable-largefile ) |
2167 |
- fi |
2168 |
- |
2169 |
- econf "${myconf[@]}" |
2170 |
-} |
2171 |
- |
2172 |
-src_test() { |
2173 |
- nonfatal emake check || ewarn "tests failed" |
2174 |
-} |
2175 |
- |
2176 |
-src_install() { |
2177 |
- if use server && ! use client; then |
2178 |
- cd gdb/gdbserver || die |
2179 |
- fi |
2180 |
- default |
2181 |
- if use client; then |
2182 |
- find "${ED}"/usr -name libiberty.a -delete || die |
2183 |
- fi |
2184 |
- cd "${S}" || die |
2185 |
- |
2186 |
- # Delete translations that conflict with binutils-libs. #528088 |
2187 |
- # Note: Should figure out how to store these in an internal gdb dir. |
2188 |
- if use nls ; then |
2189 |
- find "${ED}" \ |
2190 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
2191 |
- -delete || die |
2192 |
- fi |
2193 |
- |
2194 |
- # Don't install docs when building a cross-gdb |
2195 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
2196 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
2197 |
- local f |
2198 |
- for f in "${ED}"/usr/share/man/*/* ; do |
2199 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
2200 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
2201 |
- fi |
2202 |
- done |
2203 |
- return 0 |
2204 |
- fi |
2205 |
- # Install it by hand for now: |
2206 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
2207 |
- # Only install if it exists due to the twisted behavior (see |
2208 |
- # notes in src_configure above). |
2209 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
2210 |
- |
2211 |
- if use client ; then |
2212 |
- docinto gdb |
2213 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
2214 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
2215 |
- fi |
2216 |
- docinto sim |
2217 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
2218 |
- if use server ; then |
2219 |
- docinto gdbserver |
2220 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
2221 |
- fi |
2222 |
- |
2223 |
- if [[ -n ${PATCH_VER} ]] ; then |
2224 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
2225 |
- fi |
2226 |
- |
2227 |
- # Remove shared info pages |
2228 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
2229 |
- |
2230 |
- # gcore is part of ubin on freebsd |
2231 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
2232 |
- rm "${ED}"/usr/bin/gcore || die |
2233 |
- fi |
2234 |
-} |
2235 |
- |
2236 |
-pkg_postinst() { |
2237 |
- # portage sucks and doesnt unmerge files in /etc |
2238 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
2239 |
- |
2240 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
2241 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
2242 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
2243 |
- ewarn "have to perform the following steps:" |
2244 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
2245 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
2246 |
- fi |
2247 |
-} |
2248 |
|
2249 |
diff --git a/sys-devel/gdb/gdb-8.2.ebuild b/sys-devel/gdb/gdb-8.2.ebuild |
2250 |
deleted file mode 100644 |
2251 |
index 6330d79ff8d..00000000000 |
2252 |
--- a/sys-devel/gdb/gdb-8.2.ebuild |
2253 |
+++ /dev/null |
2254 |
@@ -1,260 +0,0 @@ |
2255 |
-# Copyright 1999-2019 Gentoo Authors |
2256 |
-# Distributed under the terms of the GNU General Public License v2 |
2257 |
- |
2258 |
-EAPI=6 |
2259 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6} ) |
2260 |
- |
2261 |
-inherit epatch eutils flag-o-matic python-single-r1 |
2262 |
- |
2263 |
-export CTARGET=${CTARGET:-${CHOST}} |
2264 |
-if [[ ${CTARGET} == ${CHOST} ]] ; then |
2265 |
- if [[ ${CATEGORY} == cross-* ]] ; then |
2266 |
- export CTARGET=${CATEGORY#cross-} |
2267 |
- fi |
2268 |
-fi |
2269 |
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
2270 |
- |
2271 |
-RPM= |
2272 |
-MY_PV=${PV} |
2273 |
-case ${PV} in |
2274 |
-9999*) |
2275 |
- # live git tree |
2276 |
- EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
2277 |
- inherit git-r3 |
2278 |
- SRC_URI="" |
2279 |
- ;; |
2280 |
-*.*.50.2???????) |
2281 |
- # weekly snapshots |
2282 |
- SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
2283 |
- ;; |
2284 |
-*.*.*.*.*.*) |
2285 |
- # fedora versions; note we swap the rpm & fedora core versions. |
2286 |
- # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
2287 |
- # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
2288 |
- inherit versionator rpm |
2289 |
- gvcr() { get_version_component_range "$@"; } |
2290 |
- parse_fedora_ver() { |
2291 |
- set -- $(get_version_components) |
2292 |
- MY_PV=$(gvcr 1-$(( $# - 2 ))) |
2293 |
- RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
2294 |
- } |
2295 |
- parse_fedora_ver |
2296 |
- SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
2297 |
- ;; |
2298 |
-*) |
2299 |
- # Normal upstream release |
2300 |
- SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
2301 |
- ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
2302 |
- ;; |
2303 |
-esac |
2304 |
- |
2305 |
-PATCH_VER="1" |
2306 |
-PATCH_DEV="slyfox" |
2307 |
-DESCRIPTION="GNU debugger" |
2308 |
-HOMEPAGE="https://sourceware.org/gdb/" |
2309 |
-SRC_URI="${SRC_URI} |
2310 |
- ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
2311 |
- ${PATCH_VER:+mirror://gentoo/${PN}-8.1-patches-${PATCH_VER}.tar.xz} |
2312 |
-" |
2313 |
- |
2314 |
-LICENSE="GPL-2 LGPL-2" |
2315 |
-SLOT="0" |
2316 |
-if [[ ${PV} != 9999* ]] ; then |
2317 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
2318 |
-fi |
2319 |
-IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
2320 |
-REQUIRED_USE=" |
2321 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
2322 |
- || ( client server ) |
2323 |
-" |
2324 |
- |
2325 |
-RDEPEND=" |
2326 |
- server? ( !dev-util/gdbserver ) |
2327 |
- client? ( |
2328 |
- dev-libs/mpfr:0= |
2329 |
- >=sys-libs/ncurses-5.2-r2:0= |
2330 |
- sys-libs/readline:0= |
2331 |
- lzma? ( app-arch/xz-utils ) |
2332 |
- python? ( ${PYTHON_DEPS} ) |
2333 |
- xml? ( dev-libs/expat ) |
2334 |
- sys-libs/zlib |
2335 |
- )" |
2336 |
-DEPEND="${RDEPEND} |
2337 |
- app-arch/xz-utils |
2338 |
- sys-apps/texinfo |
2339 |
- client? ( |
2340 |
- virtual/yacc |
2341 |
- test? ( dev-util/dejagnu ) |
2342 |
- nls? ( sys-devel/gettext ) |
2343 |
- )" |
2344 |
- |
2345 |
-S=${WORKDIR}/${PN}-${MY_PV} |
2346 |
- |
2347 |
-pkg_setup() { |
2348 |
- use python && python-single-r1_pkg_setup |
2349 |
-} |
2350 |
- |
2351 |
-src_prepare() { |
2352 |
- [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
2353 |
- |
2354 |
- # upstreamed |
2355 |
- EPATCH_EXCLUDE+=" 01_all_ia64-TRAP_HWBKPT.patch" |
2356 |
- EPATCH_EXCLUDE+=" 02_all_solaris-no-uuidsys.patch" |
2357 |
- ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
2358 |
- |
2359 |
- default |
2360 |
- |
2361 |
- strip-linguas -u bfd/po opcodes/po |
2362 |
-} |
2363 |
- |
2364 |
-gdb_branding() { |
2365 |
- printf "Gentoo ${PV} " |
2366 |
- if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
2367 |
- printf "p${PATCH_VER}" |
2368 |
- else |
2369 |
- printf "vanilla" |
2370 |
- fi |
2371 |
- [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
2372 |
-} |
2373 |
- |
2374 |
-src_configure() { |
2375 |
- strip-unsupported-flags |
2376 |
- |
2377 |
- local myconf=( |
2378 |
- --with-pkgversion="$(gdb_branding)" |
2379 |
- --with-bugurl='https://bugs.gentoo.org/' |
2380 |
- --disable-werror |
2381 |
- # Disable modules that are in a combined binutils/gdb tree. #490566 |
2382 |
- --disable-{binutils,etc,gas,gold,gprof,ld} |
2383 |
- ) |
2384 |
- local sysroot="${EPREFIX}/usr/${CTARGET}" |
2385 |
- is_cross && myconf+=( |
2386 |
- --with-sysroot="${sysroot}" |
2387 |
- --includedir="${sysroot}/usr/include" |
2388 |
- --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
2389 |
- ) |
2390 |
- |
2391 |
- if use server && ! use client ; then |
2392 |
- # just configure+build in the gdbserver subdir to speed things up |
2393 |
- cd gdb/gdbserver |
2394 |
- myconf+=( --program-transform-name='' ) |
2395 |
- else |
2396 |
- # gdbserver only works for native targets (CHOST==CTARGET). |
2397 |
- # it also doesn't support all targets, so rather than duplicate |
2398 |
- # the target list (which changes between versions), use the |
2399 |
- # "auto" value when things are turned on. |
2400 |
- is_cross \ |
2401 |
- && myconf+=( --disable-gdbserver ) \ |
2402 |
- || myconf+=( $(use_enable server gdbserver auto) ) |
2403 |
- fi |
2404 |
- |
2405 |
- if ! ( use server && ! use client ) ; then |
2406 |
- # if we are configuring in the top level, then use all |
2407 |
- # the additional global options |
2408 |
- myconf+=( |
2409 |
- --enable-64-bit-bfd |
2410 |
- --disable-install-libbfd |
2411 |
- --disable-install-libiberty |
2412 |
- # Disable guile for now as it requires guile-2.x #562902 |
2413 |
- --without-guile |
2414 |
- # This only disables building in the readline subdir. |
2415 |
- # For gdb itself, it'll use the system version. |
2416 |
- --disable-readline |
2417 |
- --with-system-readline |
2418 |
- # This only disables building in the zlib subdir. |
2419 |
- # For gdb itself, it'll use the system version. |
2420 |
- --without-zlib |
2421 |
- --with-system-zlib |
2422 |
- --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
2423 |
- $(use_with xml expat) |
2424 |
- $(use_with lzma) |
2425 |
- $(use_enable nls) |
2426 |
- $(use multitarget && echo --enable-targets=all) |
2427 |
- $(use_with python python "${EPYTHON}") |
2428 |
- ) |
2429 |
- fi |
2430 |
- if use sparc-solaris || use x86-solaris ; then |
2431 |
- # disable largefile support |
2432 |
- # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
2433 |
- myconf+=( --disable-largefile ) |
2434 |
- fi |
2435 |
- |
2436 |
- econf "${myconf[@]}" |
2437 |
-} |
2438 |
- |
2439 |
-src_test() { |
2440 |
- nonfatal emake check || ewarn "tests failed" |
2441 |
-} |
2442 |
- |
2443 |
-src_install() { |
2444 |
- if use server && ! use client; then |
2445 |
- cd gdb/gdbserver || die |
2446 |
- fi |
2447 |
- default |
2448 |
- if use client; then |
2449 |
- find "${ED}"/usr -name libiberty.a -delete || die |
2450 |
- fi |
2451 |
- cd "${S}" || die |
2452 |
- |
2453 |
- # Delete translations that conflict with binutils-libs. #528088 |
2454 |
- # Note: Should figure out how to store these in an internal gdb dir. |
2455 |
- if use nls ; then |
2456 |
- find "${ED}" \ |
2457 |
- -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
2458 |
- -delete || die |
2459 |
- fi |
2460 |
- |
2461 |
- # Don't install docs when building a cross-gdb |
2462 |
- if [[ ${CTARGET} != ${CHOST} ]] ; then |
2463 |
- rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
2464 |
- local f |
2465 |
- for f in "${ED}"/usr/share/man/*/* ; do |
2466 |
- if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
2467 |
- mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
2468 |
- fi |
2469 |
- done |
2470 |
- return 0 |
2471 |
- fi |
2472 |
- # Install it by hand for now: |
2473 |
- # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
2474 |
- # Only install if it exists due to the twisted behavior (see |
2475 |
- # notes in src_configure above). |
2476 |
- [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
2477 |
- |
2478 |
- if use client ; then |
2479 |
- docinto gdb |
2480 |
- dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
2481 |
- gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
2482 |
- fi |
2483 |
- docinto sim |
2484 |
- dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
2485 |
- if use server ; then |
2486 |
- docinto gdbserver |
2487 |
- dodoc gdb/gdbserver/{ChangeLog,README} |
2488 |
- fi |
2489 |
- |
2490 |
- if [[ -n ${PATCH_VER} ]] ; then |
2491 |
- dodoc "${WORKDIR}"/extra/gdbinit.sample |
2492 |
- fi |
2493 |
- |
2494 |
- # Remove shared info pages |
2495 |
- rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
2496 |
- |
2497 |
- # gcore is part of ubin on freebsd |
2498 |
- if [[ ${CHOST} == *-freebsd* ]]; then |
2499 |
- rm "${ED}"/usr/bin/gcore || die |
2500 |
- fi |
2501 |
-} |
2502 |
- |
2503 |
-pkg_postinst() { |
2504 |
- # portage sucks and doesnt unmerge files in /etc |
2505 |
- rm -vf "${EROOT}"/etc/skel/.gdbinit |
2506 |
- |
2507 |
- if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
2508 |
- ewarn "gdb is unable to get a mach task port when installed by Prefix" |
2509 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
2510 |
- ewarn "have to perform the following steps:" |
2511 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
2512 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
2513 |
- fi |
2514 |
-} |