summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-09 04:27:54 +0100
committerSam James <sam@gentoo.org>2022-06-09 04:27:54 +0100
commit33376b42c405654ceb76b3e17d7deef6f5baafb1 (patch)
treec22ed3418d9bae3602c800de8600e5c87fdb5b76 /sys-devel
parentdev-python/python-magic: Keyword 0.4.27 s390, #844154 (diff)
downloadgentoo-33376b42c405654ceb76b3e17d7deef6f5baafb1.tar.gz
gentoo-33376b42c405654ceb76b3e17d7deef6f5baafb1.tar.bz2
gentoo-33376b42c405654ceb76b3e17d7deef6f5baafb1.zip
sys-devel/gdb: verbose logs, use output synchronisation
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gdb/gdb-11.2.ebuild16
-rw-r--r--sys-devel/gdb/gdb-12.1.ebuild13
-rw-r--r--sys-devel/gdb/gdb-9999.ebuild13
3 files changed, 37 insertions, 5 deletions
diff --git a/sys-devel/gdb/gdb-11.2.ebuild b/sys-devel/gdb/gdb-11.2.ebuild
index 393a0a0bf8c6..7d760267b2b9 100644
--- a/sys-devel/gdb/gdb-11.2.ebuild
+++ b/sys-devel/gdb/gdb-11.2.ebuild
@@ -57,6 +57,9 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# See e.g. https://sourceware.org/gdb/wiki/TestingGDB.
# As of 11.2, on amd64: "# of unexpected failures 8600"
# ia64 kernel crashes when gdb testsuite is running
+# in fact, gdb's test suite needs some work to get passing.
+# See e.g. https://sourceware.org/gdb/wiki/TestingGDB.
+# As of 11.2, on amd64: "# of unexpected failures 8600"
RESTRICT="
ia64? ( test )
!test? ( test )
@@ -124,6 +127,11 @@ gdb_branding() {
src_configure() {
strip-unsupported-flags
+ # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html
+ # Avoid really confusing logs from subconfigure spam, makes logs far
+ # more legible.
+ MAKEOPTS="--output-sync=line ${MAKEOPTS}"
+
local myconf=(
# portage's econf() does not detect presence of --d-d-t
# because it greps only top-level ./configure. But not
@@ -140,6 +148,8 @@ src_configure() {
# systems with debuginfod library, bug #754753
--without-debuginfod
+ $(use_enable test unit-tests)
+
# 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.
@@ -204,8 +214,12 @@ src_configure() {
econf "${myconf[@]}"
}
+src_compile() {
+ emake V=1
+}
+
src_install() {
- default
+ emake V=1 DESTDIR="${D}" install
find "${ED}"/usr -name libiberty.a -delete || die
diff --git a/sys-devel/gdb/gdb-12.1.ebuild b/sys-devel/gdb/gdb-12.1.ebuild
index 4c59318f5d81..58cd1344578f 100644
--- a/sys-devel/gdb/gdb-12.1.ebuild
+++ b/sys-devel/gdb/gdb-12.1.ebuild
@@ -128,6 +128,11 @@ gdb_branding() {
src_configure() {
strip-unsupported-flags
+ # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html
+ # Avoid really confusing logs from subconfigure spam, makes logs far
+ # more legible.
+ MAKEOPTS="--output-sync=line ${MAKEOPTS}"
+
local myconf=(
# portage's econf() does not detect presence of --d-d-t
# because it greps only top-level ./configure. But not
@@ -144,8 +149,6 @@ src_configure() {
# systems with debuginfod library, bug #754753
--without-debuginfod
- $(use_enable test unit-tests)
-
# 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.
@@ -210,8 +213,12 @@ src_configure() {
econf "${myconf[@]}"
}
+src_compile() {
+ emake V=1
+}
+
src_install() {
- default
+ emake V=1 DESTDIR="${D}" install
find "${ED}"/usr -name libiberty.a -delete || die
diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
index 41ac0f8d0737..0b2fa85754a8 100644
--- a/sys-devel/gdb/gdb-9999.ebuild
+++ b/sys-devel/gdb/gdb-9999.ebuild
@@ -127,6 +127,11 @@ gdb_branding() {
src_configure() {
strip-unsupported-flags
+ # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html
+ # Avoid really confusing logs from subconfigure spam, makes logs far
+ # more legible.
+ MAKEOPTS="--output-sync=line ${MAKEOPTS}"
+
local myconf=(
# portage's econf() does not detect presence of --d-d-t
# because it greps only top-level ./configure. But not
@@ -143,6 +148,8 @@ src_configure() {
# systems with debuginfod library, bug #754753
--without-debuginfod
+ $(use_enable test unit-tests)
+
# 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.
@@ -207,8 +214,12 @@ src_configure() {
econf "${myconf[@]}"
}
+src_compile() {
+ emake V=1
+}
+
src_install() {
- default
+ emake V=1 DESTDIR="${D}" install
find "${ED}"/usr -name libiberty.a -delete || die