gnu: zig: Remove unneeded librt patch.

* gnu/packages/patches/zig-do-not-link-against-librt.patch: Delete patch.
* gnu/local.mk (dist_patch_DATA): Unregister.
* gnu/packages/zig.scm (zig-0.9, zig-0.10): Remove patch.

Change-Id: Ifc6c811671827aeb8ae4c191020ef724847abebe
This commit is contained in:
Josselin Poiret 2023-12-28 17:04:31 +01:00 committed by Ludovic Courtès
parent e87060ff6d
commit 828daf0ab0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 2 additions and 15 deletions

View file

@ -2301,7 +2301,6 @@ dist_patch_DATA = \
%D%/packages/patches/xygrib-newer-proj.patch \ %D%/packages/patches/xygrib-newer-proj.patch \
%D%/packages/patches/yggdrasil-extra-config.patch \ %D%/packages/patches/yggdrasil-extra-config.patch \
%D%/packages/patches/zig-0.9-riscv-support.patch \ %D%/packages/patches/zig-0.9-riscv-support.patch \
%D%/packages/patches/zig-do-not-link-against-librt.patch \
%D%/packages/patches/zig-use-baseline-cpu-by-default.patch \ %D%/packages/patches/zig-use-baseline-cpu-by-default.patch \
%D%/packages/patches/zig-use-system-paths.patch \ %D%/packages/patches/zig-use-system-paths.patch \
%D%/packages/patches/zsh-egrep-failing-test.patch \ %D%/packages/patches/zsh-egrep-failing-test.patch \

View file

@ -1,10 +0,0 @@
--- a/src/target.zig 2023-04-22 11:44:47.917416658 +0200
+++ b/src/target.zig 2023-04-22 11:45:04.577465352 +0200
@@ -478,7 +478,6 @@
"-lpthread",
"-lc",
"-ldl",
- "-lrt",
"-lutil",
},
},

View file

@ -45,8 +45,7 @@ (define-public zig-0.9
(sha256 (sha256
(base32 "0nfvgg23sw50ksy0z0ml6lkdsvmd0278mq29m23dbb2jsirkhry7")) (base32 "0nfvgg23sw50ksy0z0ml6lkdsvmd0278mq29m23dbb2jsirkhry7"))
(patches (search-patches "zig-0.9-riscv-support.patch" (patches (search-patches "zig-0.9-riscv-support.patch"
"zig-use-system-paths.patch" "zig-use-system-paths.patch"))))
"zig-do-not-link-against-librt.patch"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
@ -148,8 +147,7 @@ (define-public zig-0.10
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1sh5xjsksl52i4cfv1qj36sz5h0ln7cq4pdhgs3960mk8a90im7b")) (base32 "1sh5xjsksl52i4cfv1qj36sz5h0ln7cq4pdhgs3960mk8a90im7b"))
(patches (search-patches "zig-do-not-link-against-librt.patch" (patches (search-patches "zig-use-baseline-cpu-by-default.patch"))))
"zig-use-baseline-cpu-by-default.patch"))))
(arguments (arguments
(substitute-keyword-arguments (package-arguments zig-0.9) (substitute-keyword-arguments (package-arguments zig-0.9)
((#:configure-flags flags ''()) ((#:configure-flags flags ''())