commit: e6e69875cadca6985633a18eaba92c052a5142b9 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Nov 24 12:58:43 2018 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Nov 24 12:58:43 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6e69875
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 <slyfox <AT> gentoo.org> sys-devel/gdb/files/gdb-8.2-sparc-fix-syntax.patch | 10 ++++++++++ sys-devel/gdb/gdb-8.2-r1.ebuild | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 00000000000..5ed32c04fd7 --- /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 d7f7e1ef262..25456330772 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
