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 AASrFHaaaWcpPgEAe85BDQ:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:14:30 +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 AASrFHaaaWcpPgEAe85BDQ (envelope-from ) for ; Mon, 23 Dec 2024 18:14:30 +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=d3Maf3zm; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=Zah1cnMe; 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=1734974070; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=jRgj9Ib21DHR3mjTOgClqLDiF/yDWLsSB7eA7EHS8NY=; b=rLzCjMd56HyR3SKYyEhK97Qk/5uOc6K4sII/tob0zj9SUpkaAbxkhW/qxOp8sL/bFw6I7p 2Ry/eE8LQNDm6/TeuXeiyKhGDGBLTwrj+tNYTe5E3TxanFpoEInaeq2Z4Tg7P948olNV04 jllHMPdoOJjBhU7Ib+VSgtUs+Et9cKMdHFr04HQGk0TXF3vXuU90Vh+NAXRzU9UETUxQg4 Tk1GGyxvMvu+kmREKBUj/2zsqB0GUEBsdgEYAs8lR8XC4t87w3568inHEnfcf9oUigmLQK 5Qxi7shRZzXZySU9XJyxvb4imLMNHSOvMmu3/yiGf1NGnv4DUpte0wu0VaCINA== 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=d3Maf3zm; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=Zah1cnMe; 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=1734974070; a=rsa-sha256; cv=none; b=IkkFiM52jRk1Bg8GVfmGdz4c82tX/GlW7Ot9+oMS0e3E6jpwEOcphdwfFmdLPC4NSPgDQB 0+jcf/Lx56p/YMNzy3ycu3O5Fdhhy49d2ZaT4Jfg1xVxWub+juHnqxUa6eQKw5ZXO2NZGF yyCusgwhgKyVj+upleVbThXJL6d1n2XtpBaObGFIUIBnCMJorPM4T6KMbnmlpl5FWJyZGo uTFhYxO1mMkHHmkiF2FSHhOqiO5jw3daY0mcUyS0WFLnZVnvyyU5oAwKGdXKxTF+t7P3no Uw1pcuKfl5M+2GnrGOsRiT1ByyXe9787Hhudzft66E4pEwm1Tly74F+t3XR9cg== 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 4072F7F77D for ; Mon, 23 Dec 2024 18:14:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0K-0008Uo-R7; Mon, 23 Dec 2024 12:14:04 -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 1tPm0J-0008UO-9X for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:03 -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-0001Rm-0y for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:03 -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=jRgj9Ib21DHR3mjTOgClqLDiF/yDWLsSB7eA7EHS8NY=; b=d3Maf3zmDFJ7y3tOwymJ1oCaqXAvUmwpfzWMj5EiTK4D0AnjSIx/ncDnb0IK7o/+ufGRp4pmh9gDNqv2AsKCScLVBAh0WjM8l0DgBU7Wk5+WGl/JsvAzhCAbWNxzhjzTrhEWjiWZLUKRBH0q+eZYA3Zs2yCFTApGtcepuusA7AouO4fFmwKrfqieL9JEImepsp+QDFr0shSeE9PxH3+qG2UH/Kn+QsF719Av83Pa0ZHtlCNewkVK7mPKRwbUzJ2zmiVAqqlp+TzOMJ3DUyvbRFJvPmndJy8tyJyCwQxhFiK21+gwuZIvSPdBP61zEofWU3D+8JG6/xWzuBBR43sQYQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0I-00081z-Rk for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 09/14] gnu: libatomic-ops: Fix cross-compiling to loongarch64. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:14:02 +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 Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497400130757 (code B ref 75051); Mon, 23 Dec 2024 17:14:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:21 +0000 Received: from localhost ([127.0.0.1]:55887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlzc-000801-Kg for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:20 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:36423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlza-0007zd-Mw for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973991; bh=jRgj9Ib21DHR3mjTOgClqLDiF/yDWLsSB7eA7EHS8NY=; h=From:To:Subject:Date:In-Reply-To:References; b=Zah1cnMePtW8xrs9pripIrQvTMMg27caWjSHVWYlY+YfJB/MGAUxRSOP1hbQIx7ey WWGvOW57o77gF4UHOHbIp9iOYHb1bBhZlTIfjzc0Mx0JAiz71GEy63MPPtI6YRao7l XKm/GU/Y68nBV7mH7qp2BVy9L9/sJzCAILGN2EqA= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id 34A35285; Tue, 24 Dec 2024 01:13:10 +0800 X-QQ-mid: xmsmtpt1734973990to0c2huuq Message-ID: X-QQ-XMAILINFO: OVFdYp27KdlJNzYPARoOuXtqKovBQjB/2AZNx6VsVa9jq1ngo7SH7l321fmOn+ iQ2MzQvXviF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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: 4072F7F77D X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.70 X-Spam-Score: -0.70 X-TUID: 5Cf7vqTEw3qf * gnu/packages/bdw-gc.scm (libatomic-ops)[native-inputs]: When cross-compiling to loongarch64, Add config. [arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. Change-Id: I7a56860910e38985573482d4a4cfa622d8158f7c --- gnu/packages/bdw-gc.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index 8eed98d1fd7..d33c51663bc 100644 --- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -29,6 +29,7 @@ (define-module (gnu packages bdw-gc) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages autotools) #:use-module (gnu packages hurd)) (define-public libgc @@ -155,6 +156,24 @@ (define-public libatomic-ops "0glzah695wsf6c27hs5wwlw4mnq1vfivdshz1rb8pq7w4mp5dazh")))) (build-system gnu-build-system) (outputs '("out" "debug")) + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) + (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)) ".")) + '("config.guess" "config.sub")))))) + '())) (synopsis "Accessing hardware atomic memory update operations") (description "This C library provides semi-portable access to hardware-provided atomic -- 2.46.0