Message ID | ab9e1b99a5a43af6cfeceb03e8d3c411bc440007.1720541114.git.efraim@flashner.co.il |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 99C8427BBEA; Tue, 9 Jul 2024 17:07:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS 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 7101027BBE2 for <patchwork@mira.cbaines.net>; Tue, 9 Jul 2024 17:07:43 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1sRDMr-0006CM-8f; Tue, 09 Jul 2024 12:07:01 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1sRDMo-0006AF-4k for guix-patches@gnu.org; Tue, 09 Jul 2024 12:06:58 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1sRDMn-00065z-20 for guix-patches@gnu.org; Tue, 09 Jul 2024 12:06:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sRDMs-0007Dk-E8 for guix-patches@gnu.org; Tue, 09 Jul 2024 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72014] [PATCH] gnu: go-github-com-ipfs-go-ipfs-cmdkit-files: Build on more systems. Resent-From: Efraim Flashner <efraim@flashner.co.il> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Jul 2024 16:07:02 +0000 Resent-Message-ID: <handler.72014.B.172054116527680@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72014 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72014@debbugs.gnu.org Cc: Efraim Flashner <efraim@flashner.co.il> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172054116527680 (code B ref -1); Tue, 09 Jul 2024 16:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jul 2024 16:06:05 +0000 Received: from localhost ([127.0.0.1]:53932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1sRDLw-0007CO-Rl for submit@debbugs.gnu.org; Tue, 09 Jul 2024 12:06:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:60432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@gmail.com>) id 1sRDLv-0007CG-Fr for submit@debbugs.gnu.org; Tue, 09 Jul 2024 12:06:04 -0400 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 <efraim.flashner@gmail.com>) id 1sRDLp-00065u-IZ for guix-patches@gnu.org; Tue, 09 Jul 2024 12:05:57 -0400 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <efraim.flashner@gmail.com>) id 1sRDLm-000625-4u for guix-patches@gnu.org; Tue, 09 Jul 2024 12:05:56 -0400 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-6b5dc36b896so38115466d6.1 for <guix-patches@gnu.org>; Tue, 09 Jul 2024 09:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720541153; x=1721145953; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=cVU9ld5wfxU3tnVd/BnaJIJTbLk59DvYN3f/qA5e76w=; b=jqAhPBneAJp9GkjnsXVaePD+3PrGsIiZ7b2BQ4JDRf1kFRN8A7OPQB14VsyKdDjIm6 vHR/RNn1lUq0zs3foACjGITIYp/0IIkQKG5aRdC4nW58El4LgsD17KRQTdgixZlY3wgO vdHwJt0cYsDcvo/KrOLRZual0lOqSV3XwrgxzVBjTBL0/Yp5+sw1d99031K9XBdloVPz pjzMVgEqh+IImXMZGbL6ETmO8xLrpmpE4SYY3EtQGVkGwwQdNfhfxlUeRum6qi+4+dQV TJPYMOK3cUT+JDuK8XV0UUshNjVG5Z08OgE+EqRknjuBbmy+Z6lDIct4yE8Dey3RQrBi tmDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720541153; x=1721145953; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cVU9ld5wfxU3tnVd/BnaJIJTbLk59DvYN3f/qA5e76w=; b=qCAh1oIJy9cOWE/EPwWHHc6Y/eSHgxb3/dPPQoWdGcGaWYPfZWZ5cyy5w63DFatYib ZvV3oEKDiOsA6nuF+Po5ZlG0YZEBCTbVTuXQucpwVWI+Og6dkVpOtUMlHF6CgLeBWBrn 2rtUc08Ub55uY16AOzNIWpDZXwiyCUPTf3jKSY/VD1QVNQnu2paOl8lQZwvPOJKymkyd ZeIauXjwQk0ldF95bpFR/ctpsGQhcWU9DiYoJ7REANklvGDLX1RQo2m/c4kc23/BoBvV ZvBEsE6RyPiLeORpNgUXfSTokuKHWUC+pI8No3DZ8zlpQPmSoLpRrHNG7RZtiAwRCjYl FJgA== X-Gm-Message-State: AOJu0YwQdUPHTYjvJn8PLYSxu9s98PyNDFaBZ9EEoLh8W+1Z+uXrhmI4 Xpu5ZzG9sqU6enACGpBZe2sklN3tKBQv/12qrkuPurhoPS9OitVkV5XIgDjD X-Google-Smtp-Source: AGHT+IFbCEHXkVERifmtPShyhpGzqo7QzX14WbeuCXbiFOYiSSZsKpAbyM1abhKAAJO99zGdw6Qbxw== X-Received: by 2002:ad4:596c:0:b0:6b5:7fd3:c496 with SMTP id 6a1803df08f44-6b61d7c832amr48226966d6.15.1720541152632; Tue, 09 Jul 2024 09:05:52 -0700 (PDT) Received: from localhost (ool-ad039216.dyn.optonline.net. [173.3.146.22]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b61b9d5f89sm9838796d6.34.2024.07.09.09.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 09:05:52 -0700 (PDT) From: Efraim Flashner <efraim@flashner.co.il> Date: Tue, 9 Jul 2024 19:05:18 +0300 Message-ID: <ab9e1b99a5a43af6cfeceb03e8d3c411bc440007.1720541114.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=efraim.flashner@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#72014] gnu: go-github-com-ipfs-go-ipfs-cmdkit-files: Build on more systems.
|
|
Commit Message
Efraim Flashner
July 9, 2024, 4:05 p.m. UTC
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-cmdkit-files) [arguments]: When building on systems which don't support go-1.16 use gccgo-11. Change-Id: I0cf1e3a429603dde3a7dc75f4088c5b5f62ebad4 --- gnu/packages/ipfs.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: 395a3a3b003f219beb33ed2539ff0a8a35502b59
Comments
Hi Efraim, I'm about to push major update to go-team branch swapping default go to go-1.18 or even to go-1.21 as 1.17 (02 Aug 2022), 1.18 (01 Feb 2023), 1.19 (06 Sep 2023) and 1.20 (06 Feb 2024) are EOL already <https://endoflife.date/go>. I've removed all #:go entries from each package where it's 1.16-1.18. Will changing default go version solve compiling on wider range of system? Thanks, Oleg
On Thu, Jul 11, 2024 at 07:33:39PM +0100, Sharlatan Hellseher wrote: > > Hi Efraim, > > I'm about to push major update to go-team branch swapping default go to > go-1.18 or even to go-1.21 as 1.17 (02 Aug 2022), 1.18 (01 Feb 2023), > 1.19 (06 Sep 2023) and 1.20 (06 Feb 2024) are EOL already > <https://endoflife.date/go>. Thank you for working on this! > I've removed all #:go entries from each package where it's 1.16-1.18. > > Will changing default go version solve compiling on wider range of > system? AFAIK the one entry of go-1.16 is the only package we have which fails to build with go-1.17 or later. I believe the only Guix supported systems which aren't supported by go itself are powerpc-linux (32-bit) and i586-gnu. gccgo has been "stuck" on go-1.18 compatibility for a number of releases, as seen in gcc.scm, but don't let that discourage you from choosing a newer version of go as the default. If this patch is obsoleted by the changes you're making then feel free to drop it. I didn't actually have a use-case for this package anyway, I was just trying to make more packages build.
Pushed as 1aa8dfaeec3c6e4e587aadf7440246f7c5c04b9f to master.
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index daf68903c2..ab7cfb53ad 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -29,6 +29,7 @@ (define-module (gnu packages ipfs) #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system go) + #:use-module (gnu packages gcc) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) @@ -150,7 +151,9 @@ (define-public go-github-com-ipfs-go-ipfs-cmdkit-files "0qk6fshgdmhp8dip2ksm13j6nywi41m9mn0czkvmw6b697z85l2r")))) (build-system go-build-system) (arguments - `(#:go ,go-1.16 + `(#:go ,@(if (supported-package? go-1.16) + `(,go-1.16) + `(,gccgo-11)) #:unpack-path "github.com/ipfs/go-ipfs-cmdkit" #:import-path "github.com/ipfs/go-ipfs-cmdkit/files")) (home-page "https://github.com/ipfs/go-ipfs-cmdkit")