[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates-frozen updated: gnu: go-1.14: Fix test failure with
From: |
guix-commits |
Subject: |
branch core-updates-frozen updated: gnu: go-1.14: Fix test failure with GCC 9+. |
Date: |
Sat, 14 Aug 2021 16:02:52 -0400 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch core-updates-frozen
in repository guix.
The following commit(s) were added to refs/heads/core-updates-frozen by this
push:
new 74bc8e5 gnu: go-1.14: Fix test failure with GCC 9+.
74bc8e5 is described below
commit 74bc8e59df6e54bf325ac5e5902106f82a282ae8
Author: Sarah Morgensen <iskarian@mgsn.dev>
AuthorDate: Sat Aug 14 15:47:36 2021 -0400
gnu: go-1.14: Fix test failure with GCC 9+.
With GCC 9+, go-1.14 fails a test when the gold linker is not
available (https://github.com/golang/go/issues/39157). Backport the fix
for that from https://github.com/golang/go/commit/4ec4a79.
This is a followup to the 'master -> core-updates-frozen' merge in
c4133c43c7cfe2476ebfae87f9e4d10d96de9bc7, which accidentally dropped this
commit
(2818c66e93c4803de1d9fb8fbc11ccc9fa6a1859) due to the code in question being
moved to another part of the file on the master branch.
Reported on #guix by iskarian:
<https://logs.guix.gnu.org/guix/2021-08-14.log#214343>
* gnu/packages/golang.scm (go-1.14)[arguments]<#:phases>{prebuild}:
Fix test failure with GCC 9+.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/golang.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index c4122f9..028a666 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -307,6 +307,11 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(("/bin/pwd") (which "pwd"))
(("/bin/sh") (which "sh")))
+ ;; Backport fix for go-1.14 with GCC 9+
+ ;; https://github.com/golang/go/issues/39157
+ (substitute* "cmd/go/note_test.go"
+ (("cannot find 'ld'") "cannot find [‘']ld[’']"))
+
;; Add libgcc to runpath
(substitute* "cmd/link/internal/ld/lib.go"
(("!rpath.set") "true"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates-frozen updated: gnu: go-1.14: Fix test failure with GCC 9+.,
guix-commits <=