From 8226771a337df104e3c6a7cb123a968e1226a619 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 12 Dec 2021 11:53:38 +0200 Subject: gnu: go-1.14: Fix building on some platforms. * gnu/packages/golang.scm (go-1.14)[arguments]: In custom 'prebuild phase also search for loader without 'linux' in the string. In custom 'build phase set the GOCACHE directory. [native-inputs]: On systems which don't have support in go-1.4 use gccgo-10 instead. --- gnu/packages/golang.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 41f4d1d218..e54692205d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -272,7 +272,8 @@ in the style of communicating sequential processes (@dfn{CSP}).") (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) (ld (string-append (assoc-ref inputs "libc") "/lib")) - (loader (car (find-files ld "^ld-linux.+"))) + (loader (car (append (find-files ld "^ld-linux.+") + (find-files ld "^ld(64)?\\.so.+")))) (net-base (assoc-ref inputs "net-base")) (tzdata-path (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) @@ -409,6 +410,7 @@ in the style of communicating sequential processes (@dfn{CSP}).") (setenv "GOOS" "linux") (setenv "GOROOT" (dirname (getcwd))) (setenv "GOROOT_FINAL" output) + (setenv "GOCACHE" "/tmp/go-cache") (setenv "CGO_ENABLED" "1") (invoke "sh" "all.bash")))) (replace 'install @@ -447,7 +449,9 @@ in the style of communicating sequential processes (@dfn{CSP}).") (copy-recursively "../" output) #t))))))) (native-inputs - `(("go" ,go-1.4) + `(,@(if (member (%current-system) (package-supported-systems go-1.4)) + `(("go" ,go-1.4)) + `(("go" ,gccgo-10))) ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch")) ,@(match (%current-system) ((or "armhf-linux" "aarch64-linux") -- cgit v1.2.3 b4d1712e'>packages/zig.scm
AgeCommit message (Expand)Author
2023-07-14gnu: zig-0.9: Fix building on riscv64-linux....* gnu/packages/zig.scm (zig-0.9)[source]: Add patch. [arguments]: Skip tests when building for riscv64-linux. When building for riscv64-linux add a phase to adjust the tests. * gnu/packages/patches/zig-0.9-riscv-support.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Efraim Flashner
2023-04-22gnu: zig: Fix build....* gnu/packages/patches/zig-do-not-link-against-librt.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/zig.scm (zig-0.10): Use it. Also force LLVM to be dynamically linked, and set up the CC env variable. (zig-0.9): Also use the above patch. Signed-off-by: Andreas Enge <andreas@enge.fr> Josselin Poiret
2023-03-20gnu: zig: Increase max-silent-time....* gnu/packages/zig.scm (zig-0.10)[properties]: Set max-silent-time to 3 hours. Efraim Flashner
2023-03-19gnu: zig: Build against a baseline CPU....* gnu/packages/zig.scm (zig-0.10)[#:configure-flags]: Add “-DZIG_TARGET_MCPU=baseline”. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Ekaitz Zarraga
2023-02-09gnu: zig: Update to 0.10.1....* gnu/packages/zig.scm (zig-0.10): New variable. (zig-0.9): Rename from zig. Inherit from zig-0.10. (zig): Define as zig-0.10. * gnu/packages/ncdu.scm (ncdu)[native-inputs]: Use zig-0.9. * gnu/packages/zig-xyz.scm (zig-zls)[inputs]: Use zig-0.9. Efraim Flashner