guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: go-1.17: Don't build with gccgo.


From: guix-commits
Subject: 01/03: gnu: go-1.17: Don't build with gccgo.
Date: Tue, 12 Oct 2021 14:26:23 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit f85dacd8697e89e68b346c34905d7a7f40bf66ff
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 12 20:55:23 2021 +0300

    gnu: go-1.17: Don't build with gccgo.
    
    * gnu/packages/golang.scm (go-1.17)[native-inputs]: When building on
    architectures not supported by go-1.4 use go-1.16 in place of gccgo.
---
 gnu/packages/golang.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index bd9c239..5786da58 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -793,7 +793,13 @@ in the style of communicating sequential processes 
(@dfn{CSP}).")
                   (install-file file (string-append out "/share/doc/go")))
                 '("AUTHORS" "CONTRIBUTORS" "CONTRIBUTING.md" "PATENTS"
                   "README.md" "SECURITY.md"))))))))
-    (inputs (alist-delete "gcc:lib" (package-inputs go-1.16)))))
+    (inputs (alist-delete "gcc:lib" (package-inputs go-1.16)))
+    (native-inputs
+     `(,@(if (not (member (%current-system) (package-supported-systems 
go-1.4)))
+           ;; gccgo-10.4, 11.3 and lower has a bug which causes bootstrapping
+           ;; to fail. Use go-1.16 until we have a newer version available.
+           (alist-replace "go" (list go-1.16) (package-native-inputs go-1.16))
+           (package-native-inputs go-1.16))))))
 
 (define-public go go-1.14)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]