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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 659F4158086 for ; Wed, 17 Nov 2021 02:41:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 713ADE07F9; Wed, 17 Nov 2021 02:41:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 54AE5E07F9 for ; Wed, 17 Nov 2021 02:41:40 +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 B9D3A342C32 for ; Wed, 17 Nov 2021 02:41:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE2F11A2 for ; Wed, 17 Nov 2021 02:41:36 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1637116747.e4bc420f6f7ad5d52e43f2ae7541a991f516949e.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/grep/, sys-apps/grep/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/grep/files/ppc-musl.patch sys-apps/grep/grep-3.7.ebuild X-VCS-Directories: sys-apps/grep/files/ sys-apps/grep/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: e4bc420f6f7ad5d52e43f2ae7541a991f516949e X-VCS-Branch: master Date: Wed, 17 Nov 2021 02:41:36 +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: 745a5480-6442-4082-a6e3-53d6baf8dfd9 X-Archives-Hash: caf0ecb7d83fde4693f66c8acfff394d commit: e4bc420f6f7ad5d52e43f2ae7541a991f516949e Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Nov 17 02:30:26 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Nov 17 02:39:07 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4bc420f sys-apps/grep: add ppc32 musl patch Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/grep/files/ppc-musl.patch | 14 ++++++++++++++ sys-apps/grep/grep-3.7.ebuild | 2 ++ 2 files changed, 16 insertions(+) diff --git a/sys-apps/grep/files/ppc-musl.patch b/sys-apps/grep/files/ppc-musl.patch new file mode 100644 index 000000000000..6ba37f233591 --- /dev/null +++ b/sys-apps/grep/files/ppc-musl.patch @@ -0,0 +1,14 @@ +--- a/lib/sigsegv.c ++++ b/lib/sigsegv.c +@@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERSION; + /* both should be equivalent */ + # if 0 + # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1] +-# else ++# elif defined(__GLIBC__) + # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1] ++# else ++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1] + # endif + # endif + diff --git a/sys-apps/grep/grep-3.7.ebuild b/sys-apps/grep/grep-3.7.ebuild index 7b142e4d63d8..2a4b293b29e0 100644 --- a/sys-apps/grep/grep-3.7.ebuild +++ b/sys-apps/grep/grep-3.7.ebuild @@ -29,6 +29,8 @@ BDEPEND=" nls? ( sys-devel/gettext ) " +PATCHES=( "${FILESDIR}/ppc-musl.patch" ) + DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) src_prepare() {