gnu: go-1.14: On systems not supported by go-1.4 use gccgo-12.

* gnu/packages/golang.scm (go-1.14)[native-inputs]: On systems not
supported by go-1.4 replace gccgo-10 with gccgo-12.
(go-1.17)[native-inputs]: Remove workaround and inherit from go-1.14.
This commit is contained in:
Efraim Flashner 2023-02-13 16:27:48 +02:00
parent ae2ecd04fc
commit 455ecb5cbe
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -463,7 +463,7 @@ (define-public go-1.14
(native-inputs
`(,@(if (member (%current-system) (package-supported-systems go-1.4))
`(("go" ,go-1.4))
`(("go" ,gccgo-10)))
`(("go" ,gccgo-12)))
("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
,@(match (%current-system)
((or "armhf-linux" "aarch64-linux")
@ -837,13 +837,7 @@ (define-public go-1.17
"README.md" "SECURITY.md"))))))))
(inputs (if (not (target-arm?))
(alist-delete "gcc:lib" (package-inputs go-1.16))
(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)))))
(package-inputs go-1.16)))))
(define-public go-1.18
(package