From f85dacd8697e89e68b346c34905d7a7f40bf66ff Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 12 Oct 2021 20:55:23 +0300 Subject: 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(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index bd9c239b39..5786da586c 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) -- cgit v1.2.3