1 |
commit: f28480799d348da161f8d121df2fb99c73250ab3 |
2 |
Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> |
3 |
AuthorDate: Tue Nov 1 03:56:36 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 7 06:51:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2848079 |
7 |
|
8 |
dev-lang/zig: add 0.10.0 |
9 |
|
10 |
Drop "threads" USE flag, since this is default and well-tested |
11 |
configuration by upstream. |
12 |
Drop "test" USE flag, since it doesn't require special dependencies (or preparations) |
13 |
necessary to run tests. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/876181 |
16 |
Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me> |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
dev-lang/zig/Manifest | 1 + |
20 |
dev-lang/zig/{zig-9999.ebuild => zig-0.10.0.ebuild} | 17 ++++++++++++----- |
21 |
dev-lang/zig/zig-9999.ebuild | 9 ++++----- |
22 |
3 files changed, 17 insertions(+), 10 deletions(-) |
23 |
|
24 |
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest |
25 |
index f18eeb3ba012..fd2ecb470579 100644 |
26 |
--- a/dev-lang/zig/Manifest |
27 |
+++ b/dev-lang/zig/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
+DIST zig-0.10.0.tar.xz 14530912 BLAKE2B 5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c SHA512 9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682 |
30 |
DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93 SHA512 259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692 |
31 |
DIST zig-0.9.1.tar.xz 13940828 BLAKE2B 996b0e945f61b01dddbb7c8674a9e2d2d01b93eb48fdfd2c986496330990ffa64cba15f8bd8518b90ef6f514759ba6cc3fd31d6044c5b11b92bf92e3f7f15303 SHA512 0b8a5f9b7e34e4252536f59bc91429f1e76b2bf8e01f024095919f6ecf34db56b5c86c554fbb94bdcb5255394c87f2c87519c8f34c631f53816927ec0882ae2d |
32 |
|
33 |
diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-0.10.0.ebuild |
34 |
similarity index 61% |
35 |
copy from dev-lang/zig/zig-9999.ebuild |
36 |
copy to dev-lang/zig/zig-0.10.0.ebuild |
37 |
index f4f7a100d588..451df4ef6f6d 100644 |
38 |
--- a/dev-lang/zig/zig-9999.ebuild |
39 |
+++ b/dev-lang/zig/zig-0.10.0.ebuild |
40 |
@@ -18,8 +18,6 @@ fi |
41 |
|
42 |
LICENSE="MIT" |
43 |
SLOT="0" |
44 |
-IUSE="test +threads" |
45 |
-RESTRICT="!test? ( test )" |
46 |
|
47 |
BUILD_DIR="${S}/build" |
48 |
|
49 |
@@ -42,7 +40,10 @@ llvm_check_deps() { |
50 |
has_version "sys-devel/clang:${LLVM_SLOT}" |
51 |
} |
52 |
|
53 |
-# see https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements |
54 |
+# see https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler |
55 |
+# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for bootstrapping |
56 |
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use self-hosted compiler |
57 |
+# (transpiled to C via C backend) for bootstrapping |
58 |
CHECKREQS_MEMORY="10G" |
59 |
|
60 |
pkg_setup() { |
61 |
@@ -54,7 +55,6 @@ src_configure() { |
62 |
local mycmakeargs=( |
63 |
-DZIG_USE_CCACHE=OFF |
64 |
-DZIG_SHARED_LLVM=ON |
65 |
- -DZIG_SINGLE_THREADED="$(usex !threads)" |
66 |
-DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT}) |
67 |
) |
68 |
|
69 |
@@ -67,8 +67,15 @@ src_test() { |
70 |
} |
71 |
|
72 |
# see https://github.com/ziglang/zig/issues/3382 |
73 |
+# For now, Zig doesn't support CFLAGS/LDFLAGS/etc. |
74 |
QA_FLAGS_IGNORED="usr/bin/zig" |
75 |
|
76 |
pkg_postinst() { |
77 |
- elog "If you want to use stage1 backend, use -fstage1 flag" |
78 |
+ elog "0.10.0 release introduces self-hosted compiler for general use by default" |
79 |
+ elog "It means that your code can be un-compilable since this compiler has some new or removed features and new or fixed bugs" |
80 |
+ elog "Upstream recommends using stage1 if experiencing such breakage," |
81 |
+ elog "until bugfix release 0.10.1 or release 0.11.0 where old compiler will be fully replaced" |
82 |
+ elog "You can use old compiler by using '-fstage1' flag" |
83 |
+ elog "Also see: https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler" |
84 |
+ elog "and https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade" |
85 |
} |
86 |
|
87 |
diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild |
88 |
index f4f7a100d588..b5b25d1f884f 100644 |
89 |
--- a/dev-lang/zig/zig-9999.ebuild |
90 |
+++ b/dev-lang/zig/zig-9999.ebuild |
91 |
@@ -42,7 +42,10 @@ llvm_check_deps() { |
92 |
has_version "sys-devel/clang:${LLVM_SLOT}" |
93 |
} |
94 |
|
95 |
-# see https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements |
96 |
+# see https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler |
97 |
+# 0.10.0 release - 9.6 GiB, since we use compiler written in C++ for bootstrapping |
98 |
+# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use self-hosted compiler |
99 |
+# (transpiled to C via C backend) for bootstrapping |
100 |
CHECKREQS_MEMORY="10G" |
101 |
|
102 |
pkg_setup() { |
103 |
@@ -68,7 +71,3 @@ src_test() { |
104 |
|
105 |
# see https://github.com/ziglang/zig/issues/3382 |
106 |
QA_FLAGS_IGNORED="usr/bin/zig" |
107 |
- |
108 |
-pkg_postinst() { |
109 |
- elog "If you want to use stage1 backend, use -fstage1 flag" |
110 |
-} |