Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/debugedit/files/, dev-util/debugedit/
Date: Wed, 02 Feb 2022 06:14:15
Message-Id: 1643782434.8d9fa65d81d14143e4c6a45cf46d0a5147d68b8b.sam@gentoo
1 commit: 8d9fa65d81d14143e4c6a45cf46d0a5147d68b8b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 06:12:39 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 06:13:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d9fa65d
7
8 dev-util/debugedit: add HPPA patch
9
10 Fixes tests but it's really a runtime error. Should affect
11 non-HPPA uses too if cross-compiling or otherwise handling
12 PARISC objects.
13
14 Bug: https://bugs.gentoo.org/831766
15 Thanks-to: Rolf Eike Beer <eike <AT> sf-mail.de>
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 dev-util/debugedit/debugedit-5.0-r1.ebuild | 42 +++++++++++++++++++++++
19 dev-util/debugedit/files/debugedit-5.0-hppa.patch | 25 ++++++++++++++
20 2 files changed, 67 insertions(+)
21
22 diff --git a/dev-util/debugedit/debugedit-5.0-r1.ebuild b/dev-util/debugedit/debugedit-5.0-r1.ebuild
23 new file mode 100644
24 index 000000000000..a06dbefac224
25 --- /dev/null
26 +++ b/dev-util/debugedit/debugedit-5.0-r1.ebuild
27 @@ -0,0 +1,42 @@
28 +# Copyright 1999-2022 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +
33 +inherit autotools verify-sig
34 +
35 +DESCRIPTION="Create debuginfo and source file distributions"
36 +HOMEPAGE="https://sourceware.org/debugedit/"
37 +SRC_URI="
38 + https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz
39 + https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz.sig
40 +"
41 +
42 +LICENSE="GPL-2+ LGPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +
46 +RDEPEND="
47 + >=dev-libs/elfutils-0.176-r1
48 +"
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="
51 + sys-apps/help2man
52 + virtual/pkgconfig
53 + verify-sig? (
54 + sec-keys/openpgp-keys-debugedit
55 + )
56 +"
57 +
58 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/debugedit.gpg
59 +
60 +PATCHES=(
61 + "${FILESDIR}"/${P}-readelf.patch
62 + "${FILESDIR}"/${P}-zero-dir-entry.patch
63 + "${FILESDIR}"/${P}-hppa.patch
64 +)
65 +
66 +src_prepare() {
67 + default
68 + eautoreconf
69 +}
70
71 diff --git a/dev-util/debugedit/files/debugedit-5.0-hppa.patch b/dev-util/debugedit/files/debugedit-5.0-hppa.patch
72 new file mode 100644
73 index 000000000000..296b9a4390ff
74 --- /dev/null
75 +++ b/dev-util/debugedit/files/debugedit-5.0-hppa.patch
76 @@ -0,0 +1,25 @@
77 +https://sourceware.org/git/?p=debugedit.git;a=commitdiff;h=86130f41d05584581530fc65aa119badb400f4d4
78 +
79 +From: Mark Wielaard <mark@×××××.org>
80 +Date: Thu, 18 Nov 2021 14:14:28 +0100
81 +Subject: [PATCH] debugedit: Handle hppa EM_PARISC and R_PARISC_DIR32
82 +
83 + * tools/debugedit.c (setup_relbuf): Handle EM_PARISC
84 +
85 +https://sourceware.org/bugzilla/show_bug.cgi?id=28598
86 +
87 +Patch-provided-by: dave.anglin@××××.net
88 +Signed-off-by: Mark Wielaard <mark@×××××.org>
89 +--- a/tools/debugedit.c
90 ++++ b/tools/debugedit.c
91 +@@ -590,6 +590,10 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
92 + if (rtype != R_390_32)
93 + goto fail;
94 + break;
95 ++ case EM_PARISC:
96 ++ if (rtype != R_PARISC_DIR32)
97 ++ goto fail;
98 ++ break;
99 + case EM_IA_64:
100 + if (rtype != R_IA64_SECREL32LSB)
101 + goto fail;