Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
Date: Mon, 30 Sep 2019 21:52:14
Message-Id: 1569880322.bb6538b02a7df594bb1e91745f153944156492cc.slyfox@gentoo
1 commit: bb6538b02a7df594bb1e91745f153944156492cc
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 30 21:37:33 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 30 21:52:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb6538b0
7
8 sys-devel/gdb: enable verbose gdb build, bug #695936
9
10 While tracing missing tinfo detection Victor noticed
11 lack of precise arguments to gdb's linker and compiler
12 commands.
13
14 Two issues fixed here:
15 - restore default V=1 build in custome Makefile snippet
16 - set --disable-dependency-tracking to top-level ./configure
17 to reach ./configure files that actually define it.
18 Top-level does not and thus tricks portage's econf()
19 into not passing it on.
20
21 Reported-by: Victor Mataré
22 Bug: https://bugs.gentoo.org/695936
23 Package-Manager: Portage-2.3.76, Repoman-2.3.17
24 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
25
26 sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch | 13 +++++++++++++
27 sys-devel/gdb/gdb-8.3.1.ebuild | 9 +++++++++
28 sys-devel/gdb/gdb-9999.ebuild | 9 +++++++++
29 3 files changed, 31 insertions(+)
30
31 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
32 new file mode 100644
33 index 00000000000..06aa6084d2d
34 --- /dev/null
35 +++ b/sys-devel/gdb/files/gdb-8.3.1-verbose-build.patch
36 @@ -0,0 +1,13 @@
37 +Enable verbose build. By default gdb ignores even --disable-silent-rules.
38 +Override verbosity back to non-silent.
39 +
40 +https://bugs.gentoo.org/695936
41 +--- a/gdb/silent-rules.mk
42 ++++ b/gdb/silent-rules.mk
43 +@@ -1,5 +1,4 @@
44 +-# If V is undefined or V=0 is specified, use the silent/verbose/compact mode.
45 +-V ?= 0
46 ++V ?= 1
47 + ifeq ($(V),0)
48 + ECHO_CXX = @echo " CXX $@";
49 + ECHO_CXXLD = @echo " CXXLD $@";
50
51 diff --git a/sys-devel/gdb/gdb-8.3.1.ebuild b/sys-devel/gdb/gdb-8.3.1.ebuild
52 index 34f58f16fba..41c20dc863f 100644
53 --- a/sys-devel/gdb/gdb-8.3.1.ebuild
54 +++ b/sys-devel/gdb/gdb-8.3.1.ebuild
55 @@ -88,6 +88,10 @@ BDEPEND="
56
57 S=${WORKDIR}/${PN}-${MY_PV}
58
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
61 +)
62 +
63 pkg_setup() {
64 use python && python-single-r1_pkg_setup
65 }
66 @@ -114,6 +118,11 @@ src_configure() {
67 strip-unsupported-flags
68
69 local myconf=(
70 + # portage's econf() does not detect presence of --d-d-t
71 + # because it greps only top-level ./configure. But not
72 + # gnulib's or gdb's configure.
73 + --disable-dependency-tracking
74 +
75 --with-pkgversion="$(gdb_branding)"
76 --with-bugurl='https://bugs.gentoo.org/'
77 --disable-werror
78
79 diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
80 index 34f58f16fba..41c20dc863f 100644
81 --- a/sys-devel/gdb/gdb-9999.ebuild
82 +++ b/sys-devel/gdb/gdb-9999.ebuild
83 @@ -88,6 +88,10 @@ BDEPEND="
84
85 S=${WORKDIR}/${PN}-${MY_PV}
86
87 +PATCHES=(
88 + "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
89 +)
90 +
91 pkg_setup() {
92 use python && python-single-r1_pkg_setup
93 }
94 @@ -114,6 +118,11 @@ src_configure() {
95 strip-unsupported-flags
96
97 local myconf=(
98 + # portage's econf() does not detect presence of --d-d-t
99 + # because it greps only top-level ./configure. But not
100 + # gnulib's or gdb's configure.
101 + --disable-dependency-tracking
102 +
103 --with-pkgversion="$(gdb_branding)"
104 --with-bugurl='https://bugs.gentoo.org/'
105 --disable-werror