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/, sys-devel/gdb/files/
Date: Sat, 24 Nov 2018 12:59:11
Message-Id: 1543064323.e6e69875cadca6985633a18eaba92c052a5142b9.slyfox@gentoo
1 commit: e6e69875cadca6985633a18eaba92c052a5142b9
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 24 12:58:43 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 24 12:58:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6e69875
7
8 sys-devel/gdb: fix sparc build, bug #671726
9
10 Reported-by: Rolf Eike Beer
11 Bug: https://bugs.gentoo.org/671726
12 Package-Manager: Portage-2.3.52, Repoman-2.3.12
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch | 10 ++++++++++
16 sys-devel/gdb/gdb-8.2-r1.ebuild | 6 +++++-
17 2 files changed, 15 insertions(+), 1 deletion(-)
18
19 diff --git a/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch b/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch
20 new file mode 100644
21 index 00000000000..5ed32c04fd7
22 --- /dev/null
23 +++ b/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch
24 @@ -0,0 +1,10 @@
25 +Fix invalid c++: https://bugs.gentoo.org/671726
26 +--- a/gdb/sparc-linux-nat.c
27 ++++ b/gdb/sparc-linux-nat.c
28 +@@ -36,5 +36,5 @@ public:
29 + { sparc_fetch_inferior_registers (regcache, regnum); }
30 +
31 +- void store_registers (struct regcache *regcache, int regnum) override;
32 ++ void store_registers (struct regcache *regcache, int regnum) override
33 + { sparc_store_inferior_registers (regcache, regnum); }
34 + };
35
36 diff --git a/sys-devel/gdb/gdb-8.2-r1.ebuild b/sys-devel/gdb/gdb-8.2-r1.ebuild
37 index d7f7e1ef262..25456330772 100644
38 --- a/sys-devel/gdb/gdb-8.2-r1.ebuild
39 +++ b/sys-devel/gdb/gdb-8.2-r1.ebuild
40 @@ -90,6 +90,11 @@ DEPEND="${RDEPEND}
41
42 S=${WORKDIR}/${PN}-${MY_PV}
43
44 +PATCHES=(
45 + "${FILESDIR}"/${P}-tinfow.patch
46 + "${FILESDIR}"/${P}-sparc-fix-syntax.patch
47 +)
48 +
49 pkg_setup() {
50 use python && python-single-r1_pkg_setup
51 }
52 @@ -101,7 +106,6 @@ src_prepare() {
53 EPATCH_EXCLUDE+=" 01_all_ia64-TRAP_HWBKPT.patch"
54 EPATCH_EXCLUDE+=" 02_all_solaris-no-uuidsys.patch"
55 ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
56 - eapply "${FILESDIR}"/${P}-tinfow.patch
57
58 default