unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
@ 2019-04-20 19:41 Alex Griffin
  2019-05-27 14:29 ` Ludovic Courtès
  2019-05-27 17:33 ` Leo Famulari
  0 siblings, 2 replies; 8+ messages in thread
From: Alex Griffin @ 2019-04-20 19:41 UTC (permalink / raw)
  To: 35348

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

The Go bootstrap compiler in Guix currently includes a couple unnecessary workarounds for bugs which have already been fixed. This patch switches to using the bootstrap branch which is still maintained upstream.

-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-go-1.4-Update-to-1.4-bootstrap-20171003.patch --]
[-- Type: text/x-patch; name="0001-gnu-go-1.4-Update-to-1.4-bootstrap-20171003.patch", Size: 3048 bytes --]

From 4d784a54e5736d2eaeac2a6e9ed14c7d11598705 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sat, 20 Apr 2019 14:01:17 -0500
Subject: [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.

* gnu/packages/golang.scm (go-1.4): Use the bootstrap branch that is
still support upstream.
[version]: Update to 1.4-bootstrap-20171003.
[arguments]: Remove fix to timezone test which is now included upstream. Don't
manually disable CGO because it is disabled by default. Manually enable test
suite because future releases will disable tests by default.
---
 gnu/packages/golang.scm | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0b44bd3d02..3bd1c3eb8f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
 ;;; Copyright @ 2018, 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
 ;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
+;;; Copyright @ 2019 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -61,14 +62,14 @@
 (define-public go-1.4
   (package
     (name "go")
-    (version "1.4.3")
+    (version "1.4-bootstrap-20171003")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://storage.googleapis.com/golang/"
-                                  name version ".src.tar.gz"))
+                                  name version ".tar.gz"))
               (sha256
                (base32
-                "0na9yqilzpvq0bjndbibfp07wr796gf252y471cip10bbdqgqiwr"))))
+                "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl"))))
     (build-system gnu-build-system)
     (outputs '("out"
                "doc"
@@ -135,13 +136,6 @@
                   ("os/os_test.go" "(.+)(TestHostname.+)")
                   ("time/format_test.go" "(.+)(TestParseInSydney.+)")
 
-                  ;; Tzdata 2016g changed the name of the time zone used in this
-                  ;; test, and the patch for Go 1.7 does not work for 1.4.3:
-                  ;; https://github.com/golang/go/issues/17545
-                  ;; https://github.com/golang/go/issues/17276
-                  ("time/time_test.go" "(.+)(TestLoadFixed.+)")
-                  ("time/format_test.go" "(.+)(TestParseInLocation.+)")
-
                   ("os/exec/exec_test.go" "(.+)(TestEcho.+)")
                   ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)")
                   ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)")
@@ -168,9 +162,7 @@
                (setenv "GOOS" "linux")
                (setenv "GOROOT" (dirname (getcwd)))
                (setenv "GOROOT_FINAL" output)
-               ;; Go 1.4's cgo will not work with binutils >= 2.27:
-               ;; https://github.com/golang/go/issues/16906
-               (setenv "CGO_ENABLED" "0")
+               (setenv "GO14TESTS" "1")
                (invoke "sh" "all.bash"))))
 
          (replace 'install
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-04-20 19:41 [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003 Alex Griffin
@ 2019-05-27 14:29 ` Ludovic Courtès
  2019-05-27 17:33 ` Leo Famulari
  1 sibling, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2019-05-27 14:29 UTC (permalink / raw)
  To: Alex Griffin, Leo Famulari; +Cc: 35348

Hello Alex,

"Alex Griffin" <a@ajgrf.com> skribis:

> The Go bootstrap compiler in Guix currently includes a couple unnecessary workarounds for bugs which have already been fixed. This patch switches to using the bootstrap branch which is still maintained upstream.

Leo, could you take a look at this patch?

  https://issues.guix.gnu.org/issue/35348

Thanks in advance,
Ludo’.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-04-20 19:41 [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003 Alex Griffin
  2019-05-27 14:29 ` Ludovic Courtès
@ 2019-05-27 17:33 ` Leo Famulari
  2019-05-27 17:38   ` Leo Famulari
  1 sibling, 1 reply; 8+ messages in thread
From: Leo Famulari @ 2019-05-27 17:33 UTC (permalink / raw)
  To: Alex Griffin; +Cc: 35348

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

On Sat, Apr 20, 2019 at 03:41:34PM -0400, Alex Griffin wrote:
> The Go bootstrap compiler in Guix currently includes a couple
> unnecessary workarounds for bugs which have already been fixed. This
> patch switches to using the bootstrap branch which is still maintained
> upstream.

Thanks for taking care of this!

How did you find this newer tarball? It doesn't appear at
<https://golang.org/dl/> or the Go GitHub page. Can you add a code
comment with a link and send a revised patch?

> From 4d784a54e5736d2eaeac2a6e9ed14c7d11598705 Mon Sep 17 00:00:00 2001
> From: Alex Griffin <a@ajgrf.com>
> Date: Sat, 20 Apr 2019 14:01:17 -0500
> Subject: [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
> 
> * gnu/packages/golang.scm (go-1.4): Use the bootstrap branch that is
> still support upstream.
> [version]: Update to 1.4-bootstrap-20171003.
> [arguments]: Remove fix to timezone test which is now included upstream. Don't
> manually disable CGO because it is disabled by default. Manually enable test
> suite because future releases will disable tests by default.

LGTM.

I think the number of packages that will need to be rebuilt is small
enough that we can push this directly to the master branch, and this
update should not have any effect on the later compiler versions, but
did you check that major Go packages like mongo-tools, restic, and
Syncthing still build?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-05-27 17:33 ` Leo Famulari
@ 2019-05-27 17:38   ` Leo Famulari
  2019-05-27 17:46     ` Alex Griffin
  0 siblings, 1 reply; 8+ messages in thread
From: Leo Famulari @ 2019-05-27 17:38 UTC (permalink / raw)
  To: Alex Griffin; +Cc: 35348

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On Mon, May 27, 2019 at 01:33:02PM -0400, Leo Famulari wrote:
> I think the number of packages that will need to be rebuilt is small
> enough that we can push this directly to the master branch, and this
> update should not have any effect on the later compiler versions, but
> did you check that major Go packages like mongo-tools, restic, and
> Syncthing still build?

I didn't realize you sent your patch so long ago... I will test these
things myself. But can you still let me know how you found the newer
tarball?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-05-27 17:38   ` Leo Famulari
@ 2019-05-27 17:46     ` Alex Griffin
  2019-05-27 18:27       ` bug#35348: " Leo Famulari
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Griffin @ 2019-05-27 17:46 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 35348

Hi Leo,

I found the tarball on [this page](https://golang.org/doc/install/source#go14). That's also the page to check for updates.

You can see the changes by looking at release-branch.go1.4 in git (https://github.com/golang/go/tree/release-branch.go1.4).

Thanks,
-- 
Alex Griffin

On Mon, May 27, 2019, at 5:38 PM, Leo Famulari wrote:
> On Mon, May 27, 2019 at 01:33:02PM -0400, Leo Famulari wrote:
> > I think the number of packages that will need to be rebuilt is small
> > enough that we can push this directly to the master branch, and this
> > update should not have any effect on the later compiler versions, but
> > did you check that major Go packages like mongo-tools, restic, and
> > Syncthing still build?
> 
> I didn't realize you sent your patch so long ago... I will test these
> things myself. But can you still let me know how you found the newer
> tarball?
> 
> Attachments:
> * signature.asc

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#35348: [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-05-27 17:46     ` Alex Griffin
@ 2019-05-27 18:27       ` Leo Famulari
  2019-05-29 16:52         ` [bug#35348] " Alex Griffin
  0 siblings, 1 reply; 8+ messages in thread
From: Leo Famulari @ 2019-05-27 18:27 UTC (permalink / raw)
  To: Alex Griffin; +Cc: 35348-done

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

On Mon, May 27, 2019 at 05:46:44PM +0000, Alex Griffin wrote:
> Hi Leo,
> 
> I found the tarball on [this page](https://golang.org/doc/install/source#go14). That's also the page to check for updates.
> 
> You can see the changes by looking at release-branch.go1.4 in git (https://github.com/golang/go/tree/release-branch.go1.4).

Thanks!

I added a comment and pushed your patch as
521d736ae97ef34f4e6136c7175a99c680c5ac95.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-05-27 18:27       ` bug#35348: " Leo Famulari
@ 2019-05-29 16:52         ` Alex Griffin
  2019-05-31 14:31           ` Leo Famulari
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Griffin @ 2019-05-29 16:52 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 35348-done

On Mon, May 27, 2019, at 6:27 PM, Leo Famulari wrote:
> I added a comment [...]

I don't know if it's worth another commit, but you misspelled "langauge" in your comment.

> and pushed your patch as 521d736ae97ef34f4e6136c7175a99c680c5ac95.

Thanks!
-- 
Alex Griffin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003.
  2019-05-29 16:52         ` [bug#35348] " Alex Griffin
@ 2019-05-31 14:31           ` Leo Famulari
  0 siblings, 0 replies; 8+ messages in thread
From: Leo Famulari @ 2019-05-31 14:31 UTC (permalink / raw)
  To: Alex Griffin; +Cc: 35348-done

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

On Wed, May 29, 2019 at 04:52:37PM +0000, Alex Griffin wrote:
> I don't know if it's worth another commit, but you misspelled "langauge" in your comment.

Thanks, fixed in 9bc1de31348858278067a45c5965328677ee74d8

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-05-31 14:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-20 19:41 [bug#35348] [PATCH] gnu: go@1.4: Update to 1.4-bootstrap-20171003 Alex Griffin
2019-05-27 14:29 ` Ludovic Courtès
2019-05-27 17:33 ` Leo Famulari
2019-05-27 17:38   ` Leo Famulari
2019-05-27 17:46     ` Alex Griffin
2019-05-27 18:27       ` bug#35348: " Leo Famulari
2019-05-29 16:52         ` [bug#35348] " Alex Griffin
2019-05-31 14:31           ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).