guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit 860c8d5f6e1c656232bb2d9828d092cdf864889c
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Aug 19 19:51:59 2025 +0300
gnu: go-1.17: Don't inherit from go-1.16.
* gnu/packages/golang.scm (go-1.17)[inherit]: Remove field.
[build-system, native-inputs, home-page, synopsis, description,
license]: Add previously inherited fields.
[inputs]: Rewrite without inheriting from go-1.16.
Change-Id: I74e7ca00d0d8f1f79b9e76e10530903a23e3e93b
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang.scm | 28 +++++++++++++++++++++++-----
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 091987d3dc..f267fdbfec 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -478,7 +478,6 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(define-public go-1.17
(package
- (inherit go-1.16)
(name "go")
(version "1.17.13")
(source
@@ -492,6 +491,7 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(base32
"05m8gr050kagvn22lfnjrgms03l5iphd1m4v6z7yqlhn9gdp912d"))))
(outputs '("out" "tests")) ; 'tests' contains distribution tests.
+ (build-system gnu-build-system)
(arguments
`(#:modules ((ice-9 match)
(guix build gnu-build-system)
@@ -709,13 +709,31 @@ 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 (if (not (or (target-arm?) (target-ppc64le?)))
- (alist-delete "gcc:lib" (package-inputs go-1.16))
- (package-inputs go-1.16)))
+ (inputs
+ (if (member (%current-system) (package-supported-systems go-1.4))
+ (package-inputs go-1.4)
+ (alist-delete "gcc:lib" (package-inputs go-1.4))))
+ (native-inputs
+ `(,@(if (member (%current-system) (package-supported-systems go-1.4))
+ `(("go" ,go-1.4))
+ `(("go" ,gccgo-12)))
+ ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
+ ("go-fix-script-tests.patch" ,(search-patch
"go-fix-script-tests.patch"))
+ ,@(package-native-inputs go-1.4)))
+ (home-page "https://go.dev/")
+ (synopsis "Compiler and libraries for Go, a statically-typed language")
+ (description "Go, also commonly referred to as golang, is an imperative
+programming language designed primarily for systems programming. Go is a
+compiled, statically typed language in the tradition of C and C++, but adds
+garbage collection, various safety features, and concurrent programming
features
+in the style of communicating sequential processes (@dfn{CSP}).")
+ (supported-systems (fold delete %supported-systems
+ (list "powerpc-linux" "i586-gnu" "x86_64-gnu")))
(properties
`((compiler-cpu-architectures
("armhf" ,@%go-1.17-arm-micro-architectures)
- ("powerpc64le" ,@%go-1.17-powerpc64le-micro-architectures))))))
+ ("powerpc64le" ,@%go-1.17-powerpc64le-micro-architectures))))
+ (license license:bsd-3)))
(define %go-1.18-x86_64-micro-architectures
;; GOAMD defaults to 'v1' so we match the default elsewhere.