1 |
commit: 67e28ad1e4320b9ecb7b4f1925cd328252bd2a65 |
2 |
Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> |
3 |
AuthorDate: Thu Mar 16 15:03:10 2023 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 09:44:24 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67e28ad1 |
7 |
|
8 |
dev-lang/zig: drop 0.10.0-r1, 0.10.1 |
9 |
|
10 |
Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me> |
11 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
12 |
|
13 |
dev-lang/zig/Manifest | 1 - |
14 |
.../zig/files/zig-0.10.0-avoid-cmake-bug.patch | 63 ------------- |
15 |
dev-lang/zig/zig-0.10.0-r1.ebuild | 101 --------------------- |
16 |
dev-lang/zig/zig-0.10.1.ebuild | 99 -------------------- |
17 |
4 files changed, 264 deletions(-) |
18 |
|
19 |
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest |
20 |
index 22f469292044..529aa0c2bc35 100644 |
21 |
--- a/dev-lang/zig/Manifest |
22 |
+++ b/dev-lang/zig/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST zig-0.10.0.tar.xz 14530912 BLAKE2B 5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c SHA512 9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682 |
25 |
DIST zig-0.10.1.tar.xz 15143112 BLAKE2B 4954d95ad763000eedf73a78e62bc0e99d65bba91c7127cdf1ea4503eb67817265daf572f645b7efbe9e24087e690b2768f0b2bc6c43b5fd76eab33143e964fe SHA512 d443adf61556bc95470537c6b0371a0ac99d19a06b15635cf1e5055ae7849039680c9006105e06e1bd6ba0fc12da14c54c1d28ac597c7dee17ee3a5cd9cf79f8 |
26 |
|
27 |
diff --git a/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch b/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch |
28 |
deleted file mode 100644 |
29 |
index bfc8ac3fde7f..000000000000 |
30 |
--- a/dev-lang/zig/files/zig-0.10.0-avoid-cmake-bug.patch |
31 |
+++ /dev/null |
32 |
@@ -1,63 +0,0 @@ |
33 |
-https://github.com/ziglang/zig/commit/fe2bd9dda8467b775da4fe3bd535aece9e07ee1b |
34 |
-Bug https://bugs.gentoo.org/886569 |
35 |
- |
36 |
-From fe2bd9dda8467b775da4fe3bd535aece9e07ee1b Mon Sep 17 00:00:00 2001 |
37 |
-From: Eric Joldasov <bratishkaerik@××××××××××××.me> |
38 |
-Date: Wed, 4 Jan 2023 01:04:48 +0600 |
39 |
-Subject: [PATCH] cmake: move 'continue' statement to avoid cmake bug |
40 |
- |
41 |
---- |
42 |
- cmake/Findllvm.cmake | 32 +++++++++++--------------------- |
43 |
- 1 file changed, 11 insertions(+), 21 deletions(-) |
44 |
- |
45 |
-diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake |
46 |
-index 60a52056d8d..d8662034579 100644 |
47 |
---- a/cmake/Findllvm.cmake |
48 |
-+++ b/cmake/Findllvm.cmake |
49 |
-@@ -79,7 +79,11 @@ if(ZIG_USE_LLVM_CONFIG) |
50 |
- OUTPUT_VARIABLE LLVM_TARGETS_BUILT_SPACES |
51 |
- OUTPUT_STRIP_TRAILING_WHITESPACE) |
52 |
- string(REPLACE " " ";" LLVM_TARGETS_BUILT "${LLVM_TARGETS_BUILT_SPACES}") |
53 |
-- function(NEED_TARGET TARGET_NAME) |
54 |
-+ |
55 |
-+ set(ZIG_LLVM_REQUIRED_TARGETS "AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore") |
56 |
-+ |
57 |
-+ set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED TRUE) |
58 |
-+ foreach(TARGET_NAME IN LISTS ZIG_LLVM_REQUIRED_TARGETS) |
59 |
- list (FIND LLVM_TARGETS_BUILT "${TARGET_NAME}" _index) |
60 |
- if (${_index} EQUAL -1) |
61 |
- # Save the error message, in case this is the last llvm-config we find |
62 |
-@@ -87,27 +91,13 @@ if(ZIG_USE_LLVM_CONFIG) |
63 |
- |
64 |
- # Ignore this directory and try the search again |
65 |
- list(APPEND CMAKE_IGNORE_PATH "${LLVM_CONFIG_DIR}") |
66 |
-- continue() |
67 |
-+ set(ZIG_LLVM_REQUIRED_TARGETS_ENABLED FALSE) |
68 |
-+ break() |
69 |
- endif() |
70 |
-- endfunction(NEED_TARGET) |
71 |
-- NEED_TARGET("AArch64") |
72 |
-- NEED_TARGET("AMDGPU") |
73 |
-- NEED_TARGET("ARM") |
74 |
-- NEED_TARGET("AVR") |
75 |
-- NEED_TARGET("BPF") |
76 |
-- NEED_TARGET("Hexagon") |
77 |
-- NEED_TARGET("Lanai") |
78 |
-- NEED_TARGET("Mips") |
79 |
-- NEED_TARGET("MSP430") |
80 |
-- NEED_TARGET("NVPTX") |
81 |
-- NEED_TARGET("PowerPC") |
82 |
-- NEED_TARGET("RISCV") |
83 |
-- NEED_TARGET("Sparc") |
84 |
-- NEED_TARGET("SystemZ") |
85 |
-- NEED_TARGET("VE") |
86 |
-- NEED_TARGET("WebAssembly") |
87 |
-- NEED_TARGET("X86") |
88 |
-- NEED_TARGET("XCore") |
89 |
-+ endforeach() |
90 |
-+ if (NOT ZIG_LLVM_REQUIRED_TARGETS_ENABLED) |
91 |
-+ continue() |
92 |
-+ endif() |
93 |
- |
94 |
- # Got it! |
95 |
- break() |
96 |
|
97 |
diff --git a/dev-lang/zig/zig-0.10.0-r1.ebuild b/dev-lang/zig/zig-0.10.0-r1.ebuild |
98 |
deleted file mode 100644 |
99 |
index 4d9a45ee5fb0..000000000000 |
100 |
--- a/dev-lang/zig/zig-0.10.0-r1.ebuild |
101 |
+++ /dev/null |
102 |
@@ -1,101 +0,0 @@ |
103 |
-# Copyright 2019-2023 Gentoo Authors |
104 |
-# Distributed under the terms of the GNU General Public License v2 |
105 |
- |
106 |
-EAPI=8 |
107 |
- |
108 |
-LLVM_MAX_SLOT=15 |
109 |
-inherit edo cmake llvm check-reqs |
110 |
- |
111 |
-DESCRIPTION="A robust, optimal, and maintainable programming language" |
112 |
-HOMEPAGE="https://ziglang.org/" |
113 |
-if [[ ${PV} == 9999 ]]; then |
114 |
- EGIT_REPO_URI="https://github.com/ziglang/zig.git" |
115 |
- inherit git-r3 |
116 |
-else |
117 |
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz" |
118 |
- KEYWORDS="~amd64 ~arm ~arm64" |
119 |
-fi |
120 |
- |
121 |
-LICENSE="MIT" |
122 |
-SLOT="0" |
123 |
- |
124 |
-BUILD_DIR="${S}/build" |
125 |
- |
126 |
-# Zig requires zstd and zlib compression support in LLVM, if using LLVM backend. |
127 |
-# (non-LLVM backends don't require these) |
128 |
-# They are not required "on their own", so please don't add them here. |
129 |
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see |
130 |
-# options that are passed to LLVM CMake building (excluding "static" ofc). |
131 |
-DEPEND=" |
132 |
- sys-devel/clang:${LLVM_MAX_SLOT}= |
133 |
- sys-devel/lld:${LLVM_MAX_SLOT}= |
134 |
- sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd] |
135 |
-" |
136 |
- |
137 |
-RDEPEND=" |
138 |
- ${DEPEND} |
139 |
- !dev-lang/zig-bin |
140 |
-" |
141 |
- |
142 |
-# see https://github.com/ziglang/zig/issues/3382 |
143 |
-# For now, Zig doesn't support CFLAGS/LDFLAGS/etc. |
144 |
-QA_FLAGS_IGNORED="usr/bin/zig" |
145 |
- |
146 |
-# see https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler |
147 |
-# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for bootstrapping |
148 |
-# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use self-hosted compiler |
149 |
-# (transpiled to C via C backend) for bootstrapping |
150 |
-CHECKREQS_MEMORY="10G" |
151 |
- |
152 |
-PATCHES=( |
153 |
- "${FILESDIR}/${P}-avoid-cmake-bug.patch" |
154 |
- "${FILESDIR}/${P}-build-dir-install-stage3.patch" |
155 |
-) |
156 |
- |
157 |
-llvm_check_deps() { |
158 |
- has_version "sys-devel/clang:${LLVM_SLOT}" |
159 |
-} |
160 |
- |
161 |
-pkg_setup() { |
162 |
- llvm_pkg_setup |
163 |
- ewarn "This version requires 10G of memory for building compiler." |
164 |
- ewarn "If you don't have enough memory, you can wait until 0.11.0 release" |
165 |
- ewarn "or (if you are risky) use 9999 version (currently requires only 4GB)" |
166 |
- check-reqs_pkg_setup |
167 |
-} |
168 |
- |
169 |
-src_configure() { |
170 |
- local mycmakeargs=( |
171 |
- -DZIG_USE_CCACHE=OFF |
172 |
- -DZIG_SHARED_LLVM=ON |
173 |
- -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT}) |
174 |
- ) |
175 |
- |
176 |
- cmake_src_configure |
177 |
-} |
178 |
- |
179 |
-src_test() { |
180 |
- cd "${BUILD_DIR}" || die |
181 |
- local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm=true -Dskip-non-native=true -Drelease -Dtarget=native" |
182 |
- local ZIG_TEST_STEPS=( |
183 |
- test-cases test-fmt test-behavior test-compiler-rt test-universal-libc test-compare-output |
184 |
- test-standalone test-c-abi test-link test-stack-traces test-cli test-asm-link test-translate-c |
185 |
- test-run-translated-c test-std |
186 |
- ) |
187 |
- |
188 |
- local step |
189 |
- for step in "${ZIG_TEST_STEPS[@]}" ; do |
190 |
- edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS} |
191 |
- done |
192 |
-} |
193 |
- |
194 |
-pkg_postinst() { |
195 |
- elog "0.10.0 release introduces self-hosted compiler for general use by default" |
196 |
- elog "It means that your code can be un-compilable since this compiler has some new or removed features and new or fixed bugs" |
197 |
- elog "Upstream recommends:" |
198 |
- elog " * Using old compiler if experiencing such breakage (flag '-fstage1')" |
199 |
- elog " * Waiting for bugfix release 0.10.1" |
200 |
- elog " * Waiting for release 0.11.0 with old compiler removed (these changes are already merged in 9999)" |
201 |
- elog "Also see: https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler" |
202 |
- elog "and https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade" |
203 |
-} |
204 |
|
205 |
diff --git a/dev-lang/zig/zig-0.10.1.ebuild b/dev-lang/zig/zig-0.10.1.ebuild |
206 |
deleted file mode 100644 |
207 |
index b5ed03b123f1..000000000000 |
208 |
--- a/dev-lang/zig/zig-0.10.1.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,99 +0,0 @@ |
211 |
-# Copyright 2019-2023 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI=8 |
215 |
- |
216 |
-LLVM_MAX_SLOT=15 |
217 |
-inherit edo cmake llvm check-reqs |
218 |
- |
219 |
-DESCRIPTION="A robust, optimal, and maintainable programming language" |
220 |
-HOMEPAGE="https://ziglang.org/" |
221 |
-if [[ ${PV} == 9999 ]]; then |
222 |
- EGIT_REPO_URI="https://github.com/ziglang/zig.git" |
223 |
- inherit git-r3 |
224 |
-else |
225 |
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz" |
226 |
- KEYWORDS="~amd64 ~arm ~arm64" |
227 |
-fi |
228 |
- |
229 |
-LICENSE="MIT" |
230 |
-SLOT="0" |
231 |
- |
232 |
-BUILD_DIR="${S}/build" |
233 |
- |
234 |
-# Zig requires zstd and zlib compression support in LLVM, if using LLVM backend. |
235 |
-# (non-LLVM backends don't require these) |
236 |
-# They are not required "on their own", so please don't add them here. |
237 |
-# You can check https://github.com/ziglang/zig-bootstrap in future, to see |
238 |
-# options that are passed to LLVM CMake building (excluding "static" ofc). |
239 |
-DEPEND=" |
240 |
- sys-devel/clang:${LLVM_MAX_SLOT}= |
241 |
- sys-devel/lld:${LLVM_MAX_SLOT}= |
242 |
- sys-devel/llvm:${LLVM_MAX_SLOT}=[zstd] |
243 |
-" |
244 |
- |
245 |
-RDEPEND=" |
246 |
- ${DEPEND} |
247 |
- !dev-lang/zig-bin |
248 |
-" |
249 |
- |
250 |
-# see https://github.com/ziglang/zig/issues/3382 |
251 |
-# For now, Zig doesn't support CFLAGS/LDFLAGS/etc. |
252 |
-QA_FLAGS_IGNORED="usr/bin/zig" |
253 |
- |
254 |
-# see https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler |
255 |
-# 0.10.0 release - ~9.6 GiB, since we use compiler written in C++ for bootstrapping |
256 |
-# 0.11.0 release - ~2.8 GiB, since we will (at least according to roadmap) use self-hosted compiler |
257 |
-# (transpiled to C via C backend) for bootstrapping |
258 |
-CHECKREQS_MEMORY="10G" |
259 |
- |
260 |
-PATCHES=( |
261 |
- "${FILESDIR}/zig-0.10.0-build-dir-install-stage3.patch" |
262 |
-) |
263 |
- |
264 |
-llvm_check_deps() { |
265 |
- has_version "sys-devel/clang:${LLVM_SLOT}" |
266 |
-} |
267 |
- |
268 |
-pkg_setup() { |
269 |
- llvm_pkg_setup |
270 |
- ewarn "This version requires 10G of memory for building compiler." |
271 |
- ewarn "If you don't have enough memory, you can wait until 0.11.0 release" |
272 |
- ewarn "or (if you are risky) use 9999 version (currently requires only 4GB)" |
273 |
- check-reqs_pkg_setup |
274 |
-} |
275 |
- |
276 |
-src_configure() { |
277 |
- local mycmakeargs=( |
278 |
- -DZIG_USE_CCACHE=OFF |
279 |
- -DZIG_SHARED_LLVM=ON |
280 |
- -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT}) |
281 |
- ) |
282 |
- |
283 |
- cmake_src_configure |
284 |
-} |
285 |
- |
286 |
-src_test() { |
287 |
- cd "${BUILD_DIR}" || die |
288 |
- local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm=true -Dskip-non-native=true -Drelease -Dtarget=native" |
289 |
- local ZIG_TEST_STEPS=( |
290 |
- test-cases test-fmt test-behavior test-compiler-rt test-universal-libc test-compare-output |
291 |
- test-standalone test-c-abi test-link test-stack-traces test-cli test-asm-link test-translate-c |
292 |
- test-run-translated-c test-std |
293 |
- ) |
294 |
- |
295 |
- local step |
296 |
- for step in "${ZIG_TEST_STEPS[@]}" ; do |
297 |
- edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS} |
298 |
- done |
299 |
-} |
300 |
- |
301 |
-pkg_postinst() { |
302 |
- elog "0.10.1 release uses self-hosted compiler by default and fixes some bugs from 0.10.0" |
303 |
- elog "But your code still can be un-compilable since some features still not implemented or bugs not fixed" |
304 |
- elog "Upstream recommends:" |
305 |
- elog " * Using old compiler if experiencing such breakage (flag '-fstage1')" |
306 |
- elog " * Waiting for release 0.11.0 with old compiler removed (these changes are already merged in 9999)" |
307 |
- elog "Also see: https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler" |
308 |
- elog "and https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade" |
309 |
-} |