From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-931237-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D776B139694 for <garchives@archives.gentoo.org>; Tue, 14 Feb 2017 02:51:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 131EAE0BDE; Tue, 14 Feb 2017 02:51:56 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2133E0BDE for <gentoo-commits@lists.gentoo.org>; Tue, 14 Feb 2017 02:51:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0BB1341265 for <gentoo-commits@lists.gentoo.org>; Tue, 14 Feb 2017 02:51:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4F09470B for <gentoo-commits@lists.gentoo.org>; Tue, 14 Feb 2017 02:51:52 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <1487040684.e01ced2da69c0d913e4c91467a0ca5fc3615edcd.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libunwind/, sys-libs/libunwind/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch sys-libs/libunwind/libunwind-1.2.ebuild X-VCS-Directories: sys-libs/libunwind/files/ sys-libs/libunwind/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e01ced2da69c0d913e4c91467a0ca5fc3615edcd X-VCS-Branch: master Date: Tue, 14 Feb 2017 02:51:52 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 54fb9d81-1079-4e81-a9a4-a8790f4cf9be X-Archives-Hash: 23a8e0398e028786d9b9e75e943d8db5 commit: e01ced2da69c0d913e4c91467a0ca5fc3615edcd Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Tue Feb 14 02:51:24 2017 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Tue Feb 14 02:51:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e01ced2d sys-libs/libunwind: fix build errors on hppa/ia64/ppc/ppc64 #586092 .../libunwind/files/libunwind-1.2-coredump-regs.patch | 16 ++++++++++++++++ sys-libs/libunwind/libunwind-1.2.ebuild | 2 ++ 2 files changed, 18 insertions(+) diff --git a/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch b/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch new file mode 100644 index 0000000000..3ddc610d4a --- /dev/null +++ b/sys-libs/libunwind/files/libunwind-1.2-coredump-regs.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/586092 + +this might not be correct, but at least it builds, and doesn't crash + +--- a/src/coredump/_UCD_access_reg_linux.c ++++ b/src/coredump/_UCD_access_reg_linux.c +@@ -51,6 +51,9 @@ _UCD_access_reg (unw_addr_space_t as, + #elif defined(UNW_TARGET_TILEGX) + if (regnum < 0 || regnum > UNW_TILEGX_CFA) + goto badreg; ++#elif defined(UNW_TARGET_IA64) || defined(UNW_TARGET_HPPA) || defined(UNW_TARGET_PPC32) || defined(UNW_TARGET_PPC64) ++ if (regnum < 0 || regnum >= ARRAY_SIZE(ui->prstatus->pr_reg)) ++ goto badreg; + #else + #if defined(UNW_TARGET_MIPS) + static const uint8_t remap_regs[] = diff --git a/sys-libs/libunwind/libunwind-1.2.ebuild b/sys-libs/libunwind/libunwind-1.2.ebuild index a95f69a728..bf4a5a9fd3 100644 --- a/sys-libs/libunwind/libunwind-1.2.ebuild +++ b/sys-libs/libunwind/libunwind-1.2.ebuild @@ -45,6 +45,8 @@ MULTILIB_WRAPPED_HEADERS=( ) src_prepare() { + epatch "${FILESDIR}"/${PN}-1.2-coredump-regs.patch #586092 + # These tests like to fail. bleh. echo 'int main(){return 0;}' > tests/Gtest-dyn1.c echo 'int main(){return 0;}' > tests/Ltest-dyn1.c