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: Thu, 14 Mar 2019 22:49:50
Message-Id: 1552603777.890e99a6aef35c3e8c9a828bdf5ca9eafec6a1bb.slyfox@gentoo
1 commit: 890e99a6aef35c3e8c9a828bdf5ca9eafec6a1bb
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 14 22:49:20 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 14 22:49:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890e99a6
7
8 sys-devel/gdb: fix build against -std=c++17
9
10 Patch is proposed upstream as:
11 https://sourceware.org/ml/gdb-patches/2019-03/msg00306.html
12
13 Reported-by: Helmut Jarausch
14 Closes: https://bugs.gentoo.org/680232
15 Package-Manager: Portage-2.3.62, Repoman-2.3.12
16 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
17
18 sys-devel/gdb/files/gdb-8.3.50.20190312-c++17.patch | 19 +++++++++++++++++++
19 sys-devel/gdb/gdb-8.3.50.20190312-r1.ebuild | 1 +
20 2 files changed, 20 insertions(+)
21
22 diff --git a/sys-devel/gdb/files/gdb-8.3.50.20190312-c++17.patch b/sys-devel/gdb/files/gdb-8.3.50.20190312-c++17.patch
23 new file mode 100644
24 index 00000000000..c134cbcae8d
25 --- /dev/null
26 +++ b/sys-devel/gdb/files/gdb-8.3.50.20190312-c++17.patch
27 @@ -0,0 +1,19 @@
28 +https://bugs.gentoo.org/680232
29 +
30 +--- a/gdb/unittests/string_view-selftests.c
31 ++++ b/gdb/unittests/string_view-selftests.c
32 +@@ -170,10 +170,12 @@ run_tests ()
33 + } /* namespace string_view */
34 + } /* namespace selftests */
35 +
36 ++#endif /* __cplusplus < 201703L */
37 ++
38 + void
39 + _initialize_string_view_selftests ()
40 + {
41 ++#if defined(GDB_STRING_VIEW)
42 + selftests::register_test ("string_view", selftests::string_view::run_tests);
43 ++#endif
44 + }
45 +-
46 +-#endif /* __cplusplus < 201703L */
47
48 diff --git a/sys-devel/gdb/gdb-8.3.50.20190312-r1.ebuild b/sys-devel/gdb/gdb-8.3.50.20190312-r1.ebuild
49 index eda29eb876a..3b02bda0bd9 100644
50 --- a/sys-devel/gdb/gdb-8.3.50.20190312-r1.ebuild
51 +++ b/sys-devel/gdb/gdb-8.3.50.20190312-r1.ebuild
52 @@ -95,6 +95,7 @@ BDEPEND="
53
54 PATCHES=(
55 "${FILESDIR}"/${P}-source-highlight.patch
56 + "${FILESDIR}"/${P}-c++17.patch
57 )
58
59 S=${WORKDIR}/${PN}-${MY_PV}