From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kMp5K32aaWcpowAAe85BDQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:14:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kMp5K32aaWcpowAAe85BDQ (envelope-from ) for ; Mon, 23 Dec 2024 18:14:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QUYJM2EW; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=igjGkEJ2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734974077; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=f5wSyYxph1YCChKu61f2hTWl4aVRhjMrinydM/LUpgU=; b=YS/nQBtxkftpR5G8HJqHEKIJtWQt1NDv/TCESUxCwzMuQAONUU6b71MWb6iJ2q5PdWRuDg 1cb8GauSmpoIIILsrzJ8KHCawC7aVF4/RLTJg/UZ/sNZ5Gx4HQ8Apx3w2fsQOgsEuoUtJL 9youvyUO8+nq6UZnFHft9raovm1S1StrC5RCUxh193vXPY2k2EuSKuEVXJF7J5acl1PvaS bJSq/D0wyg60ODkUB/XEzE+aiU1DqQlNxYScReCH7i0hTH+ke37brc9pRhdEm+rIqj7Gw5 3wq1i11O30zNq/H64236udcof7SWUBSOxJc07XqE03eWjX1ehIeata6pZmzjqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QUYJM2EW; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=igjGkEJ2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734974077; a=rsa-sha256; cv=none; b=aj3BgQh3PFgsXUIVwD/NUecdAkAPLUq4/VT8hnPCVn1NEvZ0kNf5f9yp+rsIYbbOZaNcgC P6S8ObMptWl4SuDN3RhvR800bNM3AbpMPGcW1GmBN3bhDZqUdoC+6zE3+bIGsYNRFfm0X9 4iELRiuEhYmkToOjLH3HSYAXEeo9xgKmyN984SKn3sN/aJrmFuArbQDoA6QPP2JgEUKqFK N/X4No7HQpmCPpIozpqYHBGKAvXcY+PyNlPhSdM9IWXOPii/fyiZB/VyiT/zUAJjufdHQH ncmfeONVDDQGFs8c6YnyxbhqYBJMNUGXf3OPLrj7xkZmG4FKT+YK9pXFQps70A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9699F7F93B for ; Mon, 23 Dec 2024 18:14:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0N-00005S-Mz; Mon, 23 Dec 2024 12:14:07 -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 1tPm0K-0008Un-N1 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:04 -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 1tPm0J-0001SE-W4; Mon, 23 Dec 2024 12:14: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=f5wSyYxph1YCChKu61f2hTWl4aVRhjMrinydM/LUpgU=; b=QUYJM2EW7kYbS7BK0ySrF59wzjNPDh+YrK9KnrxPihtKUjRO5hhZ3clqXnix64MpQhjmyoqBUlQoX7RN8mQOxU/Wz/4q80WwgzpWrAiVGItbV5WkocbUPGRp35ugb0tKUj+qblD6JRBXy/dnoPkwLAusXOgWbZGLixhrYbHjyhjNHLKYfVpwFx/AwOqUhSAiDlRbRStWt1khAQMOorZ0reUeDv9S1GbzAa2fbz0iXgqHcvaRTOYh7Tydpytg/Y9+Rd+8K4gaw8xWrQYOhVocmGp6WvyNDfeV+JG7i0u2hfFwHzilwDHZIte6vSi8U6mYJ8wi+/iQMWpSM7RtQv327A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0J-00082E-PV; Mon, 23 Dec 2024 12:14:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 11/14] gnu: sed: Fix cross-compiling to loongarch64. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, janneke@gnu.org, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:14: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: 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.173497402530811 (code B ref 75051); Mon, 23 Dec 2024 17:14:03 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:45 +0000 Received: from localhost ([127.0.0.1]:55893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm01-00080t-Hu for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:45 -0500 Received: from out162-62-58-211.mail.qq.com ([162.62.58.211]:35339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm00-00080g-3p for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974017; bh=f5wSyYxph1YCChKu61f2hTWl4aVRhjMrinydM/LUpgU=; h=From:To:Subject:Date:In-Reply-To:References; b=igjGkEJ2Z8QzLAWbPgT6dCLcIAXgrFA/MAJH12bkFZndsYW1BpAkf6RPjbOQxwaE1 ep1+L2dHVxG01FhN6qW/7BKQ5s8JpI6vMRdLkkH+vUsR+YrbzdmOddYVq7htVUrtJw lTTlo8SwDtt3pWNBJ8LoVfhpaFHMJCLFRhtdU17E= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszb16-1.qq.com (NewEsmtp) with SMTP id 363A6AE3; Tue, 24 Dec 2024 01:13:35 +0800 X-QQ-mid: xmsmtpt1734974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dec 2024 01:13:35 +0800 X-OQ-MSGID: <96fc8622820d02692eb484315bff28a10e3f4910.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Zheng Junjie <873216071@qq.com> X-ACL-Warn: , Zheng Junjie via Guix-patches From: Zheng Junjie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9699F7F93B X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.70 X-Spam-Score: -0.70 X-TUID: 81IOSImH6A8y * gnu/packages/base.scm (sed)[native-inputs]: When cross-compiling to loongarch64, add config. [arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. Change-Id: I056d5004ec326f8c5b30853d5ea401ea12a949b7 --- gnu/packages/base.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 46390506236..df0a4e5aa1b 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -217,7 +217,25 @@ (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 (and (target-loongarch64?) + (%current-target-system)) + (list config) + '()) + (list perl))) ;for tests + (arguments (if (and (target-loongarch64?) + (%current-target-system)) + (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 -- 2.46.0