public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
@ 2016-01-22 17:55 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2016-01-22 17:55 UTC (permalink / raw
  To: gentoo-commits

commit:     1c3b2e29bc638ba7a8691d6fb9bce0a6ae1e0fa7
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sat Jan 16 16:56:03 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 18:03:55 2016 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=1c3b2e29

sys-devel/gdb: bump to 7.10.1

 sys-devel/gdb/Manifest                             |  6 ++--
 sys-devel/gdb/files/gdb-7.4-linux-nat.patch        | 32 ----------------------
 sys-devel/gdb/files/gdb-linux_nat.patch            | 26 ++++++++++++++++++
 ...{gdb-7.9.1-r99.ebuild => gdb-7.10.1-r99.ebuild} | 13 ++++++++-
 4 files changed, 41 insertions(+), 36 deletions(-)

diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
index 0ccc39f..7081b6b 100644
--- a/sys-devel/gdb/Manifest
+++ b/sys-devel/gdb/Manifest
@@ -1,4 +1,4 @@
-AUX gdb-7.4-linux-nat.patch 778 SHA256 26d5bb6567c66300cf59380da18e790ee5a5d20b7be3c90e4cd0012e244ba306 SHA512 6aab4819bec533623b3b57e5fab43681693c350889c77749fa242b7d6131b6c026f029f5efca5d0b5ca162fa9c11cd00b18a402c05b44866de5e36bf8380f75e WHIRLPOOL ecb605f5e02d25416e8ab146bcade3aee0f6a5662557878176d9cb68d733c2e1433050e9a8389ce05cc79cdc0077b482fbed7d8a3e91c16994ecb3044b3f309f
-DIST gdb-7.9.1.tar.xz 17867692 SHA256 cd9c543a411a05b2b647dd38936034b68c2b5d6f10e0d51dc168c166c973ba40 SHA512 eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414 WHIRLPOOL fe7afb392f453fa5aab290da3b74118c4e3bbae6f4e276f2efd7f978e3987e031d92ecd90d35e0531901f1cf68b04a313df050b25bb3b632d1b6e62360acd591
-EBUILD gdb-7.9.1-r99.ebuild 5942 SHA256 eda617d3ddbf8c4e2fb35cb2ae06f7d48567e6a80f3b98434f0cfee8645db2db SHA512 988ddd9d14a671dd77dbe3ad87cb816b69631f70280ed3dd586705544260dbf0579bc85714be6c067a9f2ed54180136f05fe8c02510fac991885f6751b5055a0 WHIRLPOOL 9cf42b82d51a8ed6eed65b80db7ba26c302cf5f4a7105276b86f9c93de07e382291b10fbe2150b1f3700a3f0640e850bc61fae8843600f282ff5e9bf4aaebcd4
+AUX gdb-linux_nat.patch 617 SHA256 dcef02741f402ad34c658a90b85667e93e1d3293fe2941acd5b6821b349a1532 SHA512 1d5ecce8c1b597f12298d17bae308e332cb0dbae56b08c3da7829ab6a473f1b20e8e6572bab45bce5942771753604b7a9541c809f2a86d4beb38ff98b0be4bfe WHIRLPOOL c1d2a91f743e04f429ec423663a090a99878229f4d4e3aa207951e1db58892648464ea50fde03d5eaf05ccf2541a8ad2a7ff67d2e86115a3e66dd9a8bd32b9b4
+DIST gdb-7.10.1.tar.xz 18531436 SHA256 25c72f3d41c7c8554d61cacbeacd5f40993276d2ccdec43279ac546e3993d6d5 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 WHIRLPOOL 02936f59d3f3f8a57966c72402f1da128dd8e10e686097ffdb3a2741cc0c1831ef27f97daa047fa006ff2ae9f79ae0480f6f0dc2d3f5904190a1dade0590c837
+EBUILD gdb-7.10.1-r99.ebuild 6322 SHA256 205748b237abb70497af968145c658ceca6c8a55b5363bc9f1b6e50de52fd2ef SHA512 bcaf12607ec310d971537a410dc92b5872724b9d601118985796cd4a98dac9e814210c1758333f24223ec4dc6124ee705e56246acdf10b6205bbb8179e510425 WHIRLPOOL 660de27e3452e48efebae2357f59cd5d57ecf246dfe8f3a1614987d86b6110c9e1a31ebe72c5bbb84e2f7c452b6d4fb97b1ec4f8f3ed5a62722d7789a9833e00
 MISC metadata.xml 552 SHA256 e86791dadf315a7a079e460854bcc4a28d7c69a93694efc85014b325824b81cf SHA512 bb4901b011b63137fb7e359ff657fbe8aa2bd7d36a78be397c163a0bd37486a32bddf4929ab5a2a3b7b7d52f3c2edd69ce18d4bb5e2f56b45d43bb59cb54f686 WHIRLPOOL 214e51279eed4230ed8cba15e42581213428ff06c32ad7832b17c1af6c2eae351a843aae51d78a99486b5bbfea2369faa4aaa4b99cae1ce7a41da5748d8e2211

diff --git a/sys-devel/gdb/files/gdb-7.4-linux-nat.patch b/sys-devel/gdb/files/gdb-7.4-linux-nat.patch
deleted file mode 100644
index 30bfbc8..0000000
--- a/sys-devel/gdb/files/gdb-7.4-linux-nat.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-taken from sabotage linux
-
-the first chunk fixes build errors,
-the non_stop part below fixes thread debugging being available
-by default without setting any breakpoints or usage of libthread_db.
-
---- gdb-7.4.org/gdb/linux-nat.c	2013-08-10 05:24:24.651000003 +0000
-+++ gdb-7.4/gdb/linux-nat.c	2013-08-10 05:25:50.966000003 +0000
-@@ -71,6 +71,14 @@
- # endif
- #endif /* HAVE_PERSONALITY */
- 
-+#ifndef __SIGRTMIN
-+#define __SIGRTMIN SIGRTMIN
-+#endif
-+
-+#ifndef W_STOPCODE
-+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
-+#endif
-+
- /* This comment documents high-level logic of this file.
- 
- Waiting for events in sync mode
-@@ -2265,7 +2273,7 @@
- 		status = 0;
- 	    }
- 
--	  if (non_stop)
-+	  if (1)
- 	    {
- 	      /* Add the new thread to GDB's lists as soon as possible
- 		 so that:

diff --git a/sys-devel/gdb/files/gdb-linux_nat.patch b/sys-devel/gdb/files/gdb-linux_nat.patch
new file mode 100644
index 0000000..6a7276c
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-linux_nat.patch
@@ -0,0 +1,26 @@
+--- ./gdb/linux-nat.c.orig
++++ ./gdb/linux-nat.c
+@@ -169,6 +169,10 @@
+ #define O_LARGEFILE 0
+ #endif
+ 
++#ifndef W_STOPCODE
++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
++#endif
++
+ /* The single-threaded native GNU/Linux target_ops.  We save a pointer for
+    the use of the multi-threaded target.  */
+ static struct target_ops *linux_ops;
+@@ -4875,10 +4879,10 @@
+      fortunately they don't change!  */
+ 
+   if (restart == 0)
+-    restart = __SIGRTMIN;
++    restart = SIGRTMIN;
+ 
+   if (cancel == 0)
+-    cancel = __SIGRTMIN + 1;
++    cancel = SIGRTMIN + 1;
+ 
+   sigaddset (set, restart);
+   sigaddset (set, cancel);

diff --git a/sys-devel/gdb/gdb-7.9.1-r99.ebuild b/sys-devel/gdb/gdb-7.10.1-r99.ebuild
similarity index 93%
rename from sys-devel/gdb/gdb-7.9.1-r99.ebuild
rename to sys-devel/gdb/gdb-7.10.1-r99.ebuild
index b8dcce4..45d11b1 100644
--- a/sys-devel/gdb/gdb-7.9.1-r99.ebuild
+++ b/sys-devel/gdb/gdb-7.10.1-r99.ebuild
@@ -92,7 +92,7 @@ src_prepare() {
 	[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
 	! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
 
-	epatch "${FILESDIR}"/${PN}-7.4-linux-nat.patch
+	epatch "${FILESDIR}"/${PN}-linux_nat.patch
 
 	epatch_user
 	strip-linguas -u bfd/po opcodes/po
@@ -105,6 +105,7 @@ gdb_branding() {
 	else
 		printf "vanilla"
 	fi
+	[[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
 }
 
 src_configure() {
@@ -145,6 +146,8 @@ src_configure() {
 			--enable-64-bit-bfd
 			--disable-install-libbfd
 			--disable-install-libiberty
+			# Disable guile for now as it requires guile-2.x #562902
+			--without-guile
 			# This only disables building in the readline subdir.
 			# For gdb itself, it'll use the system version.
 			--disable-readline
@@ -172,6 +175,14 @@ src_install() {
 	use client && find "${ED}"/usr -name libiberty.a -delete
 	cd "${S}"
 
+	# Delete translations that conflict with binutils-libs. #528088
+	# Note: Should figure out how to store these in an internal gdb dir.
+	if use nls ; then
+		find "${ED}" \
+			-regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
+			-delete
+	fi
+
 	# Don't install docs when building a cross-gdb
 	if [[ ${CTARGET} != ${CHOST} ]] ; then
 		rm -r "${ED}"/usr/share/{doc,info,locale}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
@ 2016-02-12  0:50 Anthony G. Basile
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony G. Basile @ 2016-02-12  0:50 UTC (permalink / raw
  To: gentoo-commits

commit:     b0c7770d7596937d91d6da03e5c892136f0d68d0
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 12 01:00:04 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Feb 12 01:00:04 2016 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=b0c7770d

sys-devel/gdb: add missing <sys/stat.h>

Package-Manager: portage-2.2.26

 sys-devel/gdb/Manifest                       |  3 ++-
 sys-devel/gdb/files/gdb-missing-stat_h.patch | 11 +++++++++++
 sys-devel/gdb/gdb-7.10.1-r99.ebuild          |  1 +
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
index 7081b6b..fe0ae6a 100644
--- a/sys-devel/gdb/Manifest
+++ b/sys-devel/gdb/Manifest
@@ -1,4 +1,5 @@
 AUX gdb-linux_nat.patch 617 SHA256 dcef02741f402ad34c658a90b85667e93e1d3293fe2941acd5b6821b349a1532 SHA512 1d5ecce8c1b597f12298d17bae308e332cb0dbae56b08c3da7829ab6a473f1b20e8e6572bab45bce5942771753604b7a9541c809f2a86d4beb38ff98b0be4bfe WHIRLPOOL c1d2a91f743e04f429ec423663a090a99878229f4d4e3aa207951e1db58892648464ea50fde03d5eaf05ccf2541a8ad2a7ff67d2e86115a3e66dd9a8bd32b9b4
+AUX gdb-missing-stat_h.patch 398 SHA256 88a49f997609644866ca873653b1f7cc09f75edb33b2f32ac73c7caffa1ce8d3 SHA512 8b1d22a61cb471df7052d2215dd5d67175e1732769bde90cb992d23ef97dd7153e2ab348ec184577b9491b68184f542a3f5fe8027b280b5feb38b23353568449 WHIRLPOOL b83c3a7a1825e54f8deaf7a4068b4c1b99adb9d6c1c6ef04eef47450a12f90bcd854462703e006aa049c68fa30d7b64cbbfdca6d0f5dd578f72d6704ed23f1d2
 DIST gdb-7.10.1.tar.xz 18531436 SHA256 25c72f3d41c7c8554d61cacbeacd5f40993276d2ccdec43279ac546e3993d6d5 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 WHIRLPOOL 02936f59d3f3f8a57966c72402f1da128dd8e10e686097ffdb3a2741cc0c1831ef27f97daa047fa006ff2ae9f79ae0480f6f0dc2d3f5904190a1dade0590c837
-EBUILD gdb-7.10.1-r99.ebuild 6322 SHA256 205748b237abb70497af968145c658ceca6c8a55b5363bc9f1b6e50de52fd2ef SHA512 bcaf12607ec310d971537a410dc92b5872724b9d601118985796cd4a98dac9e814210c1758333f24223ec4dc6124ee705e56246acdf10b6205bbb8179e510425 WHIRLPOOL 660de27e3452e48efebae2357f59cd5d57ecf246dfe8f3a1614987d86b6110c9e1a31ebe72c5bbb84e2f7c452b6d4fb97b1ec4f8f3ed5a62722d7789a9833e00
+EBUILD gdb-7.10.1-r99.ebuild 6371 SHA256 324e9ade09f3abc274acd5168dee9c3354b071e16c85f88f99181a09dcaa155a SHA512 766c7036a44c481609e5d65a29e0f14ed86a2317f99bbedbc6cc56937f16cfef542fc3367c6cb547f5d30c6d5ad92f5d7ad47073957024be4e0455ca0f89b8f4 WHIRLPOOL 56da3cfcf6dd71b4c93ff86f6bc3ee737c4dd105148d8cfab68f27e65ae74914497e18fc7ee4132a5caa2fab046be159f5f28452936be0a38a9451b985486cb8
 MISC metadata.xml 552 SHA256 e86791dadf315a7a079e460854bcc4a28d7c69a93694efc85014b325824b81cf SHA512 bb4901b011b63137fb7e359ff657fbe8aa2bd7d36a78be397c163a0bd37486a32bddf4929ab5a2a3b7b7d52f3c2edd69ce18d4bb5e2f56b45d43bb59cb54f686 WHIRLPOOL 214e51279eed4230ed8cba15e42581213428ff06c32ad7832b17c1af6c2eae351a843aae51d78a99486b5bbfea2369faa4aaa4b99cae1ce7a41da5748d8e2211

diff --git a/sys-devel/gdb/files/gdb-missing-stat_h.patch b/sys-devel/gdb/files/gdb-missing-stat_h.patch
new file mode 100644
index 0000000..ffac2f2
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-missing-stat_h.patch
@@ -0,0 +1,11 @@
+diff -Naur gdb-7.10.1.orig/gdb/gdbserver/target.h gdb-7.10.1/gdb/gdbserver/target.h
+--- gdb-7.10.1.orig/gdb/gdbserver/target.h	2015-12-05 10:16:45.000000000 -0500
++++ gdb-7.10.1/gdb/gdbserver/target.h	2016-02-11 19:21:48.039659882 -0500
+@@ -21,6 +21,7 @@
+ #ifndef TARGET_H
+ #define TARGET_H
+ 
++#include <sys/stat.h>
+ #include "target/target.h"
+ #include "target/resume.h"
+ #include "target/wait.h"

diff --git a/sys-devel/gdb/gdb-7.10.1-r99.ebuild b/sys-devel/gdb/gdb-7.10.1-r99.ebuild
index 45d11b1..c46120a 100644
--- a/sys-devel/gdb/gdb-7.10.1-r99.ebuild
+++ b/sys-devel/gdb/gdb-7.10.1-r99.ebuild
@@ -93,6 +93,7 @@ src_prepare() {
 	! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
 
 	epatch "${FILESDIR}"/${PN}-linux_nat.patch
+	epatch "${FILESDIR}"/${PN}-missing-stat_h.patch
 
 	epatch_user
 	strip-linguas -u bfd/po opcodes/po


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
@ 2016-12-06 21:01 Aric Belsito
  0 siblings, 0 replies; 5+ messages in thread
From: Aric Belsito @ 2016-12-06 21:01 UTC (permalink / raw
  To: gentoo-commits

commit:     6f9640e70a7720ce2e243e5547c8619e9e6d436e
Author:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
AuthorDate: Tue Dec  6 20:54:04 2016 +0000
Commit:     Aric Belsito <lluixhi <AT> gmail <DOT> com>
CommitDate: Tue Dec  6 20:54:04 2016 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=6f9640e7

sys-devel/gdb: Update to 7.12

Sync with upstream, drop r99 postfix

Need to verify the missing stat.h patch is actually necessary for 7.12

 sys-devel/gdb/Manifest                             |  8 +++++--
 sys-devel/gdb/files/gdb-7.11-linux_nat.patch       | 23 ++++++++++++++++++
 sys-devel/gdb/files/gdb-7.11-missing-stat_h.patch  | 11 +++++++++
 .../{gdb-7.10.1-r99.ebuild => gdb-7.10.1.ebuild}   | 18 +++++++++------
 .../gdb/{gdb-7.10.1-r99.ebuild => gdb-7.12.ebuild} | 27 ++++++++++++----------
 sys-devel/gdb/metadata.xml                         |  1 +
 6 files changed, 67 insertions(+), 21 deletions(-)

diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
index 905b9b7..1d32a27 100644
--- a/sys-devel/gdb/Manifest
+++ b/sys-devel/gdb/Manifest
@@ -1,5 +1,9 @@
+AUX gdb-7.11-linux_nat.patch 770 SHA256 9bc0a34c173c7603c91b7cc7880cee2535a785372889cff4f503c717db0d022c SHA512 d5c8ae598e2d560d28f6d8c41f61a67b448b38ebd5bccd6cfc9b24b99ece7df169d7ebe7dcf9476edf982668deae0e73f83c932323510c458049cb8cf7d47b19 WHIRLPOOL 09f903ae90ddb74a07734237a2fc1e9b01f4ccb140863287c26e2b6300ed282fab2bc873afa412ffe4e00045055e1e26a405c14b330f1f20df2929e4918c10fc
+AUX gdb-7.11-missing-stat_h.patch 405 SHA256 ca3e8d8cd37ee5a1c81275ad97fcfdc9e0dd15649926e781a0b6c6e5c5059dde SHA512 11807093bdeeb1732b4a721282c02f261d9b370f807a2432396e07aa38ec36e3bb2c5efba9e6502b6279cc03f8fb3a35f832da4183a9f0689239c0cf82953334 WHIRLPOOL 6b614d893eccf3e84f5bb52f34c20449d8bfd2383d8d317f4047edc95a1bed449642cd6865a9fd6e9da9ae908591cb221d49cf4dd076387b79c3cf34dd49fa91
 AUX gdb-linux_nat.patch 617 SHA256 dcef02741f402ad34c658a90b85667e93e1d3293fe2941acd5b6821b349a1532 SHA512 1d5ecce8c1b597f12298d17bae308e332cb0dbae56b08c3da7829ab6a473f1b20e8e6572bab45bce5942771753604b7a9541c809f2a86d4beb38ff98b0be4bfe WHIRLPOOL c1d2a91f743e04f429ec423663a090a99878229f4d4e3aa207951e1db58892648464ea50fde03d5eaf05ccf2541a8ad2a7ff67d2e86115a3e66dd9a8bd32b9b4
 AUX gdb-missing-stat_h.patch 398 SHA256 88a49f997609644866ca873653b1f7cc09f75edb33b2f32ac73c7caffa1ce8d3 SHA512 8b1d22a61cb471df7052d2215dd5d67175e1732769bde90cb992d23ef97dd7153e2ab348ec184577b9491b68184f542a3f5fe8027b280b5feb38b23353568449 WHIRLPOOL b83c3a7a1825e54f8deaf7a4068b4c1b99adb9d6c1c6ef04eef47450a12f90bcd854462703e006aa049c68fa30d7b64cbbfdca6d0f5dd578f72d6704ed23f1d2
 DIST gdb-7.10.1.tar.xz 18531436 SHA256 25c72f3d41c7c8554d61cacbeacd5f40993276d2ccdec43279ac546e3993d6d5 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 WHIRLPOOL 02936f59d3f3f8a57966c72402f1da128dd8e10e686097ffdb3a2741cc0c1831ef27f97daa047fa006ff2ae9f79ae0480f6f0dc2d3f5904190a1dade0590c837
-EBUILD gdb-7.10.1-r99.ebuild 6371 SHA256 03850d254d35037b2c1f4028b46db3a9141f3071dace6de22add9e34795bfac4 SHA512 35b7f0faefad371150599eab555028bc4a31998ed9391192ec97f4ed62862107d8a203a3a5d3679d91bce18a6ce9ec44d6bd5435b44638bfa36b4fb1f23859f1 WHIRLPOOL 31da6a2e986f78cbf49b79d61134e7126a10ae14d6729bda641f3642a47e49830c7b41dda9276478acef21b149e83b29c3ad6f5d1fbc76a840933469f6d73b96
-MISC metadata.xml 789 SHA256 f2e0873018de92fefc1201a7fa9ed40c545e77f3365c4c63a4f7a5ae1a061536 SHA512 3b8d945ea9647f732983d254e57cd4bb224a3ceafe0f2be090ec9495393453b8f4c5dc8794656b9fe30f2f9ed20e5e6d532f071f57bc2ef40f56b45de0253e99 WHIRLPOOL 087bcb96a1fee951d96d02ba8d1536dc46e9ef8cb6f8d8e964151dc5a9bb8113b800aac052d7697c8b353903a7187e19a7f756c72f1e2533e06ad33e29210de2
+DIST gdb-7.12.tar.xz 19219556 SHA256 834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94 SHA512 f610338b3a24dfb387c295431d806a0c1375e8ce51b8dd8bbfd2efc4612d0c0ed40ad4393508afca0071eca70688f62bc4f199da5e75ad16f64d91c3bc046033 WHIRLPOOL 9b4c903b27bba530cb5db722abc6358d3785e0b1f1067abaf8487c7e2b3e7cfe546f5ad16071ad29e34a27fd902a7f74171d4c7afec219ba69faae96c911cb27
+EBUILD gdb-7.10.1.ebuild 6702 SHA256 f2e400d36ae630f4a495ed8bf21fa820cf0fa0c7fb9ae9fa9180b2032622c99b SHA512 f7c405c044c7a82e25493bbce7179fd2d4ddc56a7b217e37d1150cba5d26fe9b85d557e36f77994611dcce7efd12531d6be46e4ec28f6fc863721b1da9e4a0f5 WHIRLPOOL bca9d79749e0e16ed3ab5c95e57be0a88753e1e944c3afd3f9980f45f9a7a1f5f51b68285da86530b692cc924853720ce4f3a1f75809e13cc20dcfbe9a9c5468
+EBUILD gdb-7.12.ebuild 6717 SHA256 54f6284a3a9b331e74b6a4bf09fffc51460eb577b3508e002dbb80cf7ca8bdcd SHA512 5fb92c2a334ffba75d91dd5fc878f8bb1a1e0ee9914ef2921b62bd829218f81b34e776b5c8cac2b16a7dc5d4c679d81fe20c62cf1a22d8b6aba784df1cc2c52e WHIRLPOOL 36084ecb986bf50ca83378869dd9dbc636f36352ecf86301d0ac73e5ace44ad08a943e54e0fb5d5f8c4a7fd8605aad700427b25f1cbf9cf0d219081d025b07b7
+MISC metadata.xml 914 SHA256 b7651e2c8051c8b35a3c1080d50f1ba811ea40c42e8fb8e2eefd80a2b12832ae SHA512 515a5bcd6c70fc87309cd4e3822d83e1b8fdf52e58cbf331df0c38b9096ad2410dfdad14aed100ea0a53457f57ecdf2b61b910b6a52765219815e1872872ee0c WHIRLPOOL 237a1084550bbce7ddee98681b87fdcd6207c1f6cc40ff1aad1f623a5cd47f1ba3f3c6ae8558399264d52ada246b22cef53f59e2392c376e89524d50623d9524

diff --git a/sys-devel/gdb/files/gdb-7.11-linux_nat.patch b/sys-devel/gdb/files/gdb-7.11-linux_nat.patch
new file mode 100644
index 0000000..b10b7f2
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-7.11-linux_nat.patch
@@ -0,0 +1,23 @@
+diff -Naurw gdb-7.11.orig/gdb/linux-nat.c gdb-7.11/gdb/linux-nat.c
+--- gdb-7.11.orig/gdb/linux-nat.c	2016-02-09 19:19:39.000000000 -0800
++++ gdb-7.11/gdb/linux-nat.c	2016-02-24 15:34:29.115801748 -0800
+@@ -186,6 +186,10 @@
+ #define O_LARGEFILE 0
+ #endif
+ 
++#ifndef W_STOPCODE
++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
++#endif
++
+ /* Does the current host support PTRACE_GETREGSET?  */
+ enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN;
+ 
+@@ -4850,6 +4854,6 @@
+   /* NPTL reserves the first two RT signals, but does not provide any
+      way for the debugger to query the signal numbers - fortunately
+      they don't change.  */
+-  sigaddset (set, __SIGRTMIN);
+-  sigaddset (set, __SIGRTMIN + 1);
++  sigaddset (set, SIGRTMIN);
++  sigaddset (set, SIGRTMIN + 1);
+ }

diff --git a/sys-devel/gdb/files/gdb-7.11-missing-stat_h.patch b/sys-devel/gdb/files/gdb-7.11-missing-stat_h.patch
new file mode 100644
index 0000000..a2598da
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-7.11-missing-stat_h.patch
@@ -0,0 +1,11 @@
+diff -Naur gdb-7.11.orig/gdb/gdbserver/target.h gdb-7.11/gdb/gdbserver/target.h
+--- gdb-7.11.orig/gdb/gdbserver/target.h	2016-02-09 19:19:39.000000000 -0800
++++ gdb-7.11/gdb/gdbserver/target.h	2016-02-24 15:40:02.961881411 -0800
+@@ -21,6 +21,7 @@
+ #ifndef TARGET_H
+ #define TARGET_H
+ 
++#include <sys/stat.h>
+ #include <sys/types.h> /* for mode_t */
+ #include "target/target.h"
+ #include "target/resume.h"

diff --git a/sys-devel/gdb/gdb-7.10.1-r99.ebuild b/sys-devel/gdb/gdb-7.10.1.ebuild
similarity index 91%
copy from sys-devel/gdb/gdb-7.10.1-r99.ebuild
copy to sys-devel/gdb/gdb-7.10.1.ebuild
index 7cb2dbd..3956b5d 100644
--- a/sys-devel/gdb/gdb-7.10.1-r99.ebuild
+++ b/sys-devel/gdb/gdb-7.10.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI="5"
-PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
 
 inherit flag-o-matic eutils python-single-r1
 
@@ -57,9 +57,10 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
 LICENSE="GPL-2 LGPL-2"
 SLOT="0"
 if [[ ${PV} != 9999* ]] ; then
-	KEYWORDS="amd64 arm ~mips ppc x86"
+	# alpha #562128
+	KEYWORDS="-alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
-IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
+IUSE="+client expat lzma multitarget nls +python +server test vanilla"
 REQUIRED_USE="
 	python? ( ${PYTHON_REQUIRED_USE} )
 	|| ( client server )
@@ -72,7 +73,7 @@ RDEPEND="server? ( !dev-util/gdbserver )
 		expat? ( dev-libs/expat )
 		lzma? ( app-arch/xz-utils )
 		python? ( ${PYTHON_DEPS} )
-		zlib? ( sys-libs/zlib )
+		sys-libs/zlib
 	)"
 DEPEND="${RDEPEND}
 	app-arch/xz-utils
@@ -153,13 +154,16 @@ src_configure() {
 			# For gdb itself, it'll use the system version.
 			--disable-readline
 			--with-system-readline
+			# This only disables building in the zlib subdir.
+			# For gdb itself, it'll use the system version.
+			--without-zlib
+			--with-system-zlib
 			--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
 			$(use_with expat)
 			$(use_with lzma)
 			$(use_enable nls)
 			$(use multitarget && echo --enable-targets=all)
 			$(use_with python python "${EPYTHON}")
-			$(use_with zlib)
 		)
 	fi
 
@@ -196,7 +200,7 @@ src_install() {
 		return 0
 	fi
 	# Install it by hand for now:
-	# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
+	# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
 	# Only install if it exists due to the twisted behavior (see
 	# notes in src_configure above).
 	[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay

diff --git a/sys-devel/gdb/gdb-7.10.1-r99.ebuild b/sys-devel/gdb/gdb-7.12.ebuild
similarity index 88%
rename from sys-devel/gdb/gdb-7.10.1-r99.ebuild
rename to sys-devel/gdb/gdb-7.12.ebuild
index 7cb2dbd..b4d091c 100644
--- a/sys-devel/gdb/gdb-7.10.1-r99.ebuild
+++ b/sys-devel/gdb/gdb-7.12.ebuild
@@ -1,9 +1,8 @@
 # Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Id$
 
 EAPI="5"
-PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
 
 inherit flag-o-matic eutils python-single-r1
 
@@ -51,15 +50,16 @@ esac
 
 PATCH_VER=""
 DESCRIPTION="GNU debugger"
-HOMEPAGE="http://sourceware.org/gdb/"
+HOMEPAGE="https://sourceware.org/gdb/"
 SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
 
 LICENSE="GPL-2 LGPL-2"
 SLOT="0"
 if [[ ${PV} != 9999* ]] ; then
-	KEYWORDS="amd64 arm ~mips ppc x86"
+	# alpha #562128
+	KEYWORDS="-alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
-IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
+IUSE="+client lzma multitarget nls +python +server test vanilla xml"
 REQUIRED_USE="
 	python? ( ${PYTHON_REQUIRED_USE} )
 	|| ( client server )
@@ -69,10 +69,10 @@ RDEPEND="server? ( !dev-util/gdbserver )
 	client? (
 		>=sys-libs/ncurses-5.2-r2:0=
 		sys-libs/readline:0=
-		expat? ( dev-libs/expat )
 		lzma? ( app-arch/xz-utils )
 		python? ( ${PYTHON_DEPS} )
-		zlib? ( sys-libs/zlib )
+		xml? ( dev-libs/expat )
+		sys-libs/zlib
 	)"
 DEPEND="${RDEPEND}
 	app-arch/xz-utils
@@ -92,8 +92,8 @@ src_prepare() {
 	[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
 	! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
 
-	epatch "${FILESDIR}"/${PN}-linux_nat.patch
-	epatch "${FILESDIR}"/${PN}-missing-stat_h.patch
+	epatch "${FILESDIR}"/${PN}-7.11-linux_nat.patch
+	epatch "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch
 
 	epatch_user
 	strip-linguas -u bfd/po opcodes/po
@@ -153,13 +153,16 @@ src_configure() {
 			# For gdb itself, it'll use the system version.
 			--disable-readline
 			--with-system-readline
+			# This only disables building in the zlib subdir.
+			# For gdb itself, it'll use the system version.
+			--without-zlib
+			--with-system-zlib
 			--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
-			$(use_with expat)
+			$(use_with xml expat)
 			$(use_with lzma)
 			$(use_enable nls)
 			$(use multitarget && echo --enable-targets=all)
 			$(use_with python python "${EPYTHON}")
-			$(use_with zlib)
 		)
 	fi
 
@@ -196,7 +199,7 @@ src_install() {
 		return 0
 	fi
 	# Install it by hand for now:
-	# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
+	# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
 	# Only install if it exists due to the twisted behavior (see
 	# notes in src_configure above).
 	[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay

diff --git a/sys-devel/gdb/metadata.xml b/sys-devel/gdb/metadata.xml
index e2ea101..d11b1ea 100644
--- a/sys-devel/gdb/metadata.xml
+++ b/sys-devel/gdb/metadata.xml
@@ -11,6 +11,7 @@
  <flag name="multitarget">Support all known targets in one gdb binary</flag>
  <flag name="python">Enable support for the new internal scripting language, as well as extended pretty printers</flag>
  <flag name="server">Install the "gdbserver" program (useful for embedded/remote targets)</flag>
+ <flag name="xml">Support parsing XML data files needed (at least) for cpu features, memory maps, and syscall tracing</flag>
 </use>
 <upstream>
  <remote-id type="cpe">cpe:/a:gnu:gdb</remote-id>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
@ 2021-02-24 14:30 Jory Pratt
  0 siblings, 0 replies; 5+ messages in thread
From: Jory Pratt @ 2021-02-24 14:30 UTC (permalink / raw
  To: gentoo-commits

commit:     f4b358a583740ab0f0d3e5f43ac61723cc9b3568
Author:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 24 14:30:21 2021 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Wed Feb 24 14:30:21 2021 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=f4b358a5

sys-devel/gdb: fix musl build

Closes:https://github.com/gentoo/musl/issues/377

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>

 sys-devel/gdb/Manifest                            |   1 +
 sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch |  13 ++
 sys-devel/gdb/files/musl-signals.patch            |  16 ++
 sys-devel/gdb/files/ppc-musl.patch                |  93 ++++++++
 sys-devel/gdb/files/ppc-ptregs.patch              |  10 +
 sys-devel/gdb/gdb-10.1.ebuild                     | 261 ++++++++++++++++++++++
 sys-devel/gdb/metadata.xml                        |  21 ++
 7 files changed, 415 insertions(+)

diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
new file mode 100644
index 0000000..8fa3bb7
--- /dev/null
+++ b/sys-devel/gdb/Manifest
@@ -0,0 +1 @@
+DIST gdb-10.1.tar.xz 21507112 BLAKE2B 69d79cd667ecb6e936b41a03817ade5dd9b761f97bc123d668b5f968d123c37d048fc8ec1289151e989f01bb01a43cc3d8b5b54f1807f1e3eb5f43e6bf0aa55b SHA512 0dc54380435c6853db60f1e388b94836d294dfa9ad7f518385a27db4edd03cb970f8717d5f1e9c9a0d4a33d7fcf91bc2e5d6c9cf9e4b561dcc74e65b806c1537

diff --git a/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch b/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch
new file mode 100644
index 0000000..06aa608
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch
@@ -0,0 +1,13 @@
+Enable verbose build. By default gdb ignores even --disable-silent-rules.
+Override verbosity back to non-silent.
+
+https://bugs.gentoo.org/695936
+--- a/gdb/silent-rules.mk
++++ b/gdb/silent-rules.mk
+@@ -1,5 +1,4 @@
+-# If V is undefined or V=0 is specified, use the silent/verbose/compact mode.
+-V ?= 0
++V ?= 1
+ ifeq ($(V),0)
+ ECHO_CXX =    @echo "  CXX    $@";
+ ECHO_CXXLD =  @echo "  CXXLD  $@";

diff --git a/sys-devel/gdb/files/musl-signals.patch b/sys-devel/gdb/files/musl-signals.patch
new file mode 100644
index 0000000..e04ed0a
--- /dev/null
+++ b/sys-devel/gdb/files/musl-signals.patch
@@ -0,0 +1,16 @@
+--- a/gdbsupport/signals.cc	2020-02-08 12:50:14.000000000 +0000
++++ b/gdbsupport/signals.cc	2020-02-11 13:08:56.482694697 +0000
+@@ -31,6 +31,13 @@
+    _available_ realtime signal, not the lowest supported; glibc takes
+    several for its own use.  */
+
++#ifndef __SIGRTMIN
++# define __SIGRTMIN 32
++#endif
++#ifndef __SIGRTMAX
++# define __SIGRTMAX _NSIG
++#endif
++
+ #ifndef REALTIME_LO
+ # if defined(__SIGRTMIN)
+ #  define REALTIME_LO __SIGRTMIN

diff --git a/sys-devel/gdb/files/ppc-musl.patch b/sys-devel/gdb/files/ppc-musl.patch
new file mode 100644
index 0000000..70cfa18
--- /dev/null
+++ b/sys-devel/gdb/files/ppc-musl.patch
@@ -0,0 +1,93 @@
+--- a/gdb/nat/ppc-linux.h
++++ b/gdb/nat/ppc-linux.h
+@@ -18,7 +18,90 @@
+ #ifndef PPC_LINUX_H
+ #define PPC_LINUX_H 1
+ 
++#if defined(__GLIBC__) || defined(__UCLIBC__)
+ #include <asm/ptrace.h>
++#else // Musl
++// Do not include ptrace.h from Linux headers and since
++// Musl does not define PT_*, define them:
++
++#define PT_R0   0
++#define PT_R1   1
++#define PT_R2   2
++#define PT_R3   3
++#define PT_R4   4
++#define PT_R5   5
++#define PT_R6   6
++#define PT_R7   7
++#define PT_R8   8
++#define PT_R9   9
++#define PT_R10  10
++#define PT_R11  11
++#define PT_R12  12
++#define PT_R13  13
++#define PT_R14  14
++#define PT_R15  15
++#define PT_R16  16
++#define PT_R17  17
++#define PT_R18  18
++#define PT_R19  19
++#define PT_R20  20
++#define PT_R21  21
++#define PT_R22  22
++#define PT_R23  23
++#define PT_R24  24
++#define PT_R25  25
++#define PT_R26  26
++#define PT_R27  27
++#define PT_R28  28
++#define PT_R29  29
++#define PT_R30  30
++#define PT_R31  31
++
++#define PT_NIP  32
++#define PT_MSR  33
++#define PT_ORIG_R3 34
++#define PT_CTR  35
++#define PT_LNK  36
++#define PT_XER  37
++#define PT_CCR  38
++#ifndef __powerpc64__
++#define PT_MQ   39
++#else
++#define PT_SOFTE 39
++#endif
++#define PT_TRAP 40
++#define PT_DAR  41
++#define PT_DSISR 42
++#define PT_RESULT 43
++#define PT_DSCR 44
++#define PT_REGS_COUNT 44
++
++#define PT_FPR0 48      /* each FP reg occupies 2 slots in this space */
++
++#ifndef __powerpc64__
++
++#define PT_FPR31 (PT_FPR0 + 2*31)
++#define PT_FPSCR (PT_FPR0 + 2*32 + 1)
++
++#else /* __powerpc64__ */
++
++#define PT_FPSCR (PT_FPR0 + 32) /* each FP reg occupies 1 slot in 64-bit space */
++
++
++#define PT_VR0 82       /* each Vector reg occupies 2 slots in 64-bit */
++#define PT_VSCR (PT_VR0 + 32*2 + 1)
++#define PT_VRSAVE (PT_VR0 + 33*2)
++
++
++/*
++ * Only store first 32 VSRs here. The second 32 VSRs in VR0-31
++  */
++#define PT_VSR0 150     /* each VSR reg occupies 2 slots in 64-bit */
++#define PT_VSR31 (PT_VSR0 + 2*31)
++#endif /* __powerpc64__ */
++
++#endif // Libc 
++
+ #include <asm/cputable.h>
+ 
+ /* This sometimes isn't defined.  */

diff --git a/sys-devel/gdb/files/ppc-ptregs.patch b/sys-devel/gdb/files/ppc-ptregs.patch
new file mode 100644
index 0000000..da131ab
--- /dev/null
+++ b/sys-devel/gdb/files/ppc-ptregs.patch
@@ -0,0 +1,10 @@
+--- a/gdbserver/linux-ppc-low.cc
++++ b/gdbserver/linux-ppc-low.cc
+@@ -21,7 +21,6 @@
+ #include "linux-low.h"
+ 
+ #include <elf.h>
+-#include <asm/ptrace.h>
+ 
+ #include "nat/ppc-linux.h"
+ #include "linux-ppc-tdesc.h"

diff --git a/sys-devel/gdb/gdb-10.1.ebuild b/sys-devel/gdb/gdb-10.1.ebuild
new file mode 100644
index 0000000..5c0223c
--- /dev/null
+++ b/sys-devel/gdb/gdb-10.1.ebuild
@@ -0,0 +1,261 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit eutils flag-o-matic python-single-r1 toolchain-funcs
+
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+	if [[ ${CATEGORY} == cross-* ]] ; then
+		export CTARGET=${CATEGORY#cross-}
+	fi
+fi
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
+
+case ${PV} in
+9999*)
+	# live git tree
+	EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
+	inherit git-r3
+	SRC_URI=""
+	;;
+*.*.50.2???????)
+	# weekly snapshots
+	SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
+	;;
+*)
+	# Normal upstream release
+	SRC_URI="mirror://gnu/gdb/${P}.tar.xz
+		ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
+	;;
+esac
+
+PATCH_VER=""
+PATCH_DEV=""
+DESCRIPTION="GNU debugger"
+HOMEPAGE="https://sourceware.org/gdb/"
+SRC_URI="${SRC_URI}
+	${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz}
+	${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
+"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+if [[ ${PV} != 9999* ]] ; then
+	KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 x86"
+fi
+IUSE="cet lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
+REQUIRED_USE="
+	python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+# ia64 kernel crashes when gdb testsuite is running
+RESTRICT="
+	ia64? ( test )
+
+	!test? ( test )
+"
+
+RDEPEND="
+	dev-libs/mpfr:0=
+	>=sys-libs/ncurses-5.2-r2:0=
+	>=sys-libs/readline-7:0=
+	sys-libs/zlib
+	lzma? ( app-arch/xz-utils )
+	python? ( ${PYTHON_DEPS} )
+	xml? ( dev-libs/expat )
+	source-highlight? (
+		dev-util/source-highlight
+	)
+	xxhash? (
+		dev-libs/xxhash
+	)
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	app-arch/xz-utils
+	sys-apps/texinfo
+	virtual/yacc
+	nls? ( sys-devel/gettext )
+	test? ( dev-util/dejagnu )
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
+	"${FILESDIR}"/musl-signals.patch
+	"${FILESDIR}"/ppc-musl.patch
+	"${FILESDIR}"/ppc-ptregs.patch
+
+)
+
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	default
+
+	strip-linguas -u bfd/po opcodes/po
+	export CC_FOR_BUILD=$(tc-getBUILD_CC)
+
+	# avoid using ancient termcap from host on Prefix systems
+	sed -i -e 's/termcap tinfow/tinfow/g' \
+		gdb/configure{.ac,} || die
+}
+
+gdb_branding() {
+	printf "Gentoo ${PV} "
+	if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
+		printf "p${PATCH_VER}"
+	else
+		printf "vanilla"
+	fi
+	[[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
+}
+
+src_configure() {
+	strip-unsupported-flags
+
+	local myconf=(
+		# portage's econf() does not detect presence of --d-d-t
+		# because it greps only top-level ./configure. But not
+		# gnulib's or gdb's configure.
+		--disable-dependency-tracking
+
+		--with-pkgversion="$(gdb_branding)"
+		--with-bugurl='https://bugs.gentoo.org/'
+		--disable-werror
+		# Disable modules that are in a combined binutils/gdb tree. #490566
+		--disable-{binutils,etc,gas,gold,gprof,ld}
+
+		# avoid automagic dependency on (currently prefix) systems
+		# systems with debuginfod library, bug #754753
+		--without-debuginfod
+
+		# Allow user to opt into CET for host libraries.
+		# Ideally we would like automagic-or-disabled here.
+		# But the check does not quite work on i686: bug #760926.
+		$(use_enable cet)
+	)
+	local sysroot="${EPREFIX}/usr/${CTARGET}"
+	is_cross && myconf+=(
+		--with-sysroot="${sysroot}"
+		--includedir="${sysroot}/usr/include"
+		--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
+	)
+
+	# gdbserver only works for native targets (CHOST==CTARGET).
+	# it also doesn't support all targets, so rather than duplicate
+	# the target list (which changes between versions), use the
+	# "auto" value when things are turned on, which is triggered
+	# whenever no --enable or --disable is given
+	if is_cross || use !server ; then
+		myconf+=( --disable-gdbserver )
+	fi
+
+	myconf+=(
+		--enable-64-bit-bfd
+		--disable-install-libbfd
+		--disable-install-libiberty
+		# Disable guile for now as it requires guile-2.x #562902
+		--without-guile
+		--enable-obsolete
+		# This only disables building in the readline subdir.
+		# For gdb itself, it'll use the system version.
+		--disable-readline
+		--with-system-readline
+		# This only disables building in the zlib subdir.
+		# For gdb itself, it'll use the system version.
+		--without-zlib
+		--with-system-zlib
+		--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
+		$(use_with xml expat)
+		$(use_with lzma)
+		$(use_enable nls)
+		$(use_enable source-highlight)
+		$(use multitarget && echo --enable-targets=all)
+		$(use_with python python "${EPYTHON}")
+		$(use_with xxhash)
+	)
+	if use sparc-solaris || use x86-solaris ; then
+		# disable largefile support
+		# https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
+		myconf+=( --disable-largefile )
+	fi
+
+	# source-highlight is detected with pkg-config: bug #716558
+	export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)"
+
+	econf "${myconf[@]}"
+}
+
+src_install() {
+	default
+	find "${ED}"/usr -name libiberty.a -delete || die
+
+	# Delete translations that conflict with binutils-libs. #528088
+	# Note: Should figure out how to store these in an internal gdb dir.
+	if use nls ; then
+		find "${ED}" \
+			-regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
+			-delete || die
+	fi
+
+	# Don't install docs when building a cross-gdb
+	if [[ ${CTARGET} != ${CHOST} ]] ; then
+		rm -rf "${ED}"/usr/share/{doc,info,locale} || die
+		local f
+		for f in "${ED}"/usr/share/man/*/* ; do
+			if [[ ${f##*/} != ${CTARGET}-* ]] ; then
+				mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
+			fi
+		done
+		return 0
+	fi
+	# Install it by hand for now:
+	# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
+	# Only install if it exists due to the twisted behavior (see
+	# notes in src_configure above).
+	[[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay
+
+	docinto gdb
+	dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
+		gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
+	docinto sim
+	dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
+	if use server ; then
+		docinto gdbserver
+		dodoc gdbserver/{ChangeLog,README}
+	fi
+
+	if [[ -n ${PATCH_VER} ]] ; then
+		dodoc "${WORKDIR}"/extra/gdbinit.sample
+	fi
+
+	# Remove shared info pages
+	rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
+
+	# gcore is part of ubin on freebsd
+	if [[ ${CHOST} == *-freebsd* ]]; then
+		rm "${ED}"/usr/bin/gcore || die
+	fi
+
+	if use python; then
+		python_optimize "${ED}"/usr/share/gdb/python/gdb
+	fi
+}
+
+pkg_postinst() {
+	# portage sucks and doesnt unmerge files in /etc
+	rm -vf "${EROOT}"/etc/skel/.gdbinit
+
+	if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
+		ewarn "gdb is unable to get a mach task port when installed by Prefix"
+		ewarn "Portage, unprivileged.  To make gdb fully functional you'll"
+		ewarn "have to perform the following steps:"
+		ewarn "  % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
+		ewarn "  % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
+	fi
+}

diff --git a/sys-devel/gdb/metadata.xml b/sys-devel/gdb/metadata.xml
new file mode 100644
index 0000000..36cae41
--- /dev/null
+++ b/sys-devel/gdb/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+</maintainer>
+<use>
+ <flag name="cet">Enable Intel Control-flow Enforcement Technology.</flag>
+ <flag name="lzma">Support lzma compression in ELF debug info</flag>
+ <flag name="multitarget">Support all known targets in one gdb binary</flag>
+ <flag name="python">Enable support for the new internal scripting language, as well as extended pretty printers</flag>
+ <flag name="server">Install the "gdbserver" program (useful for embedded/remote targets)</flag>
+ <flag name="source-highlight">Enable listing highlighting via <pkg>dev-util/source-highlight</pkg></flag>
+ <flag name="xml">Support parsing XML data files needed (at least) for cpu features, memory maps, and syscall tracing</flag>
+ <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> to speed up internal hashing.</flag>
+</use>
+<upstream>
+ <remote-id type="cpe">cpe:/a:gnu:gdb</remote-id>
+</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
@ 2023-05-31  0:32 Sam James
  0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2023-05-31  0:32 UTC (permalink / raw
  To: gentoo-commits

commit:     07e8f090c6b07aee3c4853c27694d18a198d46d7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 31 00:31:20 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 31 00:31:23 2023 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=07e8f090

sys-devel/gdb: treeclean

::gentoo works fine.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/gdb/Manifest                            |   1 -
 sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch |  13 --
 sys-devel/gdb/files/musl-signals.patch            |  16 --
 sys-devel/gdb/files/ppc-musl.patch                |  93 --------
 sys-devel/gdb/files/ppc-ptregs.patch              |  10 -
 sys-devel/gdb/gdb-10.1.ebuild                     | 261 ----------------------
 sys-devel/gdb/metadata.xml                        |  21 --
 7 files changed, 415 deletions(-)

diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
deleted file mode 100644
index 8fa3bb78..00000000
--- a/sys-devel/gdb/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST gdb-10.1.tar.xz 21507112 BLAKE2B 69d79cd667ecb6e936b41a03817ade5dd9b761f97bc123d668b5f968d123c37d048fc8ec1289151e989f01bb01a43cc3d8b5b54f1807f1e3eb5f43e6bf0aa55b SHA512 0dc54380435c6853db60f1e388b94836d294dfa9ad7f518385a27db4edd03cb970f8717d5f1e9c9a0d4a33d7fcf91bc2e5d6c9cf9e4b561dcc74e65b806c1537

diff --git a/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch b/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch
deleted file mode 100644
index 06aa6084..00000000
--- a/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Enable verbose build. By default gdb ignores even --disable-silent-rules.
-Override verbosity back to non-silent.
-
-https://bugs.gentoo.org/695936
---- a/gdb/silent-rules.mk
-+++ b/gdb/silent-rules.mk
-@@ -1,5 +1,4 @@
--# If V is undefined or V=0 is specified, use the silent/verbose/compact mode.
--V ?= 0
-+V ?= 1
- ifeq ($(V),0)
- ECHO_CXX =    @echo "  CXX    $@";
- ECHO_CXXLD =  @echo "  CXXLD  $@";

diff --git a/sys-devel/gdb/files/musl-signals.patch b/sys-devel/gdb/files/musl-signals.patch
deleted file mode 100644
index e04ed0a1..00000000
--- a/sys-devel/gdb/files/musl-signals.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/gdbsupport/signals.cc	2020-02-08 12:50:14.000000000 +0000
-+++ b/gdbsupport/signals.cc	2020-02-11 13:08:56.482694697 +0000
-@@ -31,6 +31,13 @@
-    _available_ realtime signal, not the lowest supported; glibc takes
-    several for its own use.  */
-
-+#ifndef __SIGRTMIN
-+# define __SIGRTMIN 32
-+#endif
-+#ifndef __SIGRTMAX
-+# define __SIGRTMAX _NSIG
-+#endif
-+
- #ifndef REALTIME_LO
- # if defined(__SIGRTMIN)
- #  define REALTIME_LO __SIGRTMIN

diff --git a/sys-devel/gdb/files/ppc-musl.patch b/sys-devel/gdb/files/ppc-musl.patch
deleted file mode 100644
index 70cfa18e..00000000
--- a/sys-devel/gdb/files/ppc-musl.patch
+++ /dev/null
@@ -1,93 +0,0 @@
---- a/gdb/nat/ppc-linux.h
-+++ b/gdb/nat/ppc-linux.h
-@@ -18,7 +18,90 @@
- #ifndef PPC_LINUX_H
- #define PPC_LINUX_H 1
- 
-+#if defined(__GLIBC__) || defined(__UCLIBC__)
- #include <asm/ptrace.h>
-+#else // Musl
-+// Do not include ptrace.h from Linux headers and since
-+// Musl does not define PT_*, define them:
-+
-+#define PT_R0   0
-+#define PT_R1   1
-+#define PT_R2   2
-+#define PT_R3   3
-+#define PT_R4   4
-+#define PT_R5   5
-+#define PT_R6   6
-+#define PT_R7   7
-+#define PT_R8   8
-+#define PT_R9   9
-+#define PT_R10  10
-+#define PT_R11  11
-+#define PT_R12  12
-+#define PT_R13  13
-+#define PT_R14  14
-+#define PT_R15  15
-+#define PT_R16  16
-+#define PT_R17  17
-+#define PT_R18  18
-+#define PT_R19  19
-+#define PT_R20  20
-+#define PT_R21  21
-+#define PT_R22  22
-+#define PT_R23  23
-+#define PT_R24  24
-+#define PT_R25  25
-+#define PT_R26  26
-+#define PT_R27  27
-+#define PT_R28  28
-+#define PT_R29  29
-+#define PT_R30  30
-+#define PT_R31  31
-+
-+#define PT_NIP  32
-+#define PT_MSR  33
-+#define PT_ORIG_R3 34
-+#define PT_CTR  35
-+#define PT_LNK  36
-+#define PT_XER  37
-+#define PT_CCR  38
-+#ifndef __powerpc64__
-+#define PT_MQ   39
-+#else
-+#define PT_SOFTE 39
-+#endif
-+#define PT_TRAP 40
-+#define PT_DAR  41
-+#define PT_DSISR 42
-+#define PT_RESULT 43
-+#define PT_DSCR 44
-+#define PT_REGS_COUNT 44
-+
-+#define PT_FPR0 48      /* each FP reg occupies 2 slots in this space */
-+
-+#ifndef __powerpc64__
-+
-+#define PT_FPR31 (PT_FPR0 + 2*31)
-+#define PT_FPSCR (PT_FPR0 + 2*32 + 1)
-+
-+#else /* __powerpc64__ */
-+
-+#define PT_FPSCR (PT_FPR0 + 32) /* each FP reg occupies 1 slot in 64-bit space */
-+
-+
-+#define PT_VR0 82       /* each Vector reg occupies 2 slots in 64-bit */
-+#define PT_VSCR (PT_VR0 + 32*2 + 1)
-+#define PT_VRSAVE (PT_VR0 + 33*2)
-+
-+
-+/*
-+ * Only store first 32 VSRs here. The second 32 VSRs in VR0-31
-+  */
-+#define PT_VSR0 150     /* each VSR reg occupies 2 slots in 64-bit */
-+#define PT_VSR31 (PT_VSR0 + 2*31)
-+#endif /* __powerpc64__ */
-+
-+#endif // Libc 
-+
- #include <asm/cputable.h>
- 
- /* This sometimes isn't defined.  */

diff --git a/sys-devel/gdb/files/ppc-ptregs.patch b/sys-devel/gdb/files/ppc-ptregs.patch
deleted file mode 100644
index da131ab4..00000000
--- a/sys-devel/gdb/files/ppc-ptregs.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/gdbserver/linux-ppc-low.cc
-+++ b/gdbserver/linux-ppc-low.cc
-@@ -21,7 +21,6 @@
- #include "linux-low.h"
- 
- #include <elf.h>
--#include <asm/ptrace.h>
- 
- #include "nat/ppc-linux.h"
- #include "linux-ppc-tdesc.h"

diff --git a/sys-devel/gdb/gdb-10.1.ebuild b/sys-devel/gdb/gdb-10.1.ebuild
deleted file mode 100644
index 44ac1261..00000000
--- a/sys-devel/gdb/gdb-10.1.ebuild
+++ /dev/null
@@ -1,261 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
-
-inherit eutils flag-o-matic python-single-r1 toolchain-funcs
-
-export CTARGET=${CTARGET:-${CHOST}}
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-	if [[ ${CATEGORY} == cross-* ]] ; then
-		export CTARGET=${CATEGORY#cross-}
-	fi
-fi
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
-
-case ${PV} in
-9999*)
-	# live git tree
-	EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
-	inherit git-r3
-	SRC_URI=""
-	;;
-*.*.50.2???????)
-	# weekly snapshots
-	SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
-	;;
-*)
-	# Normal upstream release
-	SRC_URI="mirror://gnu/gdb/${P}.tar.xz
-		ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
-	;;
-esac
-
-PATCH_VER=""
-PATCH_DEV=""
-DESCRIPTION="GNU debugger"
-HOMEPAGE="https://sourceware.org/gdb/"
-SRC_URI="${SRC_URI}
-	${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz}
-	${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
-"
-
-LICENSE="GPL-2 LGPL-2"
-SLOT="0"
-if [[ ${PV} != 9999* ]] ; then
-	KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 x86"
-fi
-IUSE="cet lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
-REQUIRED_USE="
-	python? ( ${PYTHON_REQUIRED_USE} )
-"
-
-# ia64 kernel crashes when gdb testsuite is running
-RESTRICT="
-	ia64? ( test )
-
-	!test? ( test )
-"
-
-RDEPEND="
-	dev-libs/mpfr:0=
-	>=sys-libs/ncurses-5.2-r2:0=
-	>=sys-libs/readline-7:0=
-	sys-libs/zlib
-	lzma? ( app-arch/xz-utils )
-	python? ( ${PYTHON_DEPS} )
-	xml? ( dev-libs/expat )
-	source-highlight? (
-		dev-util/source-highlight
-	)
-	xxhash? (
-		dev-libs/xxhash
-	)
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	app-arch/xz-utils
-	sys-apps/texinfo
-	app-alternatives/yacc
-	nls? ( sys-devel/gettext )
-	test? ( dev-util/dejagnu )
-"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
-	"${FILESDIR}"/musl-signals.patch
-	"${FILESDIR}"/ppc-musl.patch
-	"${FILESDIR}"/ppc-ptregs.patch
-
-)
-
-pkg_setup() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	default
-
-	strip-linguas -u bfd/po opcodes/po
-	export CC_FOR_BUILD=$(tc-getBUILD_CC)
-
-	# avoid using ancient termcap from host on Prefix systems
-	sed -i -e 's/termcap tinfow/tinfow/g' \
-		gdb/configure{.ac,} || die
-}
-
-gdb_branding() {
-	printf "Gentoo ${PV} "
-	if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
-		printf "p${PATCH_VER}"
-	else
-		printf "vanilla"
-	fi
-	[[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
-}
-
-src_configure() {
-	strip-unsupported-flags
-
-	local myconf=(
-		# portage's econf() does not detect presence of --d-d-t
-		# because it greps only top-level ./configure. But not
-		# gnulib's or gdb's configure.
-		--disable-dependency-tracking
-
-		--with-pkgversion="$(gdb_branding)"
-		--with-bugurl='https://bugs.gentoo.org/'
-		--disable-werror
-		# Disable modules that are in a combined binutils/gdb tree. #490566
-		--disable-{binutils,etc,gas,gold,gprof,ld}
-
-		# avoid automagic dependency on (currently prefix) systems
-		# systems with debuginfod library, bug #754753
-		--without-debuginfod
-
-		# Allow user to opt into CET for host libraries.
-		# Ideally we would like automagic-or-disabled here.
-		# But the check does not quite work on i686: bug #760926.
-		$(use_enable cet)
-	)
-	local sysroot="${EPREFIX}/usr/${CTARGET}"
-	is_cross && myconf+=(
-		--with-sysroot="${sysroot}"
-		--includedir="${sysroot}/usr/include"
-		--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
-	)
-
-	# gdbserver only works for native targets (CHOST==CTARGET).
-	# it also doesn't support all targets, so rather than duplicate
-	# the target list (which changes between versions), use the
-	# "auto" value when things are turned on, which is triggered
-	# whenever no --enable or --disable is given
-	if is_cross || use !server ; then
-		myconf+=( --disable-gdbserver )
-	fi
-
-	myconf+=(
-		--enable-64-bit-bfd
-		--disable-install-libbfd
-		--disable-install-libiberty
-		# Disable guile for now as it requires guile-2.x #562902
-		--without-guile
-		--enable-obsolete
-		# This only disables building in the readline subdir.
-		# For gdb itself, it'll use the system version.
-		--disable-readline
-		--with-system-readline
-		# This only disables building in the zlib subdir.
-		# For gdb itself, it'll use the system version.
-		--without-zlib
-		--with-system-zlib
-		--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
-		$(use_with xml expat)
-		$(use_with lzma)
-		$(use_enable nls)
-		$(use_enable source-highlight)
-		$(use multitarget && echo --enable-targets=all)
-		$(use_with python python "${EPYTHON}")
-		$(use_with xxhash)
-	)
-	if use sparc-solaris || use x86-solaris ; then
-		# disable largefile support
-		# https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
-		myconf+=( --disable-largefile )
-	fi
-
-	# source-highlight is detected with pkg-config: bug #716558
-	export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)"
-
-	econf "${myconf[@]}"
-}
-
-src_install() {
-	default
-	find "${ED}"/usr -name libiberty.a -delete || die
-
-	# Delete translations that conflict with binutils-libs. #528088
-	# Note: Should figure out how to store these in an internal gdb dir.
-	if use nls ; then
-		find "${ED}" \
-			-regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
-			-delete || die
-	fi
-
-	# Don't install docs when building a cross-gdb
-	if [[ ${CTARGET} != ${CHOST} ]] ; then
-		rm -rf "${ED}"/usr/share/{doc,info,locale} || die
-		local f
-		for f in "${ED}"/usr/share/man/*/* ; do
-			if [[ ${f##*/} != ${CTARGET}-* ]] ; then
-				mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
-			fi
-		done
-		return 0
-	fi
-	# Install it by hand for now:
-	# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
-	# Only install if it exists due to the twisted behavior (see
-	# notes in src_configure above).
-	[[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay
-
-	docinto gdb
-	dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
-		gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
-	docinto sim
-	dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
-	if use server ; then
-		docinto gdbserver
-		dodoc gdbserver/{ChangeLog,README}
-	fi
-
-	if [[ -n ${PATCH_VER} ]] ; then
-		dodoc "${WORKDIR}"/extra/gdbinit.sample
-	fi
-
-	# Remove shared info pages
-	rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
-
-	# gcore is part of ubin on freebsd
-	if [[ ${CHOST} == *-freebsd* ]]; then
-		rm "${ED}"/usr/bin/gcore || die
-	fi
-
-	if use python; then
-		python_optimize "${ED}"/usr/share/gdb/python/gdb
-	fi
-}
-
-pkg_postinst() {
-	# portage sucks and doesnt unmerge files in /etc
-	rm -vf "${EROOT}"/etc/skel/.gdbinit
-
-	if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
-		ewarn "gdb is unable to get a mach task port when installed by Prefix"
-		ewarn "Portage, unprivileged.  To make gdb fully functional you'll"
-		ewarn "have to perform the following steps:"
-		ewarn "  % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
-		ewarn "  % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
-	fi
-}

diff --git a/sys-devel/gdb/metadata.xml b/sys-devel/gdb/metadata.xml
deleted file mode 100644
index bcceccef..00000000
--- a/sys-devel/gdb/metadata.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
- <email>toolchain@gentoo.org</email>
- <name>Gentoo Toolchain Project</name>
-</maintainer>
-<use>
- <flag name="cet">Enable Intel Control-flow Enforcement Technology.</flag>
- <flag name="lzma">Support lzma compression in ELF debug info</flag>
- <flag name="multitarget">Support all known targets in one gdb binary</flag>
- <flag name="python">Enable support for the new internal scripting language, as well as extended pretty printers</flag>
- <flag name="server">Install the "gdbserver" program (useful for embedded/remote targets)</flag>
- <flag name="source-highlight">Enable listing highlighting via <pkg>dev-util/source-highlight</pkg></flag>
- <flag name="xml">Support parsing XML data files needed (at least) for cpu features, memory maps, and syscall tracing</flag>
- <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> to speed up internal hashing.</flag>
-</use>
-<upstream>
- <remote-id type="cpe">cpe:/a:gnu:gdb</remote-id>
-</upstream>
-</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-31  0:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-24 14:30 [gentoo-commits] proj/musl:master commit in: sys-devel/gdb/files/, sys-devel/gdb/ Jory Pratt
  -- strict thread matches above, loose matches on Subject: below --
2023-05-31  0:32 Sam James
2016-12-06 21:01 Aric Belsito
2016-02-12  0:50 Anthony G. Basile
2016-01-22 17:55 Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox