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 5AE7C15808E for ; Mon, 25 Apr 2022 10:11:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD04DE087E; Mon, 25 Apr 2022 10:11:47 +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 A7B14E087E for ; Mon, 25 Apr 2022 10:11:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6D98C341665 for ; Mon, 25 Apr 2022 10:11:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DBE353BE for ; Mon, 25 Apr 2022 10:11:44 +0000 (UTC) From: "WANG Xuerui" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "WANG Xuerui" Message-ID: <1650881472.07611b62174bab556022d7fe24fc6a204647afbf.xen0n@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/grep/files/, sys-apps/grep/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/grep/files/loong-fix-build.patch sys-apps/grep/grep-3.7.ebuild X-VCS-Directories: sys-apps/grep/files/ sys-apps/grep/ X-VCS-Committer: xen0n X-VCS-Committer-Name: WANG Xuerui X-VCS-Revision: 07611b62174bab556022d7fe24fc6a204647afbf X-VCS-Branch: master Date: Mon, 25 Apr 2022 10:11:44 +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: 714c788e-1a7e-4eb7-a689-81f98681223e X-Archives-Hash: 5e9471ceb12d7940eacd0e04ca92a533 commit: 07611b62174bab556022d7fe24fc6a204647afbf Author: WANG Xuerui gentoo org> AuthorDate: Mon Apr 25 04:13:41 2022 +0000 Commit: WANG Xuerui gentoo org> CommitDate: Mon Apr 25 10:11:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07611b62 sys-apps/grep: fix build on loong Upstream has updated gnulib but hasn't tagged a new release yet, so only add the bare minimum to fix build on loong. This has been inside loongson-overlay for a while, and is tested on real loong hardware. See: https://github.com/gentoo/gentoo/pull/25189 Acked-by: Andreas K. Hüttel gentoo.org> Signed-off-by: WANG Xuerui gentoo.org> sys-apps/grep/files/loong-fix-build.patch | 26 ++++++++++++++++++++++++++ sys-apps/grep/grep-3.7.ebuild | 5 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/sys-apps/grep/files/loong-fix-build.patch b/sys-apps/grep/files/loong-fix-build.patch new file mode 100644 index 000000000000..cd06fa8df5e4 --- /dev/null +++ b/sys-apps/grep/files/loong-fix-build.patch @@ -0,0 +1,26 @@ +From 34add045fd2ec3f1031dee961c4d9cc4285486a7 Mon Sep 17 00:00:00 2001 +From: Sun Haiyong +Date: Tue, 31 Aug 2021 11:11:52 +0800 +Subject: [PATCH] stack-direction: Add support for loongarch CPU + +* m4/stack-direction.m4 (SV_STACK_DIRECTION): When the CPU is loongarch, +set "sv_cv_stack_direction" to "-1" . +--- + m4/stack-direction.m4 | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4 +index 93287254b..e6c3284ce 100644 +--- a/m4/stack-direction.m4 ++++ b/m4/stack-direction.m4 +@@ -32,6 +32,7 @@ AC_DEFUN([SV_STACK_DIRECTION], + i?86 | x86_64 | \ + i860 | \ + ia64 | \ ++ loongarch* | \ + m32r | \ + m68* | \ + m88k | \ +-- +2.17.2 + diff --git a/sys-apps/grep/grep-3.7.ebuild b/sys-apps/grep/grep-3.7.ebuild index 4f07cae885f9..b8ca4022782f 100644 --- a/sys-apps/grep/grep-3.7.ebuild +++ b/sys-apps/grep/grep-3.7.ebuild @@ -31,7 +31,10 @@ BDEPEND=" nls? ( sys-devel/gettext ) verify-sig? ( sec-keys/openpgp-keys-grep )" -PATCHES=( "${FILESDIR}/ppc-musl.patch" ) +PATCHES=( + "${FILESDIR}/ppc-musl.patch" + "${FILESDIR}/loong-fix-build.patch" +) DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )