[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/59: gnu: Add zig-0.10.0-747.
From: |
guix-commits |
Subject: |
08/59: gnu: Add zig-0.10.0-747. |
Date: |
Sun, 17 Nov 2024 21:51:55 -0500 (EST) |
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit 3fa902d2fa28ff873a12ec7a1f1d1038254cee6b
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Mon Nov 11 10:48:46 2024 +0800
gnu: Add zig-0.10.0-747.
* gnu/packages/patches/zig-0.10.0-747-CallOptions.patch: New file.
* gnu/local.mk (dist_patch_DATA): Regisiter it.
* gnu/packages/zig.scm (zig-0.10.0-747): New variable.
Change-Id: I06e3255cbb3a4ddea28a7d663c8f72040ce993af
---
gnu/local.mk | 1 +
.../patches/zig-0.10.0-747-CallOptions.patch | 28 +++++++++++++++++++
gnu/packages/zig.scm | 32 ++++++++++++++++++++++
3 files changed, 61 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 6bf2fac977..cce19b8b48 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2375,6 +2375,7 @@ dist_patch_DATA =
\
%D%/packages/patches/zig-0.10-use-system-paths.patch \
%D%/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch
\
%D%/packages/patches/zig-0.10.0-675-TypeOf-hack.patch \
+ %D%/packages/patches/zig-0.10.0-747-CallOptions.patch \
%D%/packages/patches/zsh-egrep-failing-test.patch \
%D%/packages/patches/zuo-bin-sh.patch
diff --git a/gnu/packages/patches/zig-0.10.0-747-CallOptions.patch
b/gnu/packages/patches/zig-0.10.0-747-CallOptions.patch
new file mode 100644
index 0000000000..78c2244603
--- /dev/null
+++ b/gnu/packages/patches/zig-0.10.0-747-CallOptions.patch
@@ -0,0 +1,28 @@
+From 27f2553c1c53ec417181dfe30104df993dffdab1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= <motiejus@jakstys.lt>
+Date: Tue, 5 Nov 2024 06:20:19 +0200
+Subject: [PATCH] 0.10.0-747-g7b2a936173 CallOptions + zig2-only
+
+---
+ CMakeLists.txt | 19 -------------------
+ lib/std/builtin.zig | 5 +++++
+ 2 files changed, 5 insertions(+), 19 deletions(-)
+
+diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
+index eb1212607d..5278906d43 100644
+--- a/lib/std/builtin.zig
++++ b/lib/std/builtin.zig
+@@ -1,5 +1,10 @@
+ const builtin = @import("builtin");
+
++pub const CallOptions = struct {
++ modifier: CallModifier = .auto,
++ stack: ?[]align(std.Target.stack_align) u8 = null,
++};
++
+ /// `explicit_subsystem` is missing when the subsystem is automatically
detected,
+ /// so Zig standard library has the subsystem detection logic here. This
should generally be
+ /// used rather than `explicit_subsystem`.
+--
+2.44.1
+
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 42f4ddc345..f4f5c61e50 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -386,4 +386,36 @@ toolchain. Among other features it provides
(prepend zstd)
(replace "zig" `(,base "zig1")))))))
+;; Supply zig2, build zig1.wasm, install zig1.wasm.
+(define zig-0.10.0-747
+ (let ((commit "7b2a936173165002105ba5e76bed69654e132fea")
+ (revision "747")
+ (base zig-0.10.0-722))
+ (package
+ (inherit base)
+ (name "zig")
+ (version (git-version "0.10.0" revision commit))
+ (source
+ (origin
+ (inherit (zig-source
+ version commit
+ "1z5ndywk4d1dcv2k3bw3n2zgjr3ysf3bi2ac4jhwqgnmzsw498wd"))
+ (patches (search-patches "zig-0.10.0-747-CallOptions.patch"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments zig-0.10.0-722)
+ ((#:phases phases '%standard-phases)
+ #~(modify-phases #$phases
+ (replace 'build-zig1
+ (lambda _
+ (invoke "zig2" "build" "--zig-lib-dir" "lib"
+ "update-zig1" "--verbose")))
+ (delete 'prepare-source)
+ (delete 'configure)
+ (delete 'build)
+ (delete 'install)))))
+ (native-inputs
+ (modify-inputs (package-native-inputs base)
+ (replace "zig" `(,base "out"))
+ (delete "zstd"))))))
+
(define-public zig zig-0.10)
- 46/59: gnu: Add zig-0.11.0-1967., (continued)
- 46/59: gnu: Add zig-0.11.0-1967., guix-commits, 2024/11/17
- 43/59: gnu: Add zig-0.11.0-638., guix-commits, 2024/11/17
- 25/59: gnu: Add zig-0.10.0-2558., guix-commits, 2024/11/17
- 20/59: gnu: Add zig-0.10.0-1681., guix-commits, 2024/11/17
- 34/59: gnu: Add zig-0.10.0-3813., guix-commits, 2024/11/17
- 51/59: gnu: Add zig-0.11.0-3506., guix-commits, 2024/11/17
- 23/59: gnu: Add zig-0.10.0-1888., guix-commits, 2024/11/17
- 56/59: gnu: ncdu: Update to 2.6., guix-commits, 2024/11/17
- 54/59: gnu: Add zig-0.12.0-109., guix-commits, 2024/11/17
- 06/59: gnu: Add zig-0.10.0-675., guix-commits, 2024/11/17
- 08/59: gnu: Add zig-0.10.0-747.,
guix-commits <=
- 05/59: gnu: Add zig-0.10.0-610., guix-commits, 2024/11/17
- 10/59: gnu: Add zig-0.10.0-851., guix-commits, 2024/11/17
- 14/59: gnu: Add zig-0.10.0-1027., guix-commits, 2024/11/17
- 19/59: gnu: Add zig-0.10.0-1657., guix-commits, 2024/11/17
- 17/59: gnu: Add zig-0.10.0-1506., guix-commits, 2024/11/17
- 27/59: gnu: Add zig-0.10.0-2571., guix-commits, 2024/11/17
- 36/59: gnu: Add zig-0.10.0-3985., guix-commits, 2024/11/17
- 42/59: gnu: Add zig-0.11.0-631., guix-commits, 2024/11/17
- 45/59: gnu: Add zig-0.11.0-761., guix-commits, 2024/11/17
- 44/59: gnu: Add zig-0.11.0-702., guix-commits, 2024/11/17