sys-devel/gdb: enable verbose gdb build, bug #695936
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 30 Sep 2019 21:37:33 +0000 (22:37 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 30 Sep 2019 21:52:02 +0000 (22:52 +0100)
While tracing missing tinfo detection Victor noticed
lack of precise arguments to gdb's linker and compiler
commands.

Two issues fixed here:
- restore default V=1 build in custome Makefile snippet
- set --disable-dependency-tracking to top-level ./configure
  to reach ./configure files that actually define it.
  Top-level does not and thus tricks portage's econf()
  into not passing it on.

Reported-by: Victor Mataré
Bug: https://bugs.gentoo.org/695936
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch [new file with mode: 0644]
sys-devel/gdb/gdb-8.3.1.ebuild
sys-devel/gdb/gdb-9999.ebuild

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 (file)
index 0000000..06aa608
--- /dev/null
@@ -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  $@";
index 34f58f16fba29fe68d86358df39287903f93ef4e..41c20dc863f0c38a3c6db5ec82e00e7c8fa9c896 100644 (file)
@@ -88,6 +88,10 @@ BDEPEND="
 
 S=${WORKDIR}/${PN}-${MY_PV}
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
+)
+
 pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
@@ -114,6 +118,11 @@ 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
index 34f58f16fba29fe68d86358df39287903f93ef4e..41c20dc863f0c38a3c6db5ec82e00e7c8fa9c896 100644 (file)
@@ -88,6 +88,10 @@ BDEPEND="
 
 S=${WORKDIR}/${PN}-${MY_PV}
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
+)
+
 pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
@@ -114,6 +118,11 @@ 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