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 EF46415808E for ; Mon, 25 Apr 2022 10:11:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22E65E088C; Mon, 25 Apr 2022 10:11:48 +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 F141DE088C for ; Mon, 25 Apr 2022 10:11:47 +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 850F2341670 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 EEC433BF 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: <1650881474.43dd58338de06e5f214e616425c17578908adfec.xen0n@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/m4/files/, sys-devel/m4/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/m4/files/loong-fix-build.patch sys-devel/m4/m4-1.4.19.ebuild X-VCS-Directories: sys-devel/m4/ sys-devel/m4/files/ X-VCS-Committer: xen0n X-VCS-Committer-Name: WANG Xuerui X-VCS-Revision: 43dd58338de06e5f214e616425c17578908adfec 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: ccdeeb81-b888-49fa-b6bd-d4e2afd0d885 X-Archives-Hash: 4c4dc51c6131e13ea944d3f72efcdb65 commit: 43dd58338de06e5f214e616425c17578908adfec Author: WANG Xuerui gentoo org> AuthorDate: Mon Apr 25 04:31:54 2022 +0000 Commit: WANG Xuerui gentoo org> CommitDate: Mon Apr 25 10:11:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43dd5833 sys-devel/m4: 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-devel/m4/files/loong-fix-build.patch | 26 ++++++++++++++++++++++++++ sys-devel/m4/m4-1.4.19.ebuild | 1 + 2 files changed, 27 insertions(+) diff --git a/sys-devel/m4/files/loong-fix-build.patch b/sys-devel/m4/files/loong-fix-build.patch new file mode 100644 index 000000000000..cd06fa8df5e4 --- /dev/null +++ b/sys-devel/m4/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-devel/m4/m4-1.4.19.ebuild b/sys-devel/m4/m4-1.4.19.ebuild index 744de66535d5..8c29c255fee5 100644 --- a/sys-devel/m4/m4-1.4.19.ebuild +++ b/sys-devel/m4/m4-1.4.19.ebuild @@ -38,6 +38,7 @@ BDEPEND="app-arch/xz-utils PATCHES=( "${FILESDIR}"/ppc-musl.patch + "${FILESDIR}"/loong-fix-build.patch "${WORKDIR}"/${P}-test-198-sysval-r1.patch )