From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E6DF158087 for ; Wed, 2 Feb 2022 06:14:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0CED2BC002; Wed, 2 Feb 2022 06:14:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4FA6C2BC002 for ; Wed, 2 Feb 2022 06:14:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10DCB343075 for ; Wed, 2 Feb 2022 06:14:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F10571EF for ; Wed, 2 Feb 2022 06:14:06 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1643782434.8d9fa65d81d14143e4c6a45cf46d0a5147d68b8b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/debugedit/files/, dev-util/debugedit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/debugedit/debugedit-5.0-r1.ebuild dev-util/debugedit/files/debugedit-5.0-hppa.patch X-VCS-Directories: dev-util/debugedit/files/ dev-util/debugedit/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8d9fa65d81d14143e4c6a45cf46d0a5147d68b8b X-VCS-Branch: master Date: Wed, 2 Feb 2022 06:14:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d28eed56-de54-4193-86dc-ce4a77acc2be X-Archives-Hash: d1177ae52025d914acadd5cc082986a2 commit: 8d9fa65d81d14143e4c6a45cf46d0a5147d68b8b Author: Sam James gentoo org> AuthorDate: Wed Feb 2 06:12:39 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 2 06:13:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d9fa65d dev-util/debugedit: add HPPA patch Fixes tests but it's really a runtime error. Should affect non-HPPA uses too if cross-compiling or otherwise handling PARISC objects. Bug: https://bugs.gentoo.org/831766 Thanks-to: Rolf Eike Beer sf-mail.de> Signed-off-by: Sam James gentoo.org> dev-util/debugedit/debugedit-5.0-r1.ebuild | 42 +++++++++++++++++++++++ dev-util/debugedit/files/debugedit-5.0-hppa.patch | 25 ++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-util/debugedit/debugedit-5.0-r1.ebuild b/dev-util/debugedit/debugedit-5.0-r1.ebuild new file mode 100644 index 000000000000..a06dbefac224 --- /dev/null +++ b/dev-util/debugedit/debugedit-5.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools verify-sig + +DESCRIPTION="Create debuginfo and source file distributions" +HOMEPAGE="https://sourceware.org/debugedit/" +SRC_URI=" + https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz + https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz.sig +" + +LICENSE="GPL-2+ LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-libs/elfutils-0.176-r1 +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-apps/help2man + virtual/pkgconfig + verify-sig? ( + sec-keys/openpgp-keys-debugedit + ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/debugedit.gpg + +PATCHES=( + "${FILESDIR}"/${P}-readelf.patch + "${FILESDIR}"/${P}-zero-dir-entry.patch + "${FILESDIR}"/${P}-hppa.patch +) + +src_prepare() { + default + eautoreconf +} diff --git a/dev-util/debugedit/files/debugedit-5.0-hppa.patch b/dev-util/debugedit/files/debugedit-5.0-hppa.patch new file mode 100644 index 000000000000..296b9a4390ff --- /dev/null +++ b/dev-util/debugedit/files/debugedit-5.0-hppa.patch @@ -0,0 +1,25 @@ +https://sourceware.org/git/?p=debugedit.git;a=commitdiff;h=86130f41d05584581530fc65aa119badb400f4d4 + +From: Mark Wielaard +Date: Thu, 18 Nov 2021 14:14:28 +0100 +Subject: [PATCH] debugedit: Handle hppa EM_PARISC and R_PARISC_DIR32 + + * tools/debugedit.c (setup_relbuf): Handle EM_PARISC + +https://sourceware.org/bugzilla/show_bug.cgi?id=28598 + +Patch-provided-by: dave.anglin@bell.net +Signed-off-by: Mark Wielaard +--- a/tools/debugedit.c ++++ b/tools/debugedit.c +@@ -590,6 +590,10 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype) + if (rtype != R_390_32) + goto fail; + break; ++ case EM_PARISC: ++ if (rtype != R_PARISC_DIR32) ++ goto fail; ++ break; + case EM_IA_64: + if (rtype != R_IA64_SECREL32LSB) + goto fail;