From patchwork Fri Jan 24 16:39:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie X-Patchwork-Id: 37684 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9061C27BBEA; Fri, 24 Jan 2025 16:58:47 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 509AB27BBE2 for ; Fri, 24 Jan 2025 16:58:47 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tbMkX-000616-Ss; Fri, 24 Jan 2025 11:41:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tbMjw-0005WG-E7 for guix-patches@gnu.org; Fri, 24 Jan 2025 11:41:08 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tbMjw-0000OG-3S; Fri, 24 Jan 2025 11:41:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ly/VZC7ypCFlCQzsKEtPdju6UHOCvrI8FUw+p5VkH0M=; b=IEG2zVfiKdj8ONi0t5WEoOjgX2cA7jXvVn/NyRBwNvsENV4Gz+m493htqSdPpQhGhSzrmkostQtHFQ/l/0gi7/XURmJpFREEAGHE8r5B4bW83Ohc6VrKJtYD010EX89gPvl0yod/iGyJ61ESZ6lx5/1byd6SEqbWIP2RCV2w7zzPIf3+J4ElLo5oaFTZEPRQMrwzGdE/dEIzlb+5tR8tnKUAZk2DtV+b50waChoQ4wWRpCprsXn+DIRmbd6jc8srdL+H50x9TVtoTPIN2rW9yBehenXQtnodrMoJZ4fOCkQZyzog0ABjPB+zIlnVPKfNlVHZPt7u+5gztPlr36FIvw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tbMjv-0001Gb-Bk; Fri, 24 Jan 2025 11:41:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH v2 12/15] gnu: sed: Fix build to loongarch64. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, janneke@gnu.org, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Fri, 24 Jan 2025 16:41:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75051 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75051@debbugs.gnu.org Cc: Zheng Junjie <873216071@qq.com>, Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.17377368154721 (code B ref 75051); Fri, 24 Jan 2025 16:41:03 +0000 Received: (at 75051) by debbugs.gnu.org; 24 Jan 2025 16:40:15 +0000 Received: from localhost ([127.0.0.1]:46780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbMj8-0001E0-I2 for submit@debbugs.gnu.org; Fri, 24 Jan 2025 11:40:14 -0500 Received: from smtp81.cstnet.cn ([159.226.251.81]:49520 helo=cstnet.cn) by debbugs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1tbMj4-00016M-Mh for 75051@debbugs.gnu.org; Fri, 24 Jan 2025 11:40:11 -0500 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowABnbAw1wpNnvBI5CQ--.23013S13; Sat, 25 Jan 2025 00:40:01 +0800 (CST) From: Zheng Junjie Date: Sat, 25 Jan 2025 00:39:10 +0800 Message-ID: <4f527d35a8af0a04806a187d1961ddfa25c50dfd.1737736020.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 X-CM-TRANSID: rQCowABnbAw1wpNnvBI5CQ--.23013S13 X-Coremail-Antispam: 1UD129KBjvJXoW7Aw15JryDuw1rZw4UJw13Arb_yoW8Xr4xpF WFyFn3Kw4rGF93JrZrt3409Fs8W3s7Gr43Aan3Zw1UCw4YkrWI9rsxt393JFyxW3ZrGw4j gF48ta15GFW8CFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9Sb7Iv0xC_KF4lb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28C jxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI 8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280 aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV W8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07jjyxiUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Zheng Junjie <873216071@qq.com> * gnu/packages/base.scm (sed)[native-inputs]: When target is loongarch64, add config. [arguments]: When target is loongarch64, Add update-config-scripts phase. Change-Id: I056d5004ec326f8c5b30853d5ea401ea12a949b7 --- gnu/packages/base.scm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 46390506236..4c96ffa1a46 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -217,7 +217,23 @@ (define-public sed (modules '((guix build utils))))) (build-system gnu-build-system) (synopsis "Stream editor") - (native-inputs (list perl)) ;for tests + (native-inputs (append (if (target-loongarch64?) + (list config) + '()) + (list perl))) ;for tests + (arguments (if (target-loongarch64?) + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'update-config-scripts + (lambda* (#:key inputs native-inputs #:allow-other-keys) + ;; Replace outdated config.guess and config.sub. + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) "./build-aux")) + '("config.guess" "config.sub")))))) + '())) (description "Sed is a non-interactive, text stream editor. It receives a text input from a file or from standard input and it then applies a series of text