From patchwork Mon Dec 23 17:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35218 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 226D027BBE9; Mon, 23 Dec 2024 17:07:27 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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=unavailable 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 DADDB27BBE2 for ; Mon, 23 Dec 2024 17:07:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPltj-0006Pu-KV; Mon, 23 Dec 2024 12:07:15 -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 1tPltb-0006PP-Oj for guix-patches@gnu.org; Mon, 23 Dec 2024 12:07:07 -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 1tPlta-0000db-BO; Mon, 23 Dec 2024 12:07:06 -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=CqtPsXZcaw6cRT5gfD+bR9lFWdTL51lSoFbE0Ki5D90=; b=LPbgHMgJ5mAQ+/bAKEcS7t/LrozXjhZg8P3e7iOGPmE+zwxSxJXaOQhJFiJaqyco7aqUYaGweNEARbyThwkL6vkMUtDmXkl1BYZ10PMAW+zULPdvjKyf2N1Wd1sK/01QEWTmA7adkNv5eZp8G3k8s3jsDyNlaOZjjrOiZ/XUldrdgHT9dIwZBWwWoQFalTr2mvmO4AvcwFOZ9s2sOfnRKt4CNQdu1YStycxFKfOB9g8WIY0ML+4UJBVVtl0fc0C9NaZr+CEwKJ9p7ydCN6JSEuvHbGfFSsRbpj5PQtBu/L49XnbxaoECeHF+991WTcB2g2VgGe4wCXHoNd5vUlb2Kg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPltV-0007hw-Ru; Mon, 23 Dec 2024 12:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 01/14] guix: Add loongarch platform. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, maxim.cournoyer@gmail.com, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:07:01 +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: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Maxim Cournoyer , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Maxim Cournoyer , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497359229577 (code B ref 75051); Mon, 23 Dec 2024 17:07:01 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:06:32 +0000 Received: from localhost ([127.0.0.1]:55839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlt2-0007gx-2b for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:06:32 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:46953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlsx-0007gf-Af for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:06:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973577; bh=CqtPsXZcaw6cRT5gfD+bR9lFWdTL51lSoFbE0Ki5D90=; h=From:To:Subject:Date:In-Reply-To:References; b=gWa45RCy7saD+MYNfsNWiGZC2OWswprJ6rBgSQOgF80d0XNW5VHcyk6mUgMlRiPrx irv0uykxtBWm8DZdM2oQpzE1kgFJxHQK4xkuswXtNsg7T2Sbiv0TUn9v2SfVReaZD5 oaI1e8nYbm3F7P+Mx347K7jwqDjLF4vTDsJEKcvI= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrszb21-0.qq.com (NewEsmtp) with SMTP id 18A9C8A6; Tue, 24 Dec 2024 01:06:10 +0800 X-QQ-mid: xmsmtpt1734973570t04bjzr5x Message-ID: X-QQ-XMAILINFO: NB2Y38G+/V2YbWAVkJnn0Iva03Uf6bayLtl+x6D2azTSCw53guAmPfNkVTVMQT K5vcEH46ue07CJ8SIL1vSFGvyPmDQZvJlp4GeEUnCX9+mV5x81+p4AqZQ+FCUd+aSL00lGaVZHyV ddV8yvx/SUH4pZU1/hTJQCTrOtktBNUGw87a6rYMDGSRX16VGFglbw/FlmvoKtb4kFPg4wOj2W6k NETbYfU/QlX1mwktt5azuEOCl4r7dQ3LXzLmESUGjqYDmniUULWthaMaJKCeSuKadf5f+eMzK8mr GHyAmaCmi2O7F08GO5ROdV2aUDMs1StsP6Nu78hLS8E7GUYihanqc/xC9E9n05U5U6D/OSxlrUmv LPb0O4uJl21mMKaZcH78W3tJq15gSGZQiCC5+kpR3pq15ZdzYVy4l8/lh3bJ86a+ZXyzlr6tQeSC 0NCJmFFfJy5HFfRn1YFKXynl+QDv2RgFUUbNaKdUEqUN2N7z5kK8jS8kNAs+7hWFRiCYaho0GN8E pXcgtQzP6RSGc+jpXArm44e3GfZgvnJUfEtia1/fARzCwkoceqyv3rBlnkOGkpSvzFMLjK+1u7Y+ goXTdlapk8PYZg3Y5imSSfHpc1QTE1EH9Ggh4nICWg0OOyC7CsuP/fkjmfOXHlbd1WmnLFUVOw/3 +fZCIrT4ZI1Xl76JFZbTamcxZA8eiOX/p2IdGMqeSaw20cwmgQahsWRPeGRziSYSqLRNPeSCWKJB Xtpvd0iqdV3ti4N4ncqZUedwcsfT8ZfTtt4gc0DcH52XhvIHTfFCWBWIrU0BOsjN0OR3QkNuHNGd 2h6JzE8ODD2fhe96KWgoPlBXaGGycRlpGkkOhe1O4cz8upb4YV4UuPB9BODRXkCZ2ooXjVQ5Esx+ DS6xeN1WCjaRCrVLb69Le62pkgUkGYv3fsZK+qy3WJdCCjMCKeKkAskL01dxOgJJu6UkuZN0GKDZ RBKa9bfNk= X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= Date: Tue, 24 Dec 2024 01:05:53 +0800 X-OQ-MSGID: <19f664258a3f4cbb5ca8e233052b1988b4a57108.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * Makefile.am (MODULES): Add loongarch platform module. * doc/guix.texi: Add documentation for loongarch platform. * guix/platforms/loongarch.scm (loongarch64-linux): New variable. Change-Id: I71b8f3cb3b2f0d9562bbbefdc1f2fc4b2dcc4fbb --- Makefile.am | 1 + doc/guix.texi | 7 ++++++- guix/platforms/loongarch.scm | 30 ++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 guix/platforms/loongarch.scm diff --git a/Makefile.am b/Makefile.am index d3eeaddaf4a..413f3caf518 100644 --- a/Makefile.am +++ b/Makefile.am @@ -140,6 +140,7 @@ MODULES = \ guix/platform.scm \ guix/platforms/arm.scm \ guix/platforms/avr.scm \ + guix/platforms/loongarch.scm \ guix/platforms/mips.scm \ guix/platforms/or1k.scm \ guix/platforms/powerpc.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index f7b75698870..576bd45ba3d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -116,7 +116,7 @@ Copyright @copyright{} 2023 Karl Hallsby@* Copyright @copyright{} 2023 Nathaniel Nicandro@* Copyright @copyright{} 2023 Tanguy Le Carrour@* -Copyright @copyright{} 2023, 2024 Zheng Junjie@* +Copyright @copyright{} 2023-2024 Zheng Junjie@* Copyright @copyright{} 2023 Brian Cully@* Copyright @copyright{} 2023 Felix Lechner@* Copyright @copyright{} 2023 Foundation Devices, Inc.@* @@ -17021,6 +17021,7 @@ Cross-Compilation - i586-pc-gnu - i686-linux-gnu - i686-w64-mingw32 + - loongarch64-linux-gnu - mips64el-linux-gnu - or1k-elf - powerpc-linux-gnu @@ -48981,6 +48982,10 @@ Supported Platforms Platform targeting ARM v8 CPU running GNU/Linux. @end defvar +@defvar loongarch64-linux +Platform targeting loongarch 64-bit CPU running GNU/Linux. +@end defvar + @defvar mips64-linux Platform targeting MIPS little-endian 64-bit CPU running GNU/Linux. @end defvar diff --git a/guix/platforms/loongarch.scm b/guix/platforms/loongarch.scm new file mode 100644 index 00000000000..3c73c75ffd1 --- /dev/null +++ b/guix/platforms/loongarch.scm @@ -0,0 +1,30 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix platforms loongarch) + #:use-module (guix platform) + #:use-module (guix records) + #:export (loongarch64-linux)) + +(define loongarch64-linux + (platform + (target "loongarch64-linux-gnu") + (system "loongarch64-linux") + (linux-architecture "loongarch") + (rust-target "loongarch64-unknown-linux-gnu") + (glibc-dynamic-linker "/lib/ld-linux-loongarch-lp64d.so.1"))) From patchwork Mon Dec 23 17:08:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35219 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 C85A427BBEA; Mon, 23 Dec 2024 17:09:13 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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=unavailable 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 3B7F527BBE2 for ; Mon, 23 Dec 2024 17:09:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlvW-0006aq-8x; Mon, 23 Dec 2024 12:09:06 -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 1tPlvV-0006aU-0r for guix-patches@gnu.org; Mon, 23 Dec 2024 12:09:05 -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 1tPlvU-0000lr-6X; Mon, 23 Dec 2024 12:09: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=wvCDH7kdYI7H8ZAgh/sXkvqov2XvS2xGZcT/vYzhYRA=; b=iHdnHkUUh4tVYS7M17J6AX00agSnOiM1cyrWkqeClVqiY/N2JZiW6KxztR6CzC8SZop7CejudFfVn/66n2QdLTNhUhGUKgGSKvLVXq1NKqRFn9zDkfcDiO+IlNMf91QraTvDpB1Ic2/1yMwkhzVtaRTTf7QfRkRN1gmGB1x9ccluezLig21aG9MW4mUOQtSmhTbVYUumFcYZtVJVMlivwwlju5LPz80B4UfqJK2h5Qn4MhYpcHfCBZMye101kePw0JtzrbqSYaBcb5XOxtKGbzw1AhsKniJqHwWG1X5/md5nf2T9387aadYvFnSXVr29aQn5SLFM06vTx6fhfdma8g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlvS-0007lI-K2; Mon, 23 Dec 2024 12:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 02/14] utils: Add target-loongarch64?. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:09: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 Cc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497371329796 (code B ref 75051); Mon, 23 Dec 2024 17:09:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:08:33 +0000 Received: from localhost ([127.0.0.1]:55847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPluy-0007kV-SD for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:08:33 -0500 Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:54589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPluw-0007kA-Jq for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:08:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973702; bh=wvCDH7kdYI7H8ZAgh/sXkvqov2XvS2xGZcT/vYzhYRA=; h=From:To:Subject:Date:In-Reply-To:References; b=kOVYgL0OjSItj7EhA3LVX1Dp4nCbWegud0pPOmKQyYG7FWRBHP3harA/Apq7GQmV4 vqfRaR9R1upPmS13loT0dLmcZ+oZfxlANNviIEFxpL25jJxfAB/l1tTwblf+aUcvK0 4fa+OwDuWypjQlL4vjobFLBzGUib6t3R11d0rhLo= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrszc16-0.qq.com (NewEsmtp) with SMTP id 20F07CA7; Tue, 24 Dec 2024 01:08:15 +0800 X-QQ-mid: xmsmtpt1734973695t8ajnxssa Message-ID: X-QQ-XMAILINFO: NssJ/YX50roaDmcFjBj6O7UuJvsKrbeRa1qPh789sdEZYW9cdwB0v+lhTOyYV5 tmk6bHZQOcT/LScn2WAuJqo+WYBwZzM9HHmuqoBsobdVqyk+RJ3gWej3HC1o01LOcrvzJvJwIwZb xQ0hYOEdRW+WOWY+MxpTsX9+rNrDxzzbIg3uaokLimoeK4B6P2o93p1Ddyoih5w5yrTcIxXIUDcV TUeHC6sln01jJ7/YajkdQ4IVpm11ptxoSeSKNA+Hw4ehzV+aFswQxbyItod+3geKC1s1QSuf9uTt vP1zWoo6QHsHn2ts4Q6rVQaF/d6eI/rZlAfInsOtw4t10rlg9BolOHk+SzFz9dUZDBqLyJ43+Y06 /HWGOjuPVOebtZSxDbFn4GzX5YwPIok611LoMXt50bfqcNRNgaw5Lur79KeUDNyyBJKGON+xykzd oGahRL4Qq3nSgSQWzD5SVu4cufw5lZ3MW9SNi4B6yI3w0I2P3LgtrqDpL/8uPjGOsCrAO+hcgGS5 ou1p4XCYq1CWJwGLTxbuVMvmIaE+PoH59i1jt3kwlsDSHymvUX/Fk+DY4EU6wa8OVwiFk+T4GCT0 KyXzJUk2/2wDPnoX1c9EF4/O/gpm6CLfOPfc+1f3Ab6MziCadMsvfZsuwm3jW2VM5Tbh8ZyP0I9L vpZjHoRSd+nIObUn9rxLpe46IIfo55ijgs/ljSbPjSKi6o9e9hFD0Zb/+scLJ9EJCyhkhWW/fQNR ZJ+IjNNRtiFYyutcZZ4EQWPOL/BVuUIRx6RuBxyYS4qKAitvUaJgzqxISRG8InjOqZ4rN9p5S0LA /PrCBb/USx9j26E6HMfCE7reluuz+fxPuE/IBWehvMzwPApVaHnpAQZY2sCOEisPYeKf8lVB7BA8 uaO1zKOahWX/gumGApjSVMr/PlGtwiieFJV4PEs/i4kAmMl8x3ekisjEDcO2JZGowPPKuKnLDASR uONIuJ3IMyNCDUx4Zs0/hk3iBIpqd5h3/ksACpis0= X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= Date: Tue, 24 Dec 2024 01:08:00 +0800 X-OQ-MSGID: <836b95f22ebf980093d384f94f5e25a4a56c981b.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * guix/utils.scm (target-loongarch64): New procedure. Change-Id: I8d21bcf04d479937039f6f507b5460bb560fd8ec --- guix/utils.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guix/utils.scm b/guix/utils.scm index 537d0490e01..a07f26054d4 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -112,6 +112,7 @@ (define-module (guix utils) target-ppc64le? target-powerpc? target-riscv64? + target-loongarch64? target-mips64el? target-64bit? target-little-endian? @@ -801,6 +802,10 @@ (define* (target-avr? #:optional (target (%current-target-system))) "Is the architecture of TARGET a variant of Microchip's AVR architecture?" (or (string=? target "avr") (string-prefix? "avr-" target))) +(define* (target-loongarch64? #:optional (target (or (%current-target-system) + (%current-system)))) + (string-prefix? "loongarch64-" target)) + (define* (target-ppc32? #:optional (target (or (%current-target-system) (%current-system)))) (string-prefix? "powerpc-" target)) From patchwork Mon Dec 23 17:08:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35220 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 876CE27BBEA; Mon, 23 Dec 2024 17:10:17 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 369B327BBE2 for ; Mon, 23 Dec 2024 17:10:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlwV-000729-VE; Mon, 23 Dec 2024 12:10:08 -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 1tPlwS-0006uz-Vh for guix-patches@gnu.org; Mon, 23 Dec 2024 12:10:05 -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 1tPlwR-0000ya-RM for guix-patches@gnu.org; Mon, 23 Dec 2024 12:10: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=w9X6Zyl/TxgOb0addpIF8YhqPDqUJ1LXodc6FJESsJE=; b=CajB47vVA4d1U6OuPykk0puSC9hG7tUJjI6z5FCbir2FBQHHnMcU04WQfig0Jd2QhIYj0ZW9C2F2Kb4EU7TZVSwPCeyAa4dhfiDnHJ1QlFR/iigTupkxZmVL5EVPNa7rNW+V85cF80Pb/mwQsPz5CJAmYNBGn/bjc2S41JYJiqoiJ8egHTOkt86mLfGxQj/ztXhYCqiFWfp6uuELg3m16IjNwGfPdGexXZpJ97Szg0C0OKMSfmuc8gmyyowA47JzVYkyT9d/pF1hXCWqKE4BGSg9OtoO+sLO4zzKBOWHS0jPQ7W///MbJk3QC3zqvdDjx8Ww+JA+LNbfMzE6S0yRew==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlwQ-0007nA-4r; Mon, 23 Dec 2024 12:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 03/14] gnu: Add linux-libre-headers-5.19.17. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:10: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 Cc: Leo Famulari , Wilko Meyer X-Debbugs-Original-Xcc: Leo Famulari , Wilko Meyer Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497376029895 (code B ref 75051); Mon, 23 Dec 2024 17:10:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:09:20 +0000 Received: from localhost ([127.0.0.1]:55855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlvk-0007m7-A8 for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:09:20 -0500 Received: from out162-62-57-49.mail.qq.com ([162.62.57.49]:40955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlvh-0007lm-Fh for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:09:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973749; bh=w9X6Zyl/TxgOb0addpIF8YhqPDqUJ1LXodc6FJESsJE=; h=From:To:Subject:Date:In-Reply-To:References; b=pWKXnx2YxyoStXay76zE7ObThUUAiBhMlE7DAiqNZyiB6chb6F3p2bcNrzUUYRE3r xk7RqeFHtEW60tvYmzFeSWTWequww+yM0vg3OfUhE/DlPyh/7C+i9GV+9AhpmrChny 31Y4iQlM27tSsGCrYEtD+blauIZFMOc7zrbigbCo= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrszc13-0.qq.com (NewEsmtp) with SMTP id 2412085D; Tue, 24 Dec 2024 01:09:01 +0800 X-QQ-mid: xmsmtpt1734973741t32vny5c5 Message-ID: X-QQ-XMAILINFO: MAuNUVf8wtPHwBa7q0+oOC/vKyfVCZW69RzrdGJPYL/o4O0YRw3OCCmhO2B9YT zRzghAtyJSJP8N53wcepjaqfpFaM8fyr09sgZ9/40gZif3Qz2/mwgu/UYRYMJnG6Xbyv+Kw1Ecj1 31Kg9VetD07zfaOC0iHRZ742iST5i25zD+Bhx2Y0bP9dNtf1vUXr6+HwtCT0d8xomcSWfvSTVa8x PqDf87dbqdEZ2qvgCDm+956GOyBR6sOUIU6JXgj4/xugl6Isq2z4XwG0Y/nqjVRtaytbFuHbR1D5 YM+rA+Yn+kl9pgHNUDlTOudY2pKg7JO+Z3UDDgZzWMRMTY7niwUFrUERqbfwPQm54c5bkKzF4P5+ w0Fa9MliqEKUU51vHESz575IZWwmHofSr3oHzF8dharZVoQj6cUXS3KSTgpmoNoSA1rrdRhLIvWw 71PfTWIG5qazCNG/lpce/zPu9+G86w1MlpxuIk5NOMw2BDiU5f2jafaTG3zDIyheYl9vUHPNVlDs JqVWTtFk/WbyyUOrDrD6VGTn2t4HIGUcmLvHdJcbkWlj009okY+a+QQhn0ckc1XQ2jmTSW7uUOUQ BlNxrRA3mhEUuXMhwTtFjg6bsLF5dxmLBTC1h9VsaVVXoPsY1wzeKWogxeg0RSN0lPn76iCdHEbq b0aZrmYfMpW1vt+JI1srJ6Gg6TL9G0795+5LLUwr7U8ByhKy0g+oxFtsCMJ14lgygukrR38kYgwt QZHJK8KIpaE99p3PYdBN/uCOEIjOBuH2xYntrUMzTbrcMHEOlC863TDJjc/Q5cXPPkRFCmF0nhPn RFqapYbwpRsunUph4vwcPXM1SKOk48h0IScpINqVRihri8fO7jUw4FMgduAKcfV+1+knpyy+Jkgo kSRu4ufi20RHfyjYj8u2Dk/sBJxT6DLHy3MLzesL+kPZs1/rAwBA/2kZHl1ysQ2LalahmCN2KEn1 jAzcAa2lHk8+zA02/9ZxBAjKxcBwVeQ9ycGDz5jsE= X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= Date: Tue, 24 Dec 2024 01:08:47 +0800 X-OQ-MSGID: <24db1b3a3cdac616c90c3ae1f6f9fa83b39ec021.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 linux 5.19 include loongarch support, so add it. * gnu/packages/linux.scm (linux-libre-headers-5.19.17): New variable. Change-Id: Iddd930c1f7243f5307bec75c41f70d5ff5bbd531 --- gnu/packages/linux.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 78d3d737b59..c3d9aa429d2 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -818,6 +818,11 @@ (define-public linux-libre-headers-5.15.49 (make-linux-libre-headers "5.15.49" "gnu" "13zqdcm4664vh7g57sxbfrlpsxm7zrma72mxdfdz7d9yndy2gfv8")) +;; linux 5.19 include loongarch support. +(define-public linux-libre-headers-5.19.17 + (make-linux-libre-headers "5.19.17" "gnu" + "0m1yabfvaanbzv0ip04r4kvs16aq0pp2dk93xzi5cq18i3vw351m")) + (define-public linux-libre-headers linux-libre-headers-5.15.49) ;; linux-libre-headers-latest points to the latest headers package ;; and should be used as a dependency for packages that depend on From patchwork Mon Dec 23 17:10:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35221 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 1FD7427BBEA; Mon, 23 Dec 2024 17:12:18 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 6805E27BBE2 for ; Mon, 23 Dec 2024 17:12:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlyP-0007eO-UC; Mon, 23 Dec 2024 12:12:05 -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 1tPlyN-0007di-M7 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:12: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 1tPlyN-0001EZ-9t; Mon, 23 Dec 2024 12:12: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=DDNV53HXH0bvNDPNe8HPA/bLxXDXaIvfzGbc6+tS1XU=; b=Iadw+WBRjRkSv6nUZyiwOYPwKafp/Sjebj90PMmHQQ2AKOlVmn38H3ag189SaW9QTphorH3/voVubrsKrJ9g5Tbvp49sLJEZsYqo3bcmt1fZsmlt7AMbcSJ13vx30SQsWBPxiK/a2ZYhcwf4KWRzgNuFx3jg3vo1nmjWyAz9xzoIKJtzknoUMiMlZ6zlqnyIM5DJb5IFXLYZ4dLuZYvmtO1ph0dNDWM1/iAehOxPVWjeYCibUh/PyCUOmjJ9TrzKitOfoVTuIPOsPYvVC+nsyCNoxWZ4mI6Buts1UYH92m+exz6JXMGtIIrniN8ZKTNU16Kr+N41X32MG810lU3Uow==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlyM-0007wu-As; Mon, 23 Dec 2024 12:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 04/14] gnu: cross-base: Add cross-compiling support for 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:12: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 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.173497386530456 (code B ref 75051); Mon, 23 Dec 2024 17:12:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:11:05 +0000 Received: from localhost ([127.0.0.1]:55865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlxQ-0007vA-QU for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:05 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:56679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlxN-0007ue-W4 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973854; bh=DDNV53HXH0bvNDPNe8HPA/bLxXDXaIvfzGbc6+tS1XU=; h=From:To:Subject:Date:In-Reply-To:References; b=w1RoEdW8BoMfBZR44Osa1oDwFh+4LPWuxwhsCTkK93/qdC13jG1GacYZOCjdtoEGT Qh1VQMNEd6eiQg9fC9t4ml3SPWhd3SOgy4X3uNyRd0qNhoAaLEv7SIlNceakZCnjph /hXmQGv6P/+0U/D/jP5P2ssdRTfhBrFXh1iKLqmg= Received: from m.tailaa68d.ts.net ([107.174.64.25]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id 2AC18064; Tue, 24 Dec 2024 01:10:44 +0800 X-QQ-mid: xmsmtpt1734973844ts7yn6vp3 Message-ID: X-QQ-XMAILINFO: N/WmRbclY25GK62OQFrB/2W0BXCqicDlhK9iPTaszYQoEXwpOLY2wcem4LKkNv fSAQep1yuVE0aM9n7737+5hGmoKFiHf+m59evzTEKS+4wm2I+qFEcXdKS1qzEU6Pvt2OMkSmfOE1 awgaE9LpMSNpULOPrqUWaVREfE0KUVsTF1NGRI2gTxWzJOyLi4S3kVAkyjWizPVKIk3LOmDsFcai lqz2yx9uC3uA0YStKzLnURjnVcbkyt/ShFekqJEpEWGU6tq4KSoLr1R9849Yn/08xnhpbAULMIiA M0nC3u5fIU2Q33Al2hb1r4w1xxzxsOv6kuZzyWjucV0cjBcfxRLxzjeGQK/bPyK/h/gB4y8xkkfN cHY396NDRgD1abkQjlScdT1LjIu5tPTh0oEPfFrz7YnEHiQl7bL4BvP+/M32hwHTU6UNWK3yh/fQ JOGqqGFiUBKlXhTaznBY+qX58BmeN2h6Aj/J5hc27jiAI7wFkvaZsXu0wVFqQi7T9Xp19IM3YxAM sRZ0kaPCCg9ZkygZxZIT++6kBJNoYmtRMFTCQoDNROu407DnnyX9Wd1fTeieoQbbRiZO46UV7xgG QvfaVxfksDE5gdD29kpKgIGiGMQ8vPuujdn46+GiThhZS5lkrTcH5CeQ8fwGDQc7APLMI/QNh76i a7jdsw34rIKC6PRRmrfBs/Et35usGXEqxyDj07PPh0fbMv5ue8U47rLgxGnWvrQkiblKaxxZo1II Aj+x8zSL1JoEsQlU0r5vGhjWaflUzoJXkY5Uu9IQuvTKOOdKWCg/MCYCqQZGJBn1cmifiPww8nNH UKA5uRazpY44Xgf0AqyIaR0djaxKaM7kq9HEfhoM3WmYYlt1Qf6KIvVYA06aOmZTLwFLL+1auMqy MD4w4herN1RVhaPyQOlUleo6BPpVC2IjEQOaKQ3fVySl4NvtRH86cjpeSxfzqO/H+eRborO/DnGI iCSWySxp5F+bzqtqOkGlsv6F+SXNVWE0Ch9G/Vb74= X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= Date: Tue, 24 Dec 2024 01:10:43 +0800 X-OQ-MSGID: <5102857426b19a4f23e93270dc3e46bcf66f5e9a.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 gnu/packages/cross-base.scm (cross-kernel-headers/deprecated, cross-kernel-headers*): When target loongarch64, use linux-libre-headers-5.19.17. Change-Id: Ib144ebf86428dddd92f5b899dc241a428f8dc374 --- gnu/packages/cross-base.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index ad3616eaba0..a4e9c2a9cb1 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -418,7 +418,10 @@ (define* (cross-kernel-headers . args) (define* (cross-kernel-headers/deprecated target #:optional - (linux-headers linux-libre-headers) + (linux-headers + (if (target-loongarch64? target) + linux-libre-headers-5.19.17 + linux-libre-headers)) (xgcc (cross-gcc target)) (xbinutils (cross-binutils target))) (warning (G_ "'cross-kernel-headers' must be used with keyword arguments~%")) @@ -493,7 +496,9 @@ (define* (cross-mig target (define* (cross-kernel-headers* target #:key - (linux-headers linux-libre-headers) + (linux-headers (if (target-loongarch64? target) + linux-libre-headers-5.19.17 + linux-libre-headers)) (xgcc (cross-gcc target)) (xbinutils (cross-binutils target))) "Return headers depending on TARGET." From patchwork Mon Dec 23 17:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35222 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 B907627BBEB; Mon, 23 Dec 2024 17:12:18 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 87E4727BBE2 for ; Mon, 23 Dec 2024 17:12:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlyP-0007e3-4e; Mon, 23 Dec 2024 12:12:05 -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 1tPlyN-0007dl-OP for guix-patches@gnu.org; Mon, 23 Dec 2024 12:12: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 1tPlyN-0001Ea-C8; Mon, 23 Dec 2024 12:12: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=yH69AINeqqTd1rBHxEhfNaHYMIPDT+iy1xECWk1pyBs=; b=lgNlgY5cwvdkRnq9XxwUPkhWx6UA/Q+J7NAwb488JHVLQsfyJ0ErSZx5+b2tyucDmHh+HQA9ZbuhGykiTm+vY0C4s6RwaIBnR1IY3mT0SbUqhz4VhulgwzLla69UNECYTEWKTso70zuEYws3VMiXUDp8wKCM05+XxsAbAICSDa9+PM1Lsju7GZprWI2xE45necWcJEmBoBQfBrMlOS9H24v9aNmlhTYd+wsYblbt+uYH6rzd1KS86HXIeCjl1wDjweED1nRPnm0m5qp3LRnIl+87NYYfk9m1hfZNLscRgsZ8PxCg2aKYN2ziStCuxtmfqfHIDhbHOdFGrnoMQMQ1kA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlyN-0007x1-5s; Mon, 23 Dec 2024 12:12:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 05/14] gnu: %glibc-stripped: 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:12: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.173497389130500 (code B ref 75051); Mon, 23 Dec 2024 17:12:03 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:11:31 +0000 Received: from localhost ([127.0.0.1]:55868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlxr-0007vr-9P for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:31 -0500 Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:42675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlxo-0007vb-14 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:11:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973881; bh=yH69AINeqqTd1rBHxEhfNaHYMIPDT+iy1xECWk1pyBs=; h=From:To:Subject:Date:In-Reply-To:References; b=JMv0q+O5lQZaJWxJ3aI+s9CjR0w8K/mjfiMa77RGNfG87dV8Nq4EQrtM98rDEVye0 klZdset5fwhLEXe9Oq77hVXaq154M8Ibuc4tdJyQQevJE5RS+cp9jsnCw6C5H0+CiV xHmNMkMDjee2q2GyPekJFshIjWqH4plpTa1lSC2o= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszc25-0.qq.com (NewEsmtp) with SMTP id 2D3B6E11; Tue, 24 Dec 2024 01:11:19 +0800 X-QQ-mid: xmsmtpt1734973879taenjqy8l Message-ID: X-QQ-XMAILINFO: M2SvzgchpLqfeFdTxlfA+Q80GCbqCjjEltANq20IeCcymGRw2voU9N4GC2/65P bVH/pDUfS8sMDGDINHmWGeiek8v8eKBQg83tYOw6F3dzBut+Nx+FAqANFbxLJFb+HVwJFo/sSfaA S1y1JqZBkl2CilwditN5Q3LnN0w7wr5w4hqX9oRL72mAhnVlj6j+/W9RCSWzzQqSTnTb6fg98G8l GYjsGnLwVFFx25/chJGPHiw35rBcNS0oPvkagYTnH/Dq0qOY9h9qF6D+xDyjPptneXcy8xax7rD8 6vv/BSy4Jte832sZM+qhC8hwNCeifNhN+JJeq6ZGrL96LMeDO6g4ZNq6xZhUNyzvBCPoOA080rTl RkZoTkh63OMxKUSYvcyRYe4A7Xq9jMyE6ee0z/ZkM/e0vOe3uYuokBGsopj6U2bmODBk1VSeEPPs oMD6a7vEmNF4OD9qMdMpKxyf0118Dyep0Bm7k7mLSNVs2K6oB2gNyM3Pu9CUA4hOn/nY08ugr742 vGrgJQUaTBJbvdCW2vr+QBf5sMzFkFGPvSjwIFXzQKYaACPKg8pFJ30RQpDQhcdqdiDInhSWOvKE hCHNtFE6ADiApD36xVsJ9+fVxOkM8AjwAW1tz4ajPh9wJ77RbWfs8iVTRjVLliNLRgLEc2SzCydB XS16njgOmeYhI2gRZ2cRLS3mPJKPfgwkSosYcRXIsu/MzKp0WTC5BK1+aqb8xWXsRzF7OXFpcYsD xcGA6siv+bDx+4o5q6epHH87Q1Wgzs7QI9QRiziYbaRuLOeJiXr/GeelTYqBDDwtbQ5O0b/cEGfh McO/jIX9hARHbG1MjvOTgmFO++IcvK+CqVVc4WAkuQcaXezV7z4LonXI0C80+D+EvCdj6oF9fjV7 3BT21frYU3xiafIHrz2bihdEunaDsDR5+v1xGLzLWA7HAaneaPcw9lvrWNuHRkPnFqv9W8NVIbXT JetBnmHBdDPjA0dcIQAKR/qlxydftp X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= Date: Tue, 24 Dec 2024 01:11:09 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 gnu/packages/make-bootstrap.scm (%glibc-stripped)[inputs]: When target loongarch64, Use linux-libre-headers-5.19.17. Change-Id: I4b2b9168aa3716445d1b88b4db3dcf4ad038a45d --- gnu/packages/make-bootstrap.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index 59c117f2260..adbd2f4ef70 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm @@ -475,11 +475,12 @@ (define (%glibc-stripped) glibc))))) (inputs `(("kernel-headers" - ,(if (or (and (%current-target-system) + ,(cond ((or (and (%current-target-system) (target-hurd? (%current-target-system))) (string-suffix? "-hurd" (%current-system))) - gnumach-headers - linux-libre-headers)))) + gnumach-headers) + ((target-loongarch64?) linux-libre-headers-5.19.17) + (else linux-libre-headers))))) (propagated-inputs '()) ;; Only one output. From patchwork Mon Dec 23 17:12:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35223 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 586B927BBE9; Mon, 23 Dec 2024 17:13:22 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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=unavailable 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 6C9C427BBE2 for ; Mon, 23 Dec 2024 17:13:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPlzN-0007uS-QL; Mon, 23 Dec 2024 12:13:06 -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 1tPlzK-0007tU-B1 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:13:02 -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 1tPlzK-0001NH-2H for guix-patches@gnu.org; Mon, 23 Dec 2024 12:13:02 -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=nrwYVdY7h3e5WkAVFP4yiYnQkvm5XrKhrfU1TJ7Rf/Q=; b=YiC8s8jdFidrGcdCDdoANEuqbXQxy5zoRCwCuMcnSIyqakQjkYnA7HWVRnYNjoN6/rP1MdB0MJ3exKJDAMgIi7C0QYxw5vCO5yYNzKZtyYNFMFj4SnuIBkRUOsL3ryBPmJS0Lhit5eoh+BqPcK9wAcme4P2HaK4Ti+ETFNa3U1Gndy7jNw9YR18XatzQL+uBfMW8JC+LzY/HegIf+NJcXdY1TEUPNSJfw6A2OBJKAQP/jvxyL0c/DNhDd4FnUKWf01/0mkmPkgbUpp92do8xKTn+c/s8Mao3LE2uNqZJSUn5Ysnd8jq1muFU9XRlTnd+RDFrGRRAKEN9jF6j5c6++Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPlzJ-0007ys-Sk for guix-patches@gnu.org; Mon, 23 Dec 2024 12:13:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 06/14] gnu: openssl: Support 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:13:01 +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.173497395630636 (code B ref 75051); Mon, 23 Dec 2024 17:13:01 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:12:36 +0000 Received: from localhost ([127.0.0.1]:55877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlyt-0007y3-N9 for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:12:36 -0500 Received: from out162-62-58-211.mail.qq.com ([162.62.58.211]:44347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlyr-0007xn-22 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:12:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973944; bh=nrwYVdY7h3e5WkAVFP4yiYnQkvm5XrKhrfU1TJ7Rf/Q=; h=From:To:Subject:Date:In-Reply-To:References; b=KFgj5H18LUg9b4Cloe1j/ZCcxEa/SgCj3xhNMpPb3v6A53dUnADtHShu/tgmtIL0H sdGphcrC5N9RSfJBKVA7VjkSbCFl39ANq7jn05GCG2vJaAUWh2ksmxQkw+ITubS8Nx yAXCp5zyXeqDN2M10uRquAiKM+VWW9sOzXmpzG+Q= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszgpua5-1.qq.com (NewEsmtp) with SMTP id 31792E0E; Tue, 24 Dec 2024 01:12:23 +0800 X-QQ-mid: xmsmtpt1734973943tf9sjr251 Message-ID: X-QQ-XMAILINFO: MhK4DKsBP06iUVjU2i5XO2SLx4q+WmONHQyzcYCo4k+XbykfI3ck4aEKoN7QzM 99g5ssAjAcqldCXhRo+N+RU71JiI4GKnwRikypT1V7EhmXmEJbrAOHVos83NEocaco9GHRUYa6M2 +Kw9yHW6Bx6GrJEvWeJ+v8PYEQaNndOBMWuh+YNmVUoLibtOteZizb4PWhrMdMIl60dM/Y7ANeFD rN9DV8ttggcR0QxuyvF+ABqoSgQa9jHBp5uqdJBKgF0p6hrY3Ya/qvDFEY5lTJOMKePqnbzMakLE 3+3eMepfOK1YJfQALKvWC2jn+43ZFfGO0TLvfOUG5HX7SkXw4W6MhrlNIedbhiru37JU/2eEqUmj jM61bsmoAz28hHV1iMFS4AMtrgPCs4jDHqor3bR8147ZZybagNzSUz8tU7o7dH0eZ930ohYLRy+B hFLOfC7l+vPRxuu+0HbWcpdhqxsbRWC20wCFHCWLnZN0a0HTGwmQf9Pzyz7QLZ8h4yCR1VQNJjmj 3Po6moxtxTSjz7+SNbrvqIsMzx4K0nPIppAnREf9yUFwdqJx1WyqrwNrGOf3dJf0pQp1q14FHh5j P8MmsmIis/1ZUJPbdUfs/4J5BohCNI7AfjOEdoZW9pMRj5LiLz4PDKuHKKMNmh3HxIZZCN9b8JoQ Ccqz1cppHH6bRDZ8ndmP0aJfSA8sHXkXJ3CztTFnY65EGHNlhColgYXB/rSr3ig41B7YhTyy0JzJ 4PLzZ9kuKT1069gDDt58Ahl2CBjBa1wP3RViSjsTN0cd/voMWgo64sz/b4SQvKty45uf/qSqvdBI dHd1Ja/LlRNN5j2qkZ1lMPzVCK+rZPGBaCIqGruZKEsFgCzTbcnJjLWJESG8+8y8ctYuhKU3I6Ls yp46dd1/gxDfs4Ygd1pQIGyR21YVjgsFVylfRoRZ9XXqCK346Ecweyzu9NNq2GsnyMQeZUgg+ub4 yCUGXfJnhwQTPaIGXFgBmSpR2eiF7ecrr+r+cV0oo9co09MCaAx8Dn6QQHU62f X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= Date: Tue, 24 Dec 2024 01:12:14 +0800 X-OQ-MSGID: <51194393178a7b79a6922a18532c4666415eca3d.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/tls.scm (target->openssl-target, target->openssl-target): Add loongarch64 case. Change-Id: Ie85b4e1f39650f6134c9b5c4c81e0d5f83068558 --- gnu/packages/tls.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 5f3bc72f6e2..cde5316cf43 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -397,7 +397,8 @@ (define (target->openssl-target pkg target) (cond ((target-hurd? target) "hurd") ((and (target-linux? target) - (target-riscv64? target)) + (or (target-riscv64? target) + (target-loongarch64? target))) "linux64") ((target-linux? target) "linux") @@ -427,6 +428,8 @@ (define (target->openssl-target pkg target) ((and (target-powerpc? target) (target-64bit? target)) "ppc64") + ((target-loongarch64? target) + "loongarch64") ((target-riscv64? target) "riscv64") ((target-64bit? target) From patchwork Mon Dec 23 17:12:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35224 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 0EE2F27BBEA; Mon, 23 Dec 2024 17:14:19 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 1D79927BBE2 for ; Mon, 23 Dec 2024 17:14:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0J-0008UV-IR; Mon, 23 Dec 2024 12:14:03 -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 1tPm0I-0008U7-CP for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -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 1tPm0I-0001RX-2K for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -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=LOlqv2vg6Mu6JpY5J5wSYG+U3/Ai0dGn6whE6QEfb0s=; b=ZAsgc8NkfAwqZbsJkzXPv9j8OuIishb6zlHKqXwI/+mQvfscAZe9UCnlQae1qE3GgfQVsX8uTMbAMp+kYHKBFkixaH3iJEu6Z+EO8nrOSGSJ6eMa9LJci+oyC/7Kr1YfEbbTyoZUVNP+p8dVDX7A8PDWLFz9uREwVULDQeKlMqjPtx7lw0wQHtXGJMUSuqLRQ5tNGF2Wq3fMj7x5KgkKcUQccv5Tr4wOiBsM9Dhf5Dtj9gdnMMwFwRtlD9WxS96OCMn0RvqEst9C0N5beiXI8nz/dBXTb1wjnjXnKmm2d3owJHTtKvYNCXeZzsNN2NzXG66Lk9f5apuCiuBpyHF0Tg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0H-00081k-Sg for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 07/14] gnu: readline: 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:01 +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.173497398330704 (code B ref 75051); Mon, 23 Dec 2024 17:14:01 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:03 +0000 Received: from localhost ([127.0.0.1]:55881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlzK-0007yz-9Z for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:02 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:51791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlzH-0007yT-EH for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973972; bh=LOlqv2vg6Mu6JpY5J5wSYG+U3/Ai0dGn6whE6QEfb0s=; h=From:To:Subject:Date:In-Reply-To:References; b=t6dCV8uSpcgbCgNa8eeLMAyuKZihsJluQJp3MGaRJTrqb4BF32XvWYMdCCrE8IxYF ih6OGHvH4jXk3IR9n+ZL9T74baHj20XMagTpxJ2JY6WLS8trQoO+OuUmV+O9MEiJra 8wvaf6/plcH5iorVFCc18VOyCnks7uz6MA+3jcJQ= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszb21-0.qq.com (NewEsmtp) with SMTP id 3332465E; Tue, 24 Dec 2024 01:12:51 +0800 X-QQ-mid: xmsmtpt1734973971tm3eicgrb Message-ID: X-QQ-XMAILINFO: OOO9dHjlsLs77ZUwHSqZJQL0QzOFfXVgyCDk7sgmVI9KGp1x5ouHl4g58iyRdV 2Vs7w9LeuHn7KeQ0OR4YcypCe7jMoaUgNMAJEIBFFpzhsC+wK/PFv9E8qXfrdSYRrabMr6XaxLr+ DwY68Y+WdF88WnnrRPRIu6LKaIHJQERQ7t+lKUAJoQ16p1y5U4jZnlNYggXyI4mUQWnCnyweT0LO HAjm4VrvsthKvZgfbA5cuhPx4OtBGS52mDSxBFi0ytiI6QYVISErpBrX/icHOd+/50H6raFkS7KM ZTWpM7wYesYDSzsOtqIL9hAS9Gy99LR2MceN+CLYhbyJS/OhKpx+q0GP3PhZ8uaplnsEINwPQqsg aGQkckBhfd71R+nfp+WosNR7cCRQbKFNRCM2nPuBx0TAvxLRZMFU9lgVONlcw6UyeXNWGbo+t88M ocV7E9MNb7wnjbNRaOu9lAWRmfAvXJYJ6BLJn36gtEcGJtB2pqAnVdbfFvJgggrcYNnjgo7lSed/ 1mpiSLC05r9PsAiFawhCZMQne0beNGcdQNTTxBr2riqARMKT/YsFt/EZBlfUlH4m1Cq0TvX1wF0Y lWJCQtASe6hJcAG1lLIDikiF4IUh19zh4ISiZxRTbm+eMHLfyVFBzkIi2uKTeAmLACOzZHqPQzZD iDVY0wHiD+jxHrvcAo34d1QUPrrxcgU6Fxhdr3z6YqmMOg46Cdfu+B9pLAT3bWIN2WA7AyvwGkPR ea81h0Txgo5kdyh6mbeQ9LHiWG86Hv3jObeWajfBrjtjhLXHlVY/cQtcrM30FsMXAo6j9F6zWWLW rOgWklR9IuT/XW+Unpzb/qv7nopoKuG7MAPILla38TcVTzd+xwGDuTSlTVoJtDsQhzLkCLXnm7is 5PrduFd2DGKWGkbtbqgra9Ih0+xqzNn0YcdwIMs6/SgNI/fgYn28DI4ROlINEseyEejg/bNZiY8d OEyjh5yxWC+Qiyug9jl2AcdPaGAI32FMTAq3QxjqVigP9mfHXw0A== X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= Date: Tue, 24 Dec 2024 01:12:50 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/readline.scm (readline)[arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. [native-inputs]: When cross-compiling to loongarch64, Add config. Change-Id: Ie369d53c7f2493a7a65fe592a3671719dee264c0 --- gnu/packages/readline.scm | 61 +++++++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 21 deletions(-) diff --git a/gnu/packages/readline.scm b/gnu/packages/readline.scm index 8200a24f1a1..c19c7326497 100644 --- a/gnu/packages/readline.scm +++ b/gnu/packages/readline.scm @@ -82,29 +82,48 @@ (define-public readline (build-system gnu-build-system) (propagated-inputs (list ncurses)) (arguments - (list #:configure-flags - #~(list (string-append - "LDFLAGS=-Wl,-rpath -Wl," - (dirname (search-input-file %build-inputs - "lib/libncurses.so"))) + (append + (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)) "./support")) + '("config.guess" "config.sub")))))) + '()) + (list #:configure-flags + #~(list (string-append + "LDFLAGS=-Wl,-rpath -Wl," + (dirname (search-input-file %build-inputs + "lib/libncurses.so"))) - ;; This test does an 'AC_TRY_RUN', which aborts when - ;; cross-compiling, so provide the correct answer. - #$@(if (%current-target-system) - '("bash_cv_wcwidth_broken=no") - '()) - ;; MinGW: ncurses provides the termcap api. - #$@(if (target-mingw?) - '("bash_cv_termcap_lib=ncurses") - '())) + ;; This test does an 'AC_TRY_RUN', which aborts when + ;; cross-compiling, so provide the correct answer. + #$@(if (%current-target-system) + '("bash_cv_wcwidth_broken=no") + '()) + ;; MinGW: ncurses provides the termcap api. + #$@(if (target-mingw?) + '("bash_cv_termcap_lib=ncurses") + '())) - #:make-flags - (if (target-mingw?) - ;; MinGW: termcap in ncurses - ;; some SIG_* #defined in _POSIX - #~'("TERMCAP_LIB=-lncurses" - "CPPFLAGS=-D_POSIX -D'chown(f,o,g)=0'") - #~'()))) + #:make-flags + (if (target-mingw?) + ;; MinGW: termcap in ncurses + ;; some SIG_* #defined in _POSIX + #~'("TERMCAP_LIB=-lncurses" + "CPPFLAGS=-D_POSIX -D'chown(f,o,g)=0'") + #~'())))) + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) (synopsis "Edit command lines while typing, with history support") (description "The GNU readline library allows users to edit command lines as they From patchwork Mon Dec 23 17:13:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35229 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 1703127BBEA; Mon, 23 Dec 2024 17:14:48 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 B8EED27BBE2 for ; Mon, 23 Dec 2024 17:14:47 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0K-0008Uj-Ay; 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 1tPm0I-0008UF-Od for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -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 1tPm0I-0001Rc-Fs for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -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=YppqOURZM5WPXANS8CJtjD5GoWb8SogqBLVQ9EjTOHw=; b=FzCdkDwLAaAS5VFNu6DLh/hh+U9lFXBX673DOUp8HGacHpZ5OQ3MQ41uNW0OXGkX8Szv6CkCcuJi4474aGssZz4LF5tgMIEavK2T3DhtuT/rU15JPQBTbRTwc/3DcmjHuC/Ocuw52dr1nIBGOqAyeD3dT7Eyq2vhG+CGbtYW/XZvccrmZwRkDIjthWxJmJzOHREWfsqwX1atgFGO5k2GCglTZ8DHRKSMPsQ29i0TYPN9V9jkFEzHwx+OAWrx3+SC36A/rEe+0P6w1FEebmCQWpAl+/Vyyq5yXfDJjCjiG6XnNXqUHBWLXVvLLZXxvTE2U3BcSXgzJ4h3w1O0a2PPEQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0I-00081r-At for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 08/14] gnu: gdbm: 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.173497399230733 (code B ref 75051); Mon, 23 Dec 2024 17:14:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:12 +0000 Received: from localhost ([127.0.0.1]:55884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlzT-0007zc-Vg for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:12 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:34545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlzR-0007zH-PG for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734973982; bh=YppqOURZM5WPXANS8CJtjD5GoWb8SogqBLVQ9EjTOHw=; h=From:To:Subject:Date:In-Reply-To:References; b=yUaemQMNRTNAMab1J709XjFpRnIkEyRGcxTjaxpOlQGuf07ebxLlwdT+4SyZ29crX /JLWSel94YrHXn9TElW+RgRR8dR2+ROHCyYk/Syx5HXEe6BW96wxLJvmdmXrPasbcT bt8zB7sAHjoR6Q9Y4kcHDgaeYK1U6P3+13SGUU2c= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszc16-0.qq.com (NewEsmtp) with SMTP id 3418A07D; Tue, 24 Dec 2024 01:13:01 +0800 X-QQ-mid: xmsmtpt1734973981tp48vmh44 Message-ID: X-QQ-XMAILINFO: OZILsD/zN1fMvr+riGm3Q/BlJ4Ox6P4ciMDzNUMQN3P2OBx2CeRuAta/Ah2nvk 64Duk0n7RbKP+Djy6vix3dVrE+gbUUSl0A2quJH+AiF8OmvkyeOFK+qTQ3DeWvVNgeOUOxjjLGpQ 5vt0qHdd8hhMqjFr8F+eVknv20uvdHF6p6lJBqDVicGRqIqXASfx+9bx+KcXdflih+XkaDcCjVfk WXmjOx7gOwTbmnrvUm3MfSYSfd3FZ2Uh6+rbOW4k+SI7FSpufCMNzs01kW35hjw/gUTNxDbsBJUe 2OHu86vpR+IibgaHemfADG9GkmEpogPdYQ3VvCFh5JYpdSigCWb212c1CxPbgy9Bjjfto00WWD0A 3Ag3mtR/7mbOixwqfmDi3C+59yodtXC1vC8STcZZFGr2ICY+kQ2J8sOUzCwvfp4EZq7SzF479QZq rYweuBPC8aCUOTXFvO12C/3KL/pdkanbbGIjdju7OrM3AOA4aTHFJn7Xev/xglfjhBDhFeZ3FBeQ hk77Isi6M198eeAZXmrqrboKv1bhMgE0eRF4M9S3kSBIzIncTF+deN6pRoKCYuQszZbOR7BIX9MJ ZQPPhfRfeulX+7BgDFQCcgqd/m50Jn2XJ/NIPeULQPzVQqnCNdv9+WIdLeos/M1lxXJLANTR8v1i DyFjgfg6AiIlO12ZmXyI7P5RL0LJZxYVLJ5QYVI8R1AMoXPhNyJq4Jty/fmot5I5gYDsINjJoOj9 Dpz59q2HFyL3U0hfAEDkIXwhnC3+3A2YdvLz6Tj0phwzDGEqESyuxt9fIYAXhnK+zDCtDC6wPTaf 0ja+vB41vt6cE9DMTT8FLpexGxXKGH2Jd7mhTR/TH/9X4zFPDRdDhh2JUoLn08QW/gKg6n/kdH4a 2pDTeKvRSqertwUQFr713jfXLNPfpGdFnDihdmtwO89PO84XL9KKI8jQulj7YysRw2lXUaLZtqcZ PhWmB11Uuj+TtabUOnBBSFeDrME8WNAkGlcmM+SQp1ZqCrI5iDbcQr2v2ytdqU1symslcDsde5nz BhfKY3WA== X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= Date: Tue, 24 Dec 2024 01:13:01 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/dbm.scm (gdbm)[arguments]: When cross-compiling to loongarch64, Add update-config phase. [native-inputs]: When cross-compiling to loongarch64, Add config. Change-Id: I1fd1b0b4171ae3cddbcc1683f8cb12ed85fa5da8 --- gnu/packages/dbm.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm index 7c36d30a349..9e7d846f7fd 100644 --- a/gnu/packages/dbm.scm +++ b/gnu/packages/dbm.scm @@ -189,7 +189,24 @@ (define-public gdbm (base32 "1kfapds42j1sjq6wl7fygipw5904wpbfa5kwppj3mwgz44fhicbl")))) (arguments `(#:configure-flags '("--enable-libgdbm-compat" - "--disable-static"))) + "--disable-static") + ,@(if (and (target-loongarch64?) + (%current-target-system)) + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'update-config + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) "build-aux")) + '("config.guess" "config.sub")))))) + '()))) + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) (build-system gnu-build-system) (home-page "https://www.gnu.org.ua/software/gdbm") (synopsis From patchwork Mon Dec 23 17:13:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35226 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 A178727BBE9; Mon, 23 Dec 2024 17:14:31 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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=unavailable 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 2C55927BBE2 for ; Mon, 23 Dec 2024 17:14:30 +0000 (GMT) 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+ iQ2MzQvXviFAktO/ry2a1+LwS+lHtgJR7f3kI0r+XajFruvATLAEsDJDm9vO4+MUlA+eDTqrj5aG nvj87Xb6e8kSsK2bcDMw6cDs3aeam9iaTMstBpcQMk6JrtdREyBD6ZaHaxpPv4T9kTsQ7+/9/gAp zFuHFlapIPKzYWtqA32DaJqphmFqKV5pwURClM2L0Ywirymw4ajmGCDm8p+xOibJIwt0bcXcdvOG WIqZGnaXtzh386oooKqIzwKgYId6EtQ1kySvv8MhfNPbzsHpyf7bKsvmejf3sY+/gIWZDM+5VcMk SYC9TPtwA7T0CIVL84vWow/wQvC86y1R1NfXFhfFos4dbQdNVnOxSoR7RBtgSDxVtbpeOG3qz9o3 cFFyEmQcfX+RqAkPLGUFzMUHRH6EsrxDjGjryKG1VKHnA73oDklQc1J8W/4mYPGXbeFH0shoFwuw 3TLA7WbqJSw6VjO6LhicwgoPCdScTX+U6R1d9DQBb4GxiNapg7ta6hJ0eizwEO7PJK1LJm/zN/5h rA9K3w7mxSzvqI4afPBPEFgmBRVSnbjST9/wGnQLTbfYXuGY6JSLfHweWD0QyzChy0VJ3+xSmvo3 tlT/2rr5aV+6LTOd1dQL5Gwx3NCGqKHOzu3EYpv4MiufnlZiKAju00vtBfbA/aAkPMv4jhymegJB 9l2zNAu2IjJNKzXLwW8Et7RzcAXDmRugZVRRNSXbJWaARrn0M+QfL6BOBOKrHnAk0oGUw1uzu4Dq sQiNTPe+rBVqwjmySsG9621hJLV3ZITKHQllPsWAK8mhRnEFwvlXkFQarsPgHAagSgOgvp5O+4WA onFJbEMJwwmZF7qOLrV7Q2qGnVfNyplIcQ8adHLnapO45iuihj/QfCfHPNrUSDuW8qdBPj3f1Fz3 aqXFKSoGq8XMD4rZpTYje6jVX0wSSHN0fMeZm5DkTHdsKDm7P/hYbpgMjlojBH X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= Date: Tue, 24 Dec 2024 01:13:09 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * 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 From patchwork Mon Dec 23 17:13:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35225 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 638B927BBE2; Mon, 23 Dec 2024 17:14:29 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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=unavailable 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 BD86D27BBE9 for ; Mon, 23 Dec 2024 17:14:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0M-0008Vn-9v; Mon, 23 Dec 2024 12:14:06 -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-0008UY-Pa 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-0001Rz-F1 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=p8rHJTKpXm/sXZM+yP8eXk3yFE7EHMtcupQY576YpxM=; b=ijKAaJzJYBqbdwKy7AMZWcw3ocKfTbDXohvC2uFWWQzdG1TALAn9OTXN4V34zNm6I3Pokuj22KSho/JvrEMwrvWrz/JHp8pYk2E0y8O0td4ByAojhs2WzaA6Z54N9JrJqc4FywoJFOJeNg+vdhoRGPypk+eosG13ynUT33/EZBszLxYq7Gwkx6QLycDtJV4bM/sfr9YrV+HfLlZpIKKmOe8VTKWI4FUNnuM+gKsrdtPVgkR0gq+tu/2sgp8SFQa1xEci4GMrWxsN5KTrKD1rLUnJV0kQn1i9p3wDB8P3d/AIdNlgRqjmuVyK4/IGMOcWlRv2dH/EC+RfIVjyAYjIhQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0J-000827-9c for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 10/14] gnu: bash: 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: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 Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497401330784 (code B ref 75051); Mon, 23 Dec 2024 17:14:03 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:33 +0000 Received: from localhost ([127.0.0.1]:55890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPlzp-00080S-3t for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:33 -0500 Received: from out162-62-57-49.mail.qq.com ([162.62.57.49]:57311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPlzm-00080A-1o for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974002; bh=p8rHJTKpXm/sXZM+yP8eXk3yFE7EHMtcupQY576YpxM=; h=From:To:Subject:Date:In-Reply-To:References; b=mcQ2fT4tXWQm0yEGm8InQulMYVdOgCXJmXMxuG6eF/Uf9hoeZ3ctvkiMd9rXwObuW 42zD+4ZjlWW3ZLA1/89WinU7mmM5ZLChacmHdPZxpSYE94VHqaUhy7kl+BZh4dFRP5 FOxioq3zocnD4pOW3YRUDwYHTLd1nsUfxaucmW+s= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id 354B4C23; Tue, 24 Dec 2024 01:13:20 +0800 X-QQ-mid: xmsmtpt1734974000tunps17oj Message-ID: X-QQ-XMAILINFO: ODafEzNm5ExjOljg+fXQQ7yM6zSBTwtDaqxz0yLAoMGzHJ2xzPm+9RZoMNhviA h8Rc3u6qG7gJZrOIafoj2YhcIbzJiW/iEsk5EEQ7ALp4PS993kDhDY4/jaXS44k8qdnDMQbmBrJ6 lXGBqWkoTzpjCvtMORX0ZS3RYsQXV92A98XKKjCpLDnAw1a1y2vRYjvp04/4qrhlRsk6TtKpUhdG sYJBzDQ+P2U7Cx3VKAp4zU9WQ7Xysja7esTI9UIDTub9A7IC54FYCnFaheywc0pQYTomXNGgDvZ5 d4zqt9FHZ+Hc14ZJALEzlxcSvl2huxWSRmOitz6cL2P5IJ+ip6OUVmdBFuX9WuQxS5P+hMJHxC3L gHOWRPiOfTQDeJPfbQJxdUi9XybJlByf+h49cDPI7nNyGIipAG9OBk4E12563C4pdrfklMQbZ8O3 XhZ3pXY0yT2dBGm8DRD3M1uhTbOzo1h2FY2R7gHKWkAQJBdqZFhtsw15jTDr33LVjnR9ZtsSA3nh v4SRuDM2te0BcT28PlsNhmkzhe1GXTe75qfuBfOabKEqlnJ5vi6GH2fIyhSXpoDu57lySLKiLJTr SDqyuTlQSfbo3VxnaQSLPXih7gTe7yC0MAsM7FYsRGZRIeC9WVt0bRyqlLkcLiabpTScVSFfkziM 7v6Bxja2ZQGFycyY6VmxlhPPN52o04WCj1THUsIHyg9Zd/VGop3GV2HLmY2PFlrap1Exuqr+X6NA t6xY69u6NWSTUsGR/+R7CjxzndTvVwMI1aoFMMOeXFdFMtrYZhoikgXvv+x5eueNNTblhJ5tcrex 1mPLKoMX/wKTVsxnulU8YdlFz+GQJfYpqTBBzID8kdG5RdaszSE4Dk3rE9qbhWoSZECqAm7jyTbu iIHpnkvNxc7wn8/1d/llpoDiPmE8l+xLw3I44aYmS2xzSMWXejJR6rIdTrl6tpDzkWYY2rdQ5pzx 1Q8hdQnDyPEhbZUN2+x9She6ZSyL3/9AJcDSB/MvfIOTjA34aXHzERuaDUuoPd X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= Date: Tue, 24 Dec 2024 01:13:20 +0800 X-OQ-MSGID: <66e1cb1f999048f0ec7550d48c4025721172f696.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/bash.scm (bash)[native-inputs]: When cross-compiling to loongarch64, Add config. [arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. Change-Id: Icadaace85a62582fcb0724dda8f5067d22257cd6 --- gnu/packages/bash.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 642a4059852..2d30af046ea 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -28,6 +28,7 @@ (define-module (gnu packages bash) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) #:use-module (gnu packages compression) @@ -150,6 +151,10 @@ (define-public bash (outputs '("out" "doc" ;1.7 MiB of HTML and extra files "include")) ;headers used by extensions + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) (inputs (list readline ncurses)) ;TODO: add texinfo (arguments `(;; When cross-compiling, `configure' incorrectly guesses that job @@ -219,7 +224,19 @@ (define-public bash "/Makefile.inc") (("^INSTALL =.*") "INSTALL = install -c\n")) - #t)))))) + #t))) + ,@(if (and (target-loongarch64?) + (%current-target-system)) + `((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)) "./support")) + '("config.guess" "config.sub"))))) + '())))) (native-search-paths (list (search-path-specification ;new in 4.4 From patchwork Mon Dec 23 17:13:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35227 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 E0F4827BBEC; Mon, 23 Dec 2024 17:14:37 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 7548D27BBEA for ; Mon, 23 Dec 2024 17:14:37 +0000 (GMT) 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: xmsmtpt1734974015t650n4e6n Message-ID: X-QQ-XMAILINFO: OMxr5LZhXS0MQdE7ewqOrNcc3ZjZIMUVzo37zSDDRyv5DaPA1HFr81LVI+bS9X CCjlejaMgwV7pGPXEw+Hy3WegeAPChiz9srWGEleEs52F6Z5ustZko5DaWR7BbBi3/MICqBRcMv5 xDIcE5oU9o2m41hDnjLzQta4CAGuW44PlYMFh4VvI3Wy1AMTHP0MHUwiv63BPB6jSM0Z8BK1L936 b9DRxm+a6SfPZlaQ7IyNJmi1cFPTEat5stbIT4vwTRiiWzcGmYMeZS75ROgFtpSVYP4IV3dmkWw4 qlmILeDrzTdjv1Iy9a0pCbRGh3Hl7tIkH8qOubz4t0LYgPTkDLEoNIUuZfmKRX2IvASfCiJD+WRz nM9G520k+TSczoyDpxFD8J+g3xzYRSM8GEL+gFkGCZVnAaNoJ3LncrI5vaHB9961zu12QtgWg3CS 1TTfhVb8eEEh6BhvwXdETmY5y96RyJF8dyvPNlCxHLlSEK1iCjJJHm72TSCJWkXumsnkUalsilIS yTme5Z1L/yKGl0TN1wmOwuSFLenTOuxqruef+TgwGg5cAMhC4rCUgjHSLtfzAzNRCvKeUikVjr7f rMQhpeNrlpG2GL6u+pRSYFR6wdd97hope9UZVQTepgHjtYcGH51nKTCKl1acdsrgxCiEXilFsSgk S3V28mwDMHKNxV6E5OpS9KYMqC+W7lNxE0rFFZJoPExOUqZNqs2QBKMLItfOIS3nn+DcjI2px44N 7Gv3Bp44/vHT1odDAG0tikMy8D7T7LMd70cpLGsJ4PDotaKwPM5QOgP/nAIwTtObcaxJ41Q6aa3x 5fJp+cicui4smi1sEH377r78FUJo0MEgZ6yF6fKCLq1qvm4IJaVjISiAWJjGtAsstPuBQW06DYZ+ cF56nyslHnXld1xmguWwoXcbhdI09GQbGvNis6czR5vrYIYKJJsQOu5V8nyZtaK0wX59Txc9ri5G DSvF+X9WJ9OVh6K7JyZmHqOpMT14/f X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= Date: Tue, 24 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 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * 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 From patchwork Mon Dec 23 17:13:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35228 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 ABFF027BBEA; Mon, 23 Dec 2024 17:14:38 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 613A227BBE2 for ; Mon, 23 Dec 2024 17:14:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0O-00005X-5j; Mon, 23 Dec 2024 12:14:08 -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 1tPm0L-0008VA-Bj for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:05 -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 1tPm0L-0001Sf-2n; Mon, 23 Dec 2024 12:14:05 -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=p76qjktoazycFjstTkyVbMSl1oGXPNw7X1ICPTaTiQA=; b=hprN5OkEiEWGIhHJd3IbvHhfACzwrBb8lzkmhiLAVswWrRZh5bXCX2oTQvs4jnqO4TSp1IuejblXSNcSmkNJdOjL8AM48TKJhbOHJlDy/kjAtMF3P5878mYSt3YxHWCx2uyhWA7gcwv++soN3+4VIkaNOdrtwRQGwhqrRCANWOsxkVMCFYwnk2pl4ljqRtkdBn9VKJGPgBq67baZo2dL7HkVbM8V0wdw6NRLknLW4a+nQzT2CWBpF+qRXbu3DL8S63S1bk62BOZLmO4y1JkEalRU4m9ungdJbfMfX/jK+/vs1jMPiQqOtSTmB0eNAQLSophvn+W49KRE1rf7hGFoeg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0K-00082O-AA; Mon, 23 Dec 2024 12:14:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 12/14] gnu: isl: 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:04 +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.173497403830839 (code B ref 75051); Mon, 23 Dec 2024 17:14:04 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:58 +0000 Received: from localhost ([127.0.0.1]:55896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm0D-00081K-TX for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:58 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:56229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm0A-000814-S3 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974027; bh=p76qjktoazycFjstTkyVbMSl1oGXPNw7X1ICPTaTiQA=; h=From:To:Subject:Date:In-Reply-To:References; b=Sr8nTNWYLomDDBuetvJ7/gsDIZpCHCE8kJA2jYgqeM5wgEXeKK6X8UwpwPFn8LYtY 1FNdaqRSazfsC1UDhkBjOANNIQj9IdyF+G5d2pXYYEZkeA36xD8Otr6M2NlfcRxyHX Wy9ZWVAZWWntceU1mylt+vOfAST5ykDhHNAcgysM= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszc16-0.qq.com (NewEsmtp) with SMTP id 36E39C13; Tue, 24 Dec 2024 01:13:46 +0800 X-QQ-mid: xmsmtpt1734974026ts6cda0b6 Message-ID: X-QQ-XMAILINFO: NnYhxYSyuBnLj/4qBRH3d9151Q2mMRMi1BFtTn02czMIF14t539wnwHZ4N9Sdk 90jBwJt23Goi3IMhxdGhqWpM4DoYVwmrWyZt2V1H2JyOesLEzu185siPT55FvHCrdGsd9kYVMnxr 1c3aWVc0tgqnSFjcVZdFWHkr59kmjXkdeYLn04VKKwxTv/yYpWee2RW8uBlf4yuj6U0OHFI8gBJU ICgQAiy/LEsAIRc7v51+7brj02IYESPiQn5INR+N/gOfCzvOk2LTRlB9YZrVxsRgenxsyKi8WIxv U1nshWYuz2XIktwJSxg8kIjEuzNUkfuqChpbSCcQQlYZ51XjvuSrfaSYteaDllAAlOT8Hxt0ph9D NLfcH3fu1hxF2GHZmo7bxd7Jsd6hpz5fTQERpqqeRI53fB+kpmnr/jahMABgZV7zvvps1XVjrGJp eUvxoS+Ahc0zzYFI8ikw2vfsOdDmfjxrXYtRtK/M+gLsV7JAEA999WdOu8wWSSQ1BIe4U+Lb3htf PXb1euZjRtA/olPLRQ/fODYMsWKhn7rV5Pr96chizpVtqo8LnLUuQ6/8r5ER2Em2csavDhpX3z0P 8nwGA2JuBJ0fzmfcYlS+dcxZQbByOSlxyyTuqHxePQDFLI7mu9N6L7/HhZk5Drnj7tjGjpb5ZA3d Gvwhhi1uqDPPpoQvDbL6hXQBpHCuLK24SJ1kWCyirLfKTQjy8rNuU5+yMsEo0TBnkLKd5czxheRb Zc58CgUZdS2lDZ0SsAax01GVgzOLTKAl59TAeDt9NHDx2BIymtkrO/eK56/sHPl053nGnZXeAQpK shcIwCS1ODKNNNHhuCB0InZXger8G3+srZUK4LKSFAFpB0P26Bx+ERGP3+4lC0bEaxq3qz5NbkJq jY3jHj45KreurSedOmGKuRm1zadJiOxzazBbsaDNEcXRrf8Dg+Rpu6TBr35mH8V8f617HvCYhYXR g7BT+DOt1fmF8emcBfk1yAbMN/nHi4Ikfxr6EKBOqYRD1/x25W4rfYOrPLwVRK X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= Date: Tue, 24 Dec 2024 01:13:46 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/gcc.scm (isl)[arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. [native-inputs]: When cross-compiling to loongarch64, Add config. Change-Id: If60b28f64dd3285f5b89000c42e714be07876400 --- gnu/packages/gcc.scm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 6247919fec4..37c002f7fd7 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -37,6 +37,7 @@ (define-module (gnu packages gcc) #:use-module ((guix licenses) #:select (gpl3+ gpl2+ lgpl2.1+ lgpl2.0+ fdl1.3+)) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bootstrap) #:use-module (gnu packages compression) #:use-module (gnu packages multiprecision) @@ -1416,7 +1417,7 @@ (define-public isl (build-system gnu-build-system) (outputs '("out" "static")) (arguments - '(#:phases (modify-phases %standard-phases + `(#:phases (modify-phases %standard-phases (add-after 'install 'move-static-library (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1431,7 +1432,23 @@ (define-public isl ;; libtool looks for it in the usual locations. (substitute* (string-append out "/lib/libisl.la") (("^old_library=.*") - "old_library=''\n")))))))) + "old_library=''\n"))))) + ,@(if (and (target-loongarch64?) + (%current-target-system)) + `((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"))))) + '())))) + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) (inputs (list gmp)) (home-page "https://libisl.sourceforge.io/") ;https://repo.or.cz/w/isl.git (properties `((release-monitoring-url . ,home-page))) From patchwork Mon Dec 23 17:13:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35230 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 7FFA427BBEA; Mon, 23 Dec 2024 17:15:13 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 3C7A627BBE2 for ; Mon, 23 Dec 2024 17:15:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm1J-0000lu-No; Mon, 23 Dec 2024 12:15:05 -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 1tPm1G-0000ij-Hv for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -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 1tPm1G-0001Ym-7U for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -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=OatlEA34GN6PewZwRB049de7+A/Vuk6IZSeqKR2yUW4=; b=rOehY8n9XR113P9pvZ1zxL7BOFAsfjyfwEoPngaJ9azt4WzImiQ17CIMZZ3yjIj/2IbnY14Y9t/347yX3S4xNvtmzt3gMIVoULt1lxkg1oCX+FgdTFfcWYewJ1c2O36IYXlXFTlHUCjS3UjJU84BQu4H44+asNpxNINHS9H2tKnOMtk1GD5G2cWOg6YyThVUBz9VELGTSkuMlIEaU944ylwH6JgimmlfZWuZUc4F9S9F+/pq3/T3wrRZKKP3YLCHV7Lq8QZxlHHNR5KpA6I3iCnbzx6LXxICNFqPrwyEC88sfokHbcVGAE0CHapfNVk26JY/DxaSvliqZKzT8sXbAQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm1F-00084y-Ve for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 13/14] gnu: pcre2: disable jit on 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:15:01 +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.173497405130935 (code B ref 75051); Mon, 23 Dec 2024 17:15:01 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:14:11 +0000 Received: from localhost ([127.0.0.1]:55909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm0Q-00082t-L7 for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:11 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:37003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm0O-00081x-Os for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974041; bh=OatlEA34GN6PewZwRB049de7+A/Vuk6IZSeqKR2yUW4=; h=From:To:Subject:Date:In-Reply-To:References; b=g1mxZVRftB2wYuhw6sM0+DFUysQPA5gEaNMpKHodwEcC+IpoRKHU1X+bgCczz6LZL IXCqDbaFedlLy9tNl5dcvRzAHQhdAekDB/DqJzKmzpCHM2LAc/Bc5Mg8yWUP4atne5 rXoIQJ/jlNjMeF34jEWPYrKRyX8n300YBwAI4dyE= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrsza36-0.qq.com (NewEsmtp) with SMTP id 3803D08D; Tue, 24 Dec 2024 01:14:00 +0800 X-QQ-mid: xmsmtpt1734974040tof2lyqaf Message-ID: X-QQ-XMAILINFO: MzNwb/pqyJTkbIWE1El6zxuJfXWGI2P4rXS5d17Y2KYWtZt6jqCLkJaR7uiK3F WM0EC3pW/YVsXVJe5l5cFt5TMAB/0EQFef43Rv8frWg+MY42ZMx02whfg74Pn/3ACLtArBTTVvW4 f6AS/fyeuD0WmhUisu59jBvnAZfGjwH+bMreim+DxGYhPAgpqTgL+b3lCHepdFtmoyXNeNKmhrSi veyqIlTJXGLN5NPD5WodXDVx1Soagin6AHQUC+5uvhh7ayaTpE4Yq6EAtrlvenvOXeUbhKl433TT sSbu3Z45eoMWMXiZrfAu0xyGmtnRqSBZevXMc4kuUyOFZSr33H0qrAuft8PcalI7JqUc7coh31uJ TQasl7uujoEHtoioRLdNHcqnrSdC8xQ9/x5rzcFgwhkkC3yfvhZwjA1roh3fOtfMW3DHfjkqcgGt wdwc19twL6b1gsygT/f9WyN4neEmXPB5uaVz6F+d650cF3kTrUCeZwkPUVaEwC6gA5CVzjx3Cyhl PoCtgDCc9WGW0mFDX+/Tk2O38gbxlsYp4X1Huz4f8Jd7ffYdXkSc7MSmL9mM9Y4cE/CwASzYCQPw qiJEZ5wFVvJbHMSi37doH/FaGlYwHWmATtoxj4I6Cz5s99t8L1Z6nRwpq0sVprJ8I04hIN/8i8mZ wjlZNFjdiuUtTvCSGy9aJR3uObTTlxEkv4hiq3uEB0qrBo4xo67Msdmq5rUrNPiiDBXGZvH6tuz6 CdgO8u9uP4P4vmFfNqPvcQCPB+ocnJsXVUa5NDPxmzYovrPi0SuxG4iniHrYjn4f8T0soC1b4z+V abM+0nIpNc2c1a51iY0y19suOHWZ1ICz9bN93Xgf++WpmES3bparmmRe98h27zxMLdDqWDNQQNjm qqGFQDv0ogaL07GKB2rZAbdqPOSZBVsrk2r0x9BzTzLEtyBynSOa2LHJdf31OyesrEVmWT6sJOu7 KfPCUH0oZJVBJtjTPpjp2ysvrSAvh4D++sR/qLONasZX8IoQrcTT9eBLno1Qw/ X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= Date: Tue, 24 Dec 2024 01:13:59 +0800 X-OQ-MSGID: <981e6708d31fb96704f52e022b45aafa092e1393.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/pcre.scm (pcre2)[arguments]<#:configure-flags>: when target loongarch64, don't pass --enable-jit. Change-Id: I5c57da334da0d9fe33e3ec7963a4967e5463d125 --- gnu/packages/pcre.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm index 6f31d3c1d7e..1dbd2180a84 100644 --- a/gnu/packages/pcre.scm +++ b/gnu/packages/pcre.scm @@ -112,8 +112,10 @@ (define-public pcre2 "--enable-pcre2test-libreadline" "--enable-pcre2-16" "--enable-pcre2-32" - ;; riscv64-linux is an unsupported architecture. - #$@(if (target-riscv64?) + ;; riscv64-linux and loongarch64-linux is an unsupported + ;; architecture. + #$@(if (or (target-riscv64?) + (target-loongarch64?)) #~() #~("--enable-jit"))) #:phases From patchwork Mon Dec 23 17:14:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Junjie <873216071@qq.com> X-Patchwork-Id: 35231 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 43C6027BBEA; Mon, 23 Dec 2024 17:15:35 +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=-6.1 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, 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 E36A527BBE2 for ; Mon, 23 Dec 2024 17:15:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm1K-0000nc-De; Mon, 23 Dec 2024 12:15:06 -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 1tPm1H-0000j6-48 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15: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 1tPm1G-0001az-O9 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -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=Z/i7igEGWbOa/yBF9Gue1t+0Cne+PRwHHo4pmcaHVvE=; b=Pk02wmLc08tGP9IzGxdSH+dUmnwMiEU8exbxj70xpVhq3EtnsROhkglomEppUPAKnqtLsc1XavWYvzo0QDen46qBOJW4VAtb5fF1UM30qCge70T9IKA8MIeLAX/6E6O6Q+sUxWxF/LW398Ql8w+3ZTY33S3l9PCElKAV/hgsizeKhtMC/pQ8zG1SypfKy8GQ0Z+KLyU2qvkXmRev8qWC1HO61B57mPG2kzCkYqHjlYWTvAPYd07SJXzXn1xWTQuUffhDKE2OUxqogLJ/cxwRe82c4a+vEVb2vHG9l/MbMy0BhFiMGSVSb+N+qsRriTr3AjfiKjzORaJDTiAfr1j+EQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm1G-000859-I9 for guix-patches@gnu.org; Mon, 23 Dec 2024 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 14/14] gnu: elfutils: 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:15: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.173497406230979 (code B ref 75051); Mon, 23 Dec 2024 17:15:02 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:14:22 +0000 Received: from localhost ([127.0.0.1]:55914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm0b-00083a-JK for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:21 -0500 Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:52185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm0Y-000836-Rw for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:14:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974051; bh=Z/i7igEGWbOa/yBF9Gue1t+0Cne+PRwHHo4pmcaHVvE=; h=From:To:Subject:Date:In-Reply-To:References; b=ykMxbbKYngauhm/vh6luKiPHHbxZJZvvgW//fxsTk+hCNeuzYHg7tnjQQ2Lfa/t07 Iu/+CUQhyx6aYfvNXrybf696gUUPhDAibdTKlQaxk/GQxc6co1Z04KAbCvX2v161kP bNrUWXJBlMUtgbbt5EHVS3Q4OEVOnkhmYmiKOZ3A= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszb21-0.qq.com (NewEsmtp) with SMTP id 38A3BA9F; Tue, 24 Dec 2024 01:14:10 +0800 X-QQ-mid: xmsmtpt1734974050t6q5cessk Message-ID: X-QQ-XMAILINFO: M58CI+QHpTsk9y5utCB+ZPys/EOIVkzEUeDZh/AlrFYikliYE00Iw6UeYLARrj kWVOdLbQqaqe9zqEdRi4oVF6RIIbaElM1+5k86NvWojq08YHjWkDqu3JMIX+IdFIew+Fz/soWTEF 2IHwmPNzOeDqvHcQBGaIFOdv9dTeoLSh+BCQZ/X8NVz8Ro7aDXcXvbmbKMVbdciJCB8mCBHmUgmd 0fWX27XAOq52NQ3jqm5gPEZBT1ixWB7hX8mN1TqTqdoqzrz6sY2AJMQBLcotkqNALLe0ovTDOwfG HHcd59hQlTloiBedl1TI7+H2L+7pDzk8SQhq/cls2GwbWGTt70RH+KxniMjZiCbthKN/HIsnCYBO tqzYLlPveywRqRjhdqzRzg/FdTKljBIRzHXQ8UE233MteeIbdNNgSXkQ4r2zfC/HrbCdDppOKI5N cadm3Pouz0t4fVzr4t+yWjDB7sbLP71EJSzSA5tgwAI61PW/gMVl0dSozTF84TePQNUEXNjuKL/D U7ODO3gQ+mZNrOOVRHHdZoE7q+UjI4hgQMozIusXL8yNKWaE+d0alUpR04wJmCNqmRF6C7H47Cd0 0s05XenwvrotufIixD1/EtuMcJ5czCMIL+yAu7b3kR3Fg3WRwA9z7tnicooMOs6o1Z250kUHvXKZ MXEZYQ6eA7AEtG9YWuYAjl5yDjOEl+kwxx32U31shVtovzYtLpOhfxibq3AQKB6Oonn74avr13Si YvCRwyczwbKuwofg+SQJN8MWJXPFtRB7hm12wsKyMlPCZ8CAR1MGzygAKIN7wgLxh2wGeo6RrmdI neYsfqcPSfgCCYYUZvCJVlGVW7bL8dD5TsQJSfteaaxuWGdRxKQ/GRMW+l2Ehtb9IA3UTWDOKJw6 CELbhpqQZWVm+IhSU/6nRhHr2dk+Es94lz+xMAKcdhfI0B4mY2xoboHODbN02CJ+kHA6u2SyBcrH RmmxAKzEtWhxS4xEeeBQ== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= Date: Tue, 24 Dec 2024 01:14:10 +0800 X-OQ-MSGID: <8bf2351696815b348b2b844de66de9a50f7bb0b3.1734972657.git.873216071@qq.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 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 X-Patchwork-Original-From: Zheng Junjie via Guix-patches via From: Zheng Junjie <873216071@qq.com> 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 * gnu/packages/elf.scm (elfutils)[native-inputs]: When cross-compiling to loongarch64, add config. [arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. Change-Id: I0a0b4faa8594ecca2344eb4b15392e4355e79e45 --- gnu/packages/elf.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index 8f036ab2211..57d26a9f0d8 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -120,6 +120,18 @@ (define-public elfutils (("run-strip-strmerge.sh") "") (("run-elflint-self.sh") ""))))) #~()) + #$@(if (and (target-loongarch64?) + (%current-target-system)) + `((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")) + '("config.guess" "config.sub"))))) + '()) #$@(if (system-hurd?) #~((add-after 'unpack 'skip-tests (lambda _ @@ -151,8 +163,10 @@ (define-public elfutils (search-patch "elfutils-libdwfl-string-overflow.patch")))))) #~())))) - - (native-inputs (list m4)) + (native-inputs (append (if (target-loongarch64?) + (list config) + (list)) + (list m4))) (inputs (list xz zlib)) (home-page "https://sourceware.org/elfutils/") (synopsis "Collection of utilities and libraries to handle ELF files and