1 |
commit: 03ca854695bdb9ed363b0b32593acbdd0f3d04cc |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 10 14:28:05 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 10 14:28:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ca8546 |
7 |
|
8 |
sys-devel/gdb-apple: remove obviated versions |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sys-devel/gdb-apple/Manifest | 3 - |
14 |
.../gdb-apple/files/gdb-apple-1461-darwin8.patch | 128 --------------------- |
15 |
.../gdb-apple/files/gdb-apple-1461-dyld-info.patch | 22 ---- |
16 |
.../files/gdb-apple-768-darwin-arch.patch | 15 --- |
17 |
.../gdb-apple/files/gdb-apple-962-darwin64.patch | 17 --- |
18 |
.../gdb-apple/files/gdb-apple-962-darwin8.patch | 15 --- |
19 |
.../gdb-apple/files/gdb-apple-962-demangle.patch | 22 ---- |
20 |
sys-devel/gdb-apple/gdb-apple-1461.ebuild | 68 ----------- |
21 |
sys-devel/gdb-apple/gdb-apple-768-r1.ebuild | 52 --------- |
22 |
sys-devel/gdb-apple/gdb-apple-966.ebuild | 66 ----------- |
23 |
10 files changed, 408 deletions(-) |
24 |
|
25 |
diff --git a/sys-devel/gdb-apple/Manifest b/sys-devel/gdb-apple/Manifest |
26 |
index eee15d636e1..d52e9873b52 100644 |
27 |
--- a/sys-devel/gdb-apple/Manifest |
28 |
+++ b/sys-devel/gdb-apple/Manifest |
29 |
@@ -1,4 +1 @@ |
30 |
-DIST gdb-1461.2.tar.gz 17951571 BLAKE2B 53871df6574c73b37ce0a7ee353eca1fa81a6be4b6389ee41a9a140d091579df98f5fe44e0dfb9a14a0309cc3510c566a5af73af231a9070f55308434ea6373a SHA512 2d8b11ed575e26176a8f93eb7d2fbc052313114ffce10f0da6888ff9e7c30067d4db6d89c9443187bf7167823dfd631a7f56fe718160b5653791080df9b8163d |
31 |
DIST gdb-1752.tar.gz 17922994 BLAKE2B 9b27bca2b6a9f10e01d130d595270300a4e7f0040790c5b60337d41086e1238dc12d785cc88c484df630f742ddfe783f7baefc2132b47e41bb74a5d0b7ebbf1e SHA512 863a861a9a7708b8a763ea93599f6b519277f23fff35700d04e81a7747cc49421d0f051790deb92c440ced30ee15ba719b75066d5a614341e0f0b765d7a81094 |
32 |
-DIST gdb-768.tar.gz 17727326 BLAKE2B 9c233204d276c673f4f653888f947ecc73cb9e09c0cd9dd3879a0e47f2b50942a38513826c005cb3bd04019fbac5f7c01860f98304884ba8d3c81b63cffc89ac SHA512 40395d2e8ca30bb7aa0bbb0b270cbb9c18decc5a8fb37a764d43770e234b6281528d6feb301bcd97033c624c196851283fdbfc131f0336772a1e6e4b0168ae47 |
33 |
-DIST gdb-966.tar.gz 17769429 BLAKE2B c27a8fb6884eabf56855817fbcca2e0566df834d541bee1cf87954bdafd82d6eac673d46026ca8101ea5b2ac3ad1da14bcc9d9bf5a20fade099fdd7df54d6936 SHA512 daaf6f0329e311d46d82734df87fd501f70281edb511a8eb9123b6288a6a97f84725acc0f1c5e67dee3dc3e00cfa31bf7fc20594fbf3827a0ea35414f5ef7434 |
34 |
|
35 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch |
36 |
deleted file mode 100644 |
37 |
index c89c82a0d18..00000000000 |
38 |
--- a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch |
39 |
+++ /dev/null |
40 |
@@ -1,128 +0,0 @@ |
41 |
---- a/gdb/macosx/macosx-nat-inferior.c |
42 |
-+++ b/gdb/macosx/macosx-nat-inferior.c |
43 |
-@@ -60,13 +60,17 @@ |
44 |
- #include <sys/sysctl.h> |
45 |
- #include <sys/proc.h> |
46 |
- #include <mach/mach_error.h> |
47 |
-+#if defined(TARGET_ARM) |
48 |
- #include <spawn.h> |
49 |
-+#endif |
50 |
- |
51 |
- #include <semaphore.h> |
52 |
- |
53 |
- #include <dlfcn.h> |
54 |
-+#if 0 |
55 |
- #include <libproc.h> |
56 |
- #include <sys/proc_info.h> |
57 |
-+#endif |
58 |
- |
59 |
- #include "macosx-nat-dyld.h" |
60 |
- #include "macosx-nat-inferior.h" |
61 |
---- a/gdb/macosx/macosx-nat-info.c |
62 |
-+++ b/gdb/macosx/macosx-nat-info.c |
63 |
-@@ -45,6 +45,22 @@ |
64 |
- #include "macosx-nat-inferior.h" |
65 |
- #include "macosx-nat-inferior-debug.h" |
66 |
- |
67 |
-+#ifdef __ppc__ |
68 |
-+#ifndef __darwin_ppc_thread_state |
69 |
-+#define __darwin_ppc_thread_state ppc_thread_state |
70 |
-+#define __r0 r0 |
71 |
-+#define __srr0 srr0 |
72 |
-+#define __srr1 srr1 |
73 |
-+#define __cr cr |
74 |
-+#define __xer xer |
75 |
-+#define __lr lr |
76 |
-+#define __ctr ctr |
77 |
-+#endif |
78 |
-+#ifndef __darwin_ppc_exception_state |
79 |
-+#define __darwin_ppc_exception_state ppc_exception_state |
80 |
-+#endif |
81 |
-+#endif |
82 |
-+ |
83 |
- extern macosx_inferior_status *macosx_status; |
84 |
- |
85 |
- #define CHECK_ARGS(what, args) \ |
86 |
---- a/gdb/macosx/macosx-nat-infthread.c |
87 |
-+++ b/gdb/macosx/macosx-nat-infthread.c |
88 |
-@@ -36,8 +36,10 @@ |
89 |
- #include <sys/dir.h> |
90 |
- #include <inttypes.h> |
91 |
- |
92 |
-+#if 0 |
93 |
- #include <libproc.h> |
94 |
- #include <sys/proc_info.h> |
95 |
-+#endif |
96 |
- |
97 |
- #include "macosx-nat-inferior.h" |
98 |
- #include "macosx-nat-inferior-util.h" |
99 |
---- a/gdb/macosx/macosx-tdep.c |
100 |
-+++ b/gdb/macosx/macosx-tdep.c |
101 |
-@@ -63,7 +63,6 @@ |
102 |
- #include "gdbcore.h" |
103 |
- |
104 |
- #include <dirent.h> |
105 |
--#include <libgen.h> |
106 |
- #include <sys/types.h> |
107 |
- #include <sys/stat.h> |
108 |
- #include <sys/param.h> |
109 |
---- a/gdb/remote.c |
110 |
-+++ b/gdb/remote.c |
111 |
-@@ -62,7 +62,6 @@ |
112 |
- #include "macosx-nat-dyld.h" |
113 |
- #include "macosx-nat-dyld-process.h" |
114 |
- #endif |
115 |
--#include <execinfo.h> |
116 |
- |
117 |
- /* Prototypes for local functions. */ |
118 |
- static void cleanup_sigint_signal_handler (void *dummy); |
119 |
-@@ -474,11 +473,13 @@ |
120 |
- static void |
121 |
- remote_backtrace_self (const char *message) |
122 |
- { |
123 |
-+#if 0 |
124 |
- void *bt_buffer[100]; |
125 |
- int count = backtrace (bt_buffer, 100); |
126 |
- if (message && message[0]) |
127 |
- fprintf_filtered (gdb_stderr, "%s", message); |
128 |
- backtrace_symbols_fd (bt_buffer, count, STDERR_FILENO); |
129 |
-+#endif |
130 |
- } |
131 |
- |
132 |
- static void |
133 |
---- a/gdb/symfile.c |
134 |
-+++ b/gdb/symfile.c |
135 |
-@@ -67,7 +67,6 @@ |
136 |
- #include <ctype.h> |
137 |
- #include <time.h> |
138 |
- #include <sys/time.h> |
139 |
--#include <libgen.h> |
140 |
- |
141 |
- #include <sys/mman.h> |
142 |
- |
143 |
---- a/gdb/utils.c |
144 |
-+++ b/gdb/utils.c |
145 |
-@@ -27,7 +27,6 @@ |
146 |
- #include "gdb_string.h" |
147 |
- #include "event-top.h" |
148 |
- #include "exceptions.h" |
149 |
--#include <execinfo.h> |
150 |
- |
151 |
- #ifdef TUI |
152 |
- #include "tui/tui.h" /* For tui_get_command_dimension. */ |
153 |
-@@ -874,6 +873,7 @@ |
154 |
- target_terminal_ours (); |
155 |
- begin_line (); |
156 |
- |
157 |
-+#if 0 |
158 |
- /* APPLE LOCAL: Do a stack crawl of how we got here so we're more likely |
159 |
- to get useful bug reports. */ |
160 |
- { |
161 |
-@@ -882,6 +882,7 @@ |
162 |
- fprintf (stderr, "gdb stack crawl at point of internal error:\n"); |
163 |
- backtrace_symbols_fd (bt_buffer, count, STDERR_FILENO); |
164 |
- } |
165 |
-+#endif |
166 |
- |
167 |
- /* Create a string containing the full error/warning message. Need |
168 |
- to call query with this full string, as otherwize the reason |
169 |
|
170 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch b/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch |
171 |
deleted file mode 100644 |
172 |
index fb9ca9c7411..00000000000 |
173 |
--- a/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch |
174 |
+++ /dev/null |
175 |
@@ -1,22 +0,0 @@ |
176 |
-If dyld-info is not available, don't try to compile unreachable code |
177 |
-using it either. |
178 |
- |
179 |
---- a/gdb/macosx/macosx-nat-dyld.c |
180 |
-+++ b/gdb/macosx/macosx-nat-dyld.c |
181 |
-@@ -731,7 +731,7 @@ |
182 |
- { |
183 |
- #if !defined (TASK_DYLD_INFO) || !defined (NM_NEXTSTEP) |
184 |
- return 0; |
185 |
--#endif |
186 |
-+#else |
187 |
- |
188 |
- if (target_is_remote () || value == NULL) |
189 |
- return 0; |
190 |
-@@ -791,6 +791,7 @@ |
191 |
- } |
192 |
- #endif /* NM_NEXTSTEP */ |
193 |
- return 0; |
194 |
-+#endif |
195 |
- } |
196 |
- |
197 |
- /* Searches the target address space for dyld itself, returning it in |
198 |
|
199 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch b/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch |
200 |
deleted file mode 100644 |
201 |
index 5442ba8ba63..00000000000 |
202 |
--- a/sys-devel/gdb-apple/files/gdb-apple-768-darwin-arch.patch |
203 |
+++ /dev/null |
204 |
@@ -1,15 +0,0 @@ |
205 |
-* configure checks for /usr/bin/arch to determine whether "arch" is ok |
206 |
- to use, so don't rely on the path at runtime, since GNU arch doesn't |
207 |
- understand -arch at all (and only returns the current arch name) |
208 |
- |
209 |
---- src/gdb/fork-child.c |
210 |
-+++ src/gdb/fork-child.c |
211 |
-@@ -243,7 +243,7 @@ |
212 |
- arch_string = "x86_64"; |
213 |
- #endif |
214 |
- if (arch_string != NULL) |
215 |
-- sprintf (shell_command, "%s exec arch -arch %s ", shell_command, arch_string); |
216 |
-+ sprintf (shell_command, "%s exec /usr/bin/arch -arch %s ", shell_command, arch_string); |
217 |
- else |
218 |
- strcat (shell_command, "exec "); |
219 |
- } |
220 |
|
221 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch b/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch |
222 |
deleted file mode 100644 |
223 |
index 4417cee76e4..00000000000 |
224 |
--- a/sys-devel/gdb-apple/files/gdb-apple-962-darwin64.patch |
225 |
+++ /dev/null |
226 |
@@ -1,17 +0,0 @@ |
227 |
-* todo: extend for powerpc64 also |
228 |
- |
229 |
---- src/bfd/config.bfd.orig 2009-06-23 11:05:43 +0200 |
230 |
-+++ src/bfd/config.bfd 2009-06-23 11:05:47 +0200 |
231 |
-@@ -500,6 +500,12 @@ |
232 |
- targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" |
233 |
- targ_underscore=yes |
234 |
- ;; |
235 |
-+ x86_64-*-darwin*) |
236 |
-+ targ_defvec=mach_o_le_vec |
237 |
-+ targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" |
238 |
-+ targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" |
239 |
-+ targ_underscore=yes |
240 |
-+ ;; |
241 |
- i[3-7]86-sequent-bsd*) |
242 |
- targ_defvec=i386dynix_vec |
243 |
- targ_underscore=yes |
244 |
|
245 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch b/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch |
246 |
deleted file mode 100644 |
247 |
index 05a088b93fb..00000000000 |
248 |
--- a/sys-devel/gdb-apple/files/gdb-apple-962-darwin8.patch |
249 |
+++ /dev/null |
250 |
@@ -1,15 +0,0 @@ |
251 |
-* 10.4 doesn't have posix spawn, but fortunately it's only used on ARM |
252 |
- (iPhone), so we can still compile it |
253 |
- |
254 |
---- src/gdb/macosx/macosx-nat-inferior.c |
255 |
-+++ src/gdb/macosx/macosx-nat-inferior.c |
256 |
-@@ -58,7 +58,9 @@ |
257 |
- #include <sys/sysctl.h> |
258 |
- #include <sys/proc.h> |
259 |
- #include <mach/mach_error.h> |
260 |
-+#ifdef TARGET_ARM |
261 |
- #include <spawn.h> |
262 |
-+#endif |
263 |
- |
264 |
- #include "macosx-nat-dyld.h" |
265 |
- #include "macosx-nat-inferior.h" |
266 |
|
267 |
diff --git a/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch b/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch |
268 |
deleted file mode 100644 |
269 |
index a302ce56ec9..00000000000 |
270 |
--- a/sys-devel/gdb-apple/files/gdb-apple-962-demangle.patch |
271 |
+++ /dev/null |
272 |
@@ -1,22 +0,0 @@ |
273 |
-in 32-bits mode this goes /just/ right, in 64-bits mode Portage aborts |
274 |
-because objc_demangle is implicitly turned into a pointer |
275 |
- |
276 |
---- src/gdb/maint.c.orig 2009-06-23 11:12:15 +0200 |
277 |
-+++ src/gdb/maint.c 2009-06-23 11:19:58 +0200 |
278 |
-@@ -31,6 +31,7 @@ |
279 |
- #include "symtab.h" |
280 |
- #include "gdbtypes.h" |
281 |
- #include "demangle.h" |
282 |
-+#include "objc-lang.h" |
283 |
- #include "gdbcore.h" |
284 |
- #include "expression.h" /* For language.h */ |
285 |
- #include "language.h" |
286 |
-@@ -167,7 +168,7 @@ |
287 |
- switch (current_language->la_language) |
288 |
- { |
289 |
- case language_objc: |
290 |
-- demangled = objc_demangle (args); |
291 |
-+ demangled = objc_demangle (args, 0); |
292 |
- break; |
293 |
- case language_objcplus: |
294 |
- case language_cplus: |
295 |
|
296 |
diff --git a/sys-devel/gdb-apple/gdb-apple-1461.ebuild b/sys-devel/gdb-apple/gdb-apple-1461.ebuild |
297 |
deleted file mode 100644 |
298 |
index 7127e61d244..00000000000 |
299 |
--- a/sys-devel/gdb-apple/gdb-apple-1461.ebuild |
300 |
+++ /dev/null |
301 |
@@ -1,68 +0,0 @@ |
302 |
-# Copyright 1999-2018 Gentoo Foundation |
303 |
-# Distributed under the terms of the GNU General Public License v2 |
304 |
- |
305 |
-EAPI=6 |
306 |
- |
307 |
-inherit eutils flag-o-matic |
308 |
- |
309 |
-APPLE_PV=${PV}.2 |
310 |
-DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 3.2.2" |
311 |
-HOMEPAGE="https://sourceware.org/gdb/" |
312 |
-SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${APPLE_PV}.tar.gz" |
313 |
- |
314 |
-LICENSE="APSL-2 GPL-2" |
315 |
-SLOT="0" |
316 |
- |
317 |
-KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" |
318 |
- |
319 |
-IUSE="nls" |
320 |
- |
321 |
-RDEPEND=">=sys-libs/ncurses-5.2-r2 |
322 |
- =dev-db/sqlite-3*" |
323 |
-DEPEND="${RDEPEND} |
324 |
- nls? ( sys-devel/gettext )" |
325 |
- |
326 |
-S=${WORKDIR}/gdb-${APPLE_PV}/src |
327 |
- |
328 |
-PATCHES=( |
329 |
- "${FILESDIR}"/${PN}-no-global-gdbinit.patch |
330 |
- "${FILESDIR}"/${PN}-768-texinfo.patch |
331 |
- "${FILESDIR}"/${P}-dyld-info.patch |
332 |
-) |
333 |
- |
334 |
-src_prepare() { |
335 |
- default |
336 |
- [[ ${CHOST} == *-darwin8 ]] && eapply "${FILESDIR}"/${P}-darwin8.patch |
337 |
- |
338 |
- # for FSF gcc / gcc-apple:42 |
339 |
- sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh |
340 |
-} |
341 |
- |
342 |
-src_configure() { |
343 |
- replace-flags -O? -O2 |
344 |
- econf \ |
345 |
- --disable-werror \ |
346 |
- --disable-debug-symbols-framework \ |
347 |
- $(use_enable nls) \ |
348 |
- || die |
349 |
-} |
350 |
- |
351 |
-src_install() { |
352 |
- emake DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die |
353 |
- rm -R "${D}"/nukeme || die |
354 |
- rm -Rf "${ED}"/usr/${CHOST} || die |
355 |
- mv "${ED}"/usr/bin/gdb "${ED}"/ |
356 |
- rm -f "${ED}"/usr/bin/* |
357 |
- mv "${ED}"/gdb "${ED}"/usr/bin/ |
358 |
-} |
359 |
- |
360 |
-pkg_postinst() { |
361 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -ge 9 ]] ; then |
362 |
- ewarn "Due to increased security measures in 10.5 and up, gdb is" |
363 |
- ewarn "not able to get a mach task port when installed by Prefix" |
364 |
- ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
365 |
- ewarn "have to perform the following steps:" |
366 |
- ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
367 |
- ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
368 |
- fi |
369 |
-} |
370 |
|
371 |
diff --git a/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild b/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild |
372 |
deleted file mode 100644 |
373 |
index e9f84fc168a..00000000000 |
374 |
--- a/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild |
375 |
+++ /dev/null |
376 |
@@ -1,52 +0,0 @@ |
377 |
-# Copyright 1999-2018 Gentoo Foundation |
378 |
-# Distributed under the terms of the GNU General Public License v2 |
379 |
- |
380 |
-EAPI=6 |
381 |
- |
382 |
-inherit eutils flag-o-matic |
383 |
- |
384 |
-DESCRIPTION="Apple branch of the GNU Debugger, 10.5" |
385 |
-HOMEPAGE="https://sourceware.org/gdb/" |
386 |
-SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${PV}.tar.gz" |
387 |
- |
388 |
-LICENSE="APSL-2 GPL-2" |
389 |
-SLOT="0" |
390 |
- |
391 |
-KEYWORDS="~ppc-macos ~x86-macos" |
392 |
- |
393 |
-IUSE="nls" |
394 |
- |
395 |
-RDEPEND=">=sys-libs/ncurses-5.2-r2 |
396 |
- =dev-db/sqlite-3*" |
397 |
-DEPEND="${RDEPEND} |
398 |
- nls? ( sys-devel/gettext )" |
399 |
- |
400 |
-S=${WORKDIR}/gdb-${PV}/src |
401 |
- |
402 |
-PATCHES=( |
403 |
- "${FILESDIR}"/${P}-texinfo.patch |
404 |
- "${FILESDIR}"/${P}-darwin-arch.patch |
405 |
-) |
406 |
- |
407 |
-src_prepare() { |
408 |
- default |
409 |
- # for FSF gcc / gcc-apple:42 |
410 |
- sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh |
411 |
-} |
412 |
- |
413 |
-src_configure() { |
414 |
- replace-flags -O? -O2 |
415 |
- econf \ |
416 |
- --disable-werror \ |
417 |
- $(use_enable nls) \ |
418 |
- || die |
419 |
-} |
420 |
- |
421 |
-src_install() { |
422 |
- emake DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die |
423 |
- rm -r "${D}"/nukeme || die |
424 |
- rm -Rf "${ED}"/usr/${CHOST} || die |
425 |
- mv "${ED}"/usr/bin/gdb "${ED}"/ |
426 |
- rm -f "${ED}"/usr/bin/* |
427 |
- mv "${ED}"/gdb "${ED}"/usr/bin/ |
428 |
-} |
429 |
|
430 |
diff --git a/sys-devel/gdb-apple/gdb-apple-966.ebuild b/sys-devel/gdb-apple/gdb-apple-966.ebuild |
431 |
deleted file mode 100644 |
432 |
index 7ffb29ce62a..00000000000 |
433 |
--- a/sys-devel/gdb-apple/gdb-apple-966.ebuild |
434 |
+++ /dev/null |
435 |
@@ -1,66 +0,0 @@ |
436 |
-# Copyright 1999-2018 Gentoo Foundation |
437 |
-# Distributed under the terms of the GNU General Public License v2 |
438 |
- |
439 |
-EAPI=6 |
440 |
- |
441 |
-inherit eutils flag-o-matic |
442 |
- |
443 |
-DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 3.1.3" |
444 |
-HOMEPAGE="https://sourceware.org/gdb/" |
445 |
-SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${PV}.tar.gz" |
446 |
- |
447 |
-LICENSE="APSL-2 GPL-2" |
448 |
-SLOT="0" |
449 |
- |
450 |
-KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" |
451 |
- |
452 |
-IUSE="nls" |
453 |
- |
454 |
-RDEPEND=">=sys-libs/ncurses-5.2-r2 |
455 |
- =dev-db/sqlite-3*" |
456 |
-DEPEND="${RDEPEND} |
457 |
- nls? ( sys-devel/gettext )" |
458 |
- |
459 |
-S=${WORKDIR}/gdb-${PV}/src |
460 |
- |
461 |
-PATCHES=( |
462 |
- "${FILESDIR}"/${PN}-768-texinfo.patch |
463 |
- "${FILESDIR}"/${PN}-768-darwin-arch.patch |
464 |
- "${FILESDIR}"/${PN}-962-darwin8.patch |
465 |
- "${FILESDIR}"/${PN}-962-darwin64.patch |
466 |
- "${FILESDIR}"/${PN}-962-demangle.patch |
467 |
-) |
468 |
- |
469 |
-src_prepare() { |
470 |
- default |
471 |
- # for FSF gcc / gcc-apple:42 |
472 |
- sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh |
473 |
-} |
474 |
- |
475 |
-src_configure() { |
476 |
- replace-flags -O? -O2 |
477 |
- econf \ |
478 |
- --disable-werror \ |
479 |
- $(use_enable nls) \ |
480 |
- || die |
481 |
-} |
482 |
- |
483 |
-src_install() { |
484 |
- emake DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die |
485 |
- rm -R "${D}"/nukeme || die |
486 |
- rm -Rf "${ED}"/usr/${CHOST} || die |
487 |
- mv "${ED}"/usr/bin/gdb "${ED}"/ |
488 |
- rm -f "${ED}"/usr/bin/* |
489 |
- mv "${ED}"/gdb "${ED}"/usr/bin/ |
490 |
-} |
491 |
- |
492 |
-pkg_postinst() { |
493 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -ge 9 ]] ; then |
494 |
- elog "Due to increased security measures in 10.5 and up, gdb is" |
495 |
- elog "not able to get a mach task port when installed by Prefix" |
496 |
- elog "Portage, unprivileged. To make gdb fully functional you'll" |
497 |
- elog "have to perform the following steps:" |
498 |
- elog " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
499 |
- elog " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
500 |
- fi |
501 |
-} |