From: Sergei Trofimovich Date: Sat, 24 Nov 2018 12:58:43 +0000 (+0000) Subject: sys-devel/gdb: fix sparc build, bug #671726 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e6e69875cadca6985633a18eaba92c052a5142b9;p=gentoo.git sys-devel/gdb: fix sparc build, bug #671726 Reported-by: Rolf Eike Beer Bug: https://bugs.gentoo.org/671726 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich --- 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 new file mode 100644 index 000000000000..5ed32c04fd79 --- /dev/null +++ b/sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch @@ -0,0 +1,10 @@ +Fix invalid c++: https://bugs.gentoo.org/671726 +--- a/gdb/sparc-linux-nat.c ++++ b/gdb/sparc-linux-nat.c +@@ -36,5 +36,5 @@ public: + { sparc_fetch_inferior_registers (regcache, regnum); } + +- void store_registers (struct regcache *regcache, int regnum) override; ++ void store_registers (struct regcache *regcache, int regnum) override + { sparc_store_inferior_registers (regcache, regnum); } + }; diff --git a/sys-devel/gdb/gdb-8.2-r1.ebuild b/sys-devel/gdb/gdb-8.2-r1.ebuild index d7f7e1ef262d..254563307729 100644 --- a/sys-devel/gdb/gdb-8.2-r1.ebuild +++ b/sys-devel/gdb/gdb-8.2-r1.ebuild @@ -90,6 +90,11 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${PN}-${MY_PV} +PATCHES=( + "${FILESDIR}"/${P}-tinfow.patch + "${FILESDIR}"/${P}-sparc-fix-syntax.patch +) + pkg_setup() { use python && python-single-r1_pkg_setup } @@ -101,7 +106,6 @@ src_prepare() { EPATCH_EXCLUDE+=" 01_all_ia64-TRAP_HWBKPT.patch" EPATCH_EXCLUDE+=" 02_all_solaris-no-uuidsys.patch" ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch - eapply "${FILESDIR}"/${P}-tinfow.patch default