GNU bug report logs - #70206
[PATCH 0/2] gnu: Add go-1.22.

Previous Next

Package: guix-patches;

Reported by: Imran Iqbal <imran <at> imraniqbal.org>

Date: Fri, 5 Apr 2024 01:07:03 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70206 in the body.
You can then email your comments to 70206 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70206; Package guix-patches. (Fri, 05 Apr 2024 01:07:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Imran Iqbal <imran <at> imraniqbal.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 05 Apr 2024 01:07:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Imran Iqbal <imran <at> imraniqbal.org>
To: guix-patches <at> gnu.org
Cc: Imran Iqbal <imran <at> imraniqbal.org>
Subject: [PATCH 0/2] gnu: Add go-1.22.
Date: Thu,  4 Apr 2024 21:03:34 -0400
These series of commits adds go 1.22.2 to guix. I split it up in two
commits as the git blame showed these packages are added seperately.

Imran Iqbal (2):
  gnu: Add go-1.22.
  gnu: Add the Go standard library 1.22.

 gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)


base-commit: b7ee2e458ac3d218d170b9a66efb7c9abf4bff9e
--
2.44.0




Information forwarded to guix-patches <at> gnu.org:
bug#70206; Package guix-patches. (Fri, 05 Apr 2024 01:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 70206 <at> debbugs.gnu.org (full text, mbox):

From: Imran Iqbal <imran <at> imraniqbal.org>
To: 70206 <at> debbugs.gnu.org
Cc: Imran Iqbal <imran <at> imraniqbal.org>
Subject: [PATCH 1/2] gnu: Add go-1.22.
Date: Thu,  4 Apr 2024 21:23:38 -0400
* gnu/packages/golang.scm (go-1.22): New variable.

Change-Id: I4e82a06592eb9148c357e6a5b5d56c1a9460e555
---
 gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0f36c6b696..cb6c712a4d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -45,6 +45,7 @@
 ;;; Copyright © 2023 Clément Lassieur <clement <at> lassieur.org>
 ;;; Copyright © 2024 Troy Figiel <troy <at> troyfigiel.com>
 ;;; Copyright © 2024 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2024 Imran Iqbal <imran <at> imraniqbal.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1114,6 +1115,36 @@ (define-public go-1.21
                      ("api"          "share/go/api"        ,tests)
                      ("test"         "share/go/test"       ,tests))))))))))))
 
+(define-public go-1.22
+  (package
+    (inherit go-1.21)
+    (name "go")
+    (version "1.22.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/golang/go")
+             (commit (string-append "go" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0p6v5dl4mzlrma6v1a26d8zr4csq5mm10d9sdhl3kn9d22vphql1"))))
+    (native-inputs
+     ;; Go 1.22 and 1.23 requires Go 1.20 as the bootstrap toolchain.
+     ;; See 'src/cmd/dist/notgo120.go' in the source code distribution,
+     ;; Also see: https://go.dev/doc/install/source
+     ;; "Going forward, Go version 1.N will require a Go 1.M compiler, where M is N-2
+     ;; rounded down to an even number. Example: Go 1.24 and 1.25 require Go 1.22."
+     (alist-replace "go"
+                    (list go-1.20)
+                    (package-native-inputs go-1.20)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments go-1.21)
+       ((#:phases phases)
+        #~(modify-phases #$phases
+            ;; Perl test script removed. See: https://github.com/golang/go/commit/ff19f8e7636f0b5797f3b65cee69f41fb650b965
+            (delete 'unpatch-perl-shebangs)))))))
+
 (define-public go go-1.17)
 
 (define make-go-std
-- 
2.44.0





Information forwarded to guix-patches <at> gnu.org:
bug#70206; Package guix-patches. (Fri, 05 Apr 2024 01:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 70206 <at> debbugs.gnu.org (full text, mbox):

From: Imran Iqbal <imran <at> imraniqbal.org>
To: 70206 <at> debbugs.gnu.org
Cc: Imran Iqbal <imran <at> imraniqbal.org>
Subject: [PATCH 2/2] gnu: Add the Go standard library 1.22.
Date: Thu,  4 Apr 2024 21:23:39 -0400
* gnu/packages/golang.scm (go-std-1.22): New variable.

Change-Id: I912204dc87266ced6bc7c7651a91319f75316714
---
 gnu/packages/golang.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index cb6c712a4d..140cb0dd95 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1188,6 +1188,7 @@ (define-public go-std-1.18 (make-go-std go-1.18))
 (define-public go-std-1.19 (make-go-std go-1.19))
 (define-public go-std-1.20 (make-go-std go-1.20))
 (define-public go-std-1.21 (make-go-std go-1.21))
+(define-public go-std-1.22 (make-go-std go-1.22))
 
 (define-public go-0xacab-org-leap-shapeshifter
   (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
-- 
2.44.0





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Tue, 16 Apr 2024 18:29:04 GMT) Full text and rfc822 format available.

Notification sent to Imran Iqbal <imran <at> imraniqbal.org>:
bug acknowledged by developer. (Tue, 16 Apr 2024 18:29:04 GMT) Full text and rfc822 format available.

Message #16 received at 70206-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 70206-done <at> debbugs.gnu.org
Subject: [PATCH 0/2] gnu: Add go-1.22.
Date: Tue, 16 Apr 2024 19:28:13 +0100
[Message part 1 (text/plain, inline)]
Hi,

There is go-1.22 in go-team branch.

It will be merge soon to master.

Thanks.
Oleg
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 May 2024 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.