Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ltrace/files/, dev-util/ltrace/
Date: Mon, 27 Jun 2016 21:43:16
Message-Id: 1467063777.a2bc2463c651af12b93f4d46d6d4d890ec94ee45.slyfox@gentoo
1 commit: a2bc2463c651af12b93f4d46d6d4d890ec94ee45
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 27 21:40:19 2016 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 27 21:42:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2bc2463
7
8 dev-util/ltrace: restore basic alpha support
9
10 Builds successfully on gcc-5.4.0 and can trace
11 calls to calls like 'gcc -v'.
12
13 Package-Manager: portage-2.3.0
14
15 dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch | 14 ++++++++++++++
16 dev-util/ltrace/ltrace-0.7.3_p4.ebuild | 5 +++--
17 2 files changed, 17 insertions(+), 2 deletions(-)
18
19 diff --git a/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch b/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch
20 new file mode 100644
21 index 0000000..659952b
22 --- /dev/null
23 +++ b/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch
24 @@ -0,0 +1,14 @@
25 +Fix build failure on alpha:
26 + plt.c:32:12: error: dereferencing pointer to incomplete type ‘struct library_symbol’
27 + return sym->enter_addr;
28 + ^
29 +diff -U0 -raN ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c
30 +--- ltrace-0.7.3_p4/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c 2012-11-10 13:43:55.000000000 +0100
31 ++++ foo/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c 2016-06-27 23:21:28.000000000 +0200
32 +@@ -23,0 +24 @@
33 ++#include "library.h"
34 +diff -U0 -raN ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c
35 +--- ltrace-0.7.3_p4/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:30:08.000000000 +0200
36 ++++ foo/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:25:20.000000000 +0200
37 +@@ -29,0 +30 @@
38 ++#include "backend.h"
39
40 diff --git a/dev-util/ltrace/ltrace-0.7.3_p4.ebuild b/dev-util/ltrace/ltrace-0.7.3_p4.ebuild
41 index 5ee60c2..22394b2 100644
42 --- a/dev-util/ltrace/ltrace-0.7.3_p4.ebuild
43 +++ b/dev-util/ltrace/ltrace-0.7.3_p4.ebuild
44 @@ -1,4 +1,4 @@
45 -# Copyright 1999-2014 Gentoo Foundation
46 +# Copyright 1999-2016 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Id$
49
50 @@ -17,7 +17,7 @@ SRC_URI="
51
52 LICENSE="GPL-2"
53 SLOT="0"
54 -KEYWORDS="-alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
55 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
56 IUSE="debug selinux test unwind"
57
58 RDEPEND="dev-libs/elfutils
59 @@ -32,6 +32,7 @@ S=${WORKDIR}/${PN}-${LTRACE_V}
60 src_prepare() {
61 epatch "${WORKDIR}"/debian/patches/[0-9]*
62 epatch "${FILESDIR}"/${PN}-0.7.3-test-protos.patch #bug 421649
63 + epatch "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch
64 sed -i '/^dist_doc_DATA/d' Makefile.am || die
65 eautoreconf
66 }