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: Sat, 30 Jun 2018 11:06:52
Message-Id: 1530356800.c61c0eeba20f941011ed6d87c86664c77f9b4152.slyfox@gentoo
1 commit: c61c0eeba20f941011ed6d87c86664c77f9b4152
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 30 11:06:26 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 30 11:06:40 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61c0eeb
7
8 sys-devel/gdb: fix build failure on ia64, bug #658014
9
10 It's a backport of upstream fix by Émeric Maschino
11 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8
12
13 Reported-by: Émeric Maschino
14 Fixed-by: Émeric Maschino
15 Closes: https://bugs.gentoo.org/658014
16 Package-Manager: Portage-2.3.41, Repoman-2.3.9
17
18 sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch | 26 +++++++++++++++++++++++
19 sys-devel/gdb/gdb-7.12.1.ebuild | 1 +
20 2 files changed, 27 insertions(+)
21
22 diff --git a/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch b/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch
23 new file mode 100644
24 index 00000000000..3b910da4227
25 --- /dev/null
26 +++ b/sys-devel/gdb/files/gdb-7.12.1-ia64-include.patch
27 @@ -0,0 +1,26 @@
28 +fixes build failure on ia64
29 +
30 +It's a backport of upstream fix by Émeric Maschino
31 +https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8
32 +https://bugs.gentoo.org/658014
33 +--- a/gdb/nat/linux-ptrace.c 2017-01-21 14:48:42.000000000 +0100
34 ++++ b/gdb/nat/linux-ptrace.c 2018-06-20 00:03:40.520317323 +0200
35 +@@ -21,8 +21,6 @@
36 + #include "linux-procfs.h"
37 + #include "linux-waitpid.h"
38 + #include "buffer.h"
39 +-#include "gdb_wait.h"
40 +-#include "gdb_ptrace.h"
41 + #include <sys/procfs.h>
42 +
43 + /* Stores the ptrace options supported by the running kernel.
44 +--- a/gdb/nat/linux-ptrace.h 2017-01-21 14:46:47.000000000 +0100
45 ++++ b/gdb/nat/linux-ptrace.h 2018-06-20 00:04:28.706220951 +0200
46 +@@ -21,6 +21,7 @@
47 + struct buffer;
48 +
49 + #include "nat/gdb_ptrace.h"
50 ++#include "gdb_wait.h"
51 +
52 + #ifdef __UCLIBC__
53 + #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
54
55 diff --git a/sys-devel/gdb/gdb-7.12.1.ebuild b/sys-devel/gdb/gdb-7.12.1.ebuild
56 index a1863b60ff0..48dde882bdd 100644
57 --- a/sys-devel/gdb/gdb-7.12.1.ebuild
58 +++ b/sys-devel/gdb/gdb-7.12.1.ebuild
59 @@ -92,6 +92,7 @@ pkg_setup() {
60 src_prepare() {
61 [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
62 ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
63 + epatch "${FILESDIR}"/${P}-ia64-include.patch #655270
64 epatch_user
65 strip-linguas -u bfd/po opcodes/po
66 }