commit:     33376b42c405654ceb76b3e17d7deef6f5baafb1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  9 03:27:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun  9 03:27:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33376b42

sys-devel/gdb: verbose logs, use output synchronisation

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

 sys-devel/gdb/gdb-11.2.ebuild | 16 +++++++++++++++-
 sys-devel/gdb/gdb-12.1.ebuild | 13 ++++++++++---
 sys-devel/gdb/gdb-9999.ebuild | 13 ++++++++++++-
 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
 

Reply via email to