1 |
commit: f49f0e28babffcf0878268d01324397309682fd6 |
2 |
Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> |
3 |
AuthorDate: Thu Dec 1 12:43:21 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 13:57:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f49f0e28 |
7 |
|
8 |
dev-lang/zig: drop 0.9.1-r3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/876181 |
11 |
Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/28492 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-lang/zig/Manifest | 2 - |
16 |
.../zig-0.9.1-fix-bad-hostname-segfault.patch | 26 -------- |
17 |
dev-lang/zig/files/zig-0.9.1-fix-clang16.patch | 23 ------- |
18 |
dev-lang/zig/files/zig-0.9.1-fix-riscv.patch | 47 -------------- |
19 |
.../zig/files/zig-0.9.1-fix-single-threaded.patch | 13 ---- |
20 |
dev-lang/zig/zig-0.9.1-r3.ebuild | 72 ---------------------- |
21 |
6 files changed, 183 deletions(-) |
22 |
|
23 |
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest |
24 |
index fd2ecb470579..297043a711ac 100644 |
25 |
--- a/dev-lang/zig/Manifest |
26 |
+++ b/dev-lang/zig/Manifest |
27 |
@@ -1,3 +1 @@ |
28 |
DIST zig-0.10.0.tar.xz 14530912 BLAKE2B 5949a44ee039b7d5a163344a0fc26af8dd9cf311ed25c7092a665bb59ec7dec8dc3cd39918d81ef02c707aa8989b038fb21dfba3927fd31153a1404739b4ea3c SHA512 9d83ce51cc0ce404c06da820179c1cc47aa50e573fb1c831a96baa12c6b5226abe85b384110f2ffc4cbdc5f24eaba1f14a4e3249ffeaa248c0d73ba29859e682 |
29 |
-DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93 SHA512 259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692 |
30 |
-DIST zig-0.9.1.tar.xz 13940828 BLAKE2B 996b0e945f61b01dddbb7c8674a9e2d2d01b93eb48fdfd2c986496330990ffa64cba15f8bd8518b90ef6f514759ba6cc3fd31d6044c5b11b92bf92e3f7f15303 SHA512 0b8a5f9b7e34e4252536f59bc91429f1e76b2bf8e01f024095919f6ecf34db56b5c86c554fbb94bdcb5255394c87f2c87519c8f34c631f53816927ec0882ae2d |
31 |
|
32 |
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch b/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch |
33 |
deleted file mode 100644 |
34 |
index 2e87ecc6d6ee..000000000000 |
35 |
--- a/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch |
36 |
+++ /dev/null |
37 |
@@ -1,26 +0,0 @@ |
38 |
-https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 |
39 |
-Bug https://bugs.gentoo.org/829959 |
40 |
- |
41 |
-From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001 |
42 |
-From: Veikka Touminen <git@××××.eu> |
43 |
-Date: Sun, 10 Jul 2022 04:27:23 -0600 |
44 |
-Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname |
45 |
- |
46 |
-Fixes #12065 |
47 |
---- |
48 |
- lib/std/net.zig | 2 +- |
49 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
50 |
- |
51 |
-diff --git a/lib/std/net.zig b/lib/std/net.zig |
52 |
-index 235ad8496a1..c381df9bce7 100644 |
53 |
---- a/lib/std/net.zig |
54 |
-+++ b/lib/std/net.zig |
55 |
-@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: mem.Allocator, name: []const u8, port: u16) !*A |
56 |
- break :blk result; |
57 |
- }; |
58 |
- const arena = result.arena.allocator(); |
59 |
-- errdefer result.arena.deinit(); |
60 |
-+ errdefer result.deinit(); |
61 |
- |
62 |
- if (builtin.target.os.tag == .windows or builtin.link_libc) { |
63 |
- const name_c = try std.cstr.addNullByte(allocator, name); |
64 |
|
65 |
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch b/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch |
66 |
deleted file mode 100644 |
67 |
index deb563378d76..000000000000 |
68 |
--- a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch |
69 |
+++ /dev/null |
70 |
@@ -1,23 +0,0 @@ |
71 |
-From: Eric Joldasov <bratishkaerik@××××××××××××.me> |
72 |
-Fix building with Clang 16 |
73 |
-Upstream PR https://github.com/ziglang/zig/pull/13121 |
74 |
- |
75 |
---- a/src/stage1/parse_f128.c |
76 |
-+++ b/src/stage1/parse_f128.c |
77 |
-@@ -983,14 +983,14 @@ static int isspace(int c) |
78 |
- return c == ' ' || (unsigned)c-'\t' < 5; |
79 |
- } |
80 |
- |
81 |
--static inline float128_t makeInf128() { |
82 |
-+static inline float128_t makeInf128(void) { |
83 |
- union ldshape ux; |
84 |
- ux.i2.hi = 0x7fff000000000000UL; |
85 |
- ux.i2.lo = 0x0UL; |
86 |
- return ux.f; |
87 |
- } |
88 |
- |
89 |
--static inline float128_t makeNaN128() { |
90 |
-+static inline float128_t makeNaN128(void) { |
91 |
- uint64_t rand = 0UL; |
92 |
- union ldshape ux; |
93 |
- ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL); |
94 |
|
95 |
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch b/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch |
96 |
deleted file mode 100644 |
97 |
index 372a68ea02ad..000000000000 |
98 |
--- a/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch |
99 |
+++ /dev/null |
100 |
@@ -1,47 +0,0 @@ |
101 |
-https://github.com/ziglang/zig/commit/ca3c4ff2d0afcdc8fe86e7e7b41a967c88779729 |
102 |
-From: Shupei Fan <dymarkfan@×××××××.com> |
103 |
-zig0: properly set llvm_cpu_names and llvm_cpu_features for riscv |
104 |
- |
105 |
-Bug: https://bugs.gentoo.org/851732 |
106 |
- |
107 |
---- a/src/stage1/zig0.cpp |
108 |
-+++ b/src/stage1/zig0.cpp |
109 |
-@@ -160,6 +160,17 @@ static void get_native_target(ZigTarget *target) { |
110 |
- } |
111 |
- } |
112 |
- |
113 |
-+static const char* get_baseline_llvm_cpu_name(ZigLLVM_ArchType arch) { |
114 |
-+ return ""; |
115 |
-+} |
116 |
-+ |
117 |
-+static const char* get_baseline_llvm_cpu_features(ZigLLVM_ArchType arch) { |
118 |
-+ switch (arch) { |
119 |
-+ case ZigLLVM_riscv64: return "+a,+c,+d,+m"; |
120 |
-+ default: return ""; |
121 |
-+ } |
122 |
-+} |
123 |
-+ |
124 |
- static Error target_parse_triple(struct ZigTarget *target, const char *zig_triple, const char *mcpu, |
125 |
- const char *dynamic_linker) |
126 |
- { |
127 |
-@@ -178,8 +189,8 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl |
128 |
- } else if (strcmp(mcpu, "baseline") == 0) { |
129 |
- target->is_native_os = false; |
130 |
- target->is_native_cpu = false; |
131 |
-- target->llvm_cpu_name = ""; |
132 |
-- target->llvm_cpu_features = ""; |
133 |
-+ target->llvm_cpu_name = get_baseline_llvm_cpu_name(target->arch); |
134 |
-+ target->llvm_cpu_features = get_baseline_llvm_cpu_features(target->arch); |
135 |
- } else { |
136 |
- const char *msg = "stage0 can't handle CPU/features in the target"; |
137 |
- stage2_panic(msg, strlen(msg)); |
138 |
-@@ -220,6 +231,9 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl |
139 |
- const char *msg = "stage0 can't handle CPU/features in the target"; |
140 |
- stage2_panic(msg, strlen(msg)); |
141 |
- } |
142 |
-+ |
143 |
-+ target->llvm_cpu_name = get_baseline_llvm_cpu_name(target->arch); |
144 |
-+ target->llvm_cpu_features = get_baseline_llvm_cpu_features(target->arch); |
145 |
- } |
146 |
- |
147 |
- return ErrorNone; |
148 |
|
149 |
diff --git a/dev-lang/zig/files/zig-0.9.1-fix-single-threaded.patch b/dev-lang/zig/files/zig-0.9.1-fix-single-threaded.patch |
150 |
deleted file mode 100644 |
151 |
index 70f807f2d550..000000000000 |
152 |
--- a/dev-lang/zig/files/zig-0.9.1-fix-single-threaded.patch |
153 |
+++ /dev/null |
154 |
@@ -1,13 +0,0 @@ |
155 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
156 |
-index 638f39f7e..791477c41 100644 |
157 |
---- a/CMakeLists.txt |
158 |
-+++ b/CMakeLists.txt |
159 |
-@@ -787,7 +787,7 @@ else() |
160 |
- set(ZIG1_RELEASE_ARG -OReleaseFast --strip) |
161 |
- endif() |
162 |
- if(ZIG_SINGLE_THREADED) |
163 |
-- set(ZIG1_SINGLE_THREADED_ARG "-fsingle-threaded") |
164 |
-+ set(ZIG1_SINGLE_THREADED_ARG "--single-threaded") |
165 |
- else() |
166 |
- set(ZIG1_SINGLE_THREADED_ARG "") |
167 |
- endif() |
168 |
|
169 |
diff --git a/dev-lang/zig/zig-0.9.1-r3.ebuild b/dev-lang/zig/zig-0.9.1-r3.ebuild |
170 |
deleted file mode 100644 |
171 |
index 463cead06e2d..000000000000 |
172 |
--- a/dev-lang/zig/zig-0.9.1-r3.ebuild |
173 |
+++ /dev/null |
174 |
@@ -1,72 +0,0 @@ |
175 |
-# Copyright 2019-2022 Gentoo Authors |
176 |
-# Distributed under the terms of the GNU General Public License v2 |
177 |
- |
178 |
-EAPI=8 |
179 |
- |
180 |
-LLVM_MAX_SLOT=13 |
181 |
-inherit cmake llvm check-reqs |
182 |
- |
183 |
-DESCRIPTION="A robust, optimal, and maintainable programming language" |
184 |
-HOMEPAGE="https://ziglang.org/" |
185 |
-if [[ ${PV} == 9999 ]]; then |
186 |
- EGIT_REPO_URI="https://github.com/ziglang/zig.git" |
187 |
- inherit git-r3 |
188 |
-else |
189 |
- SRC_URI="https://ziglang.org/download/${PV}/${P}.tar.xz" |
190 |
- KEYWORDS="~amd64 ~arm ~arm64" |
191 |
-fi |
192 |
- |
193 |
-SRC_URI+=" https://codeberg.org/BratishkaErik/distfiles/media/branch/master/zig-0.9.1-fix-detecting-abi.patch" |
194 |
-LICENSE="MIT" |
195 |
-SLOT="0" |
196 |
-IUSE="test +threads" |
197 |
-RESTRICT="!test? ( test )" |
198 |
- |
199 |
-PATCHES=( |
200 |
- "${FILESDIR}/${P}-fix-clang16.patch" |
201 |
- "${FILESDIR}/${P}-fix-single-threaded.patch" |
202 |
- "${FILESDIR}/${P}-fix-riscv.patch" |
203 |
- "${FILESDIR}/${P}-fix-bad-hostname-segfault.patch" |
204 |
- "${DISTDIR}/zig-0.9.1-fix-detecting-abi.patch" |
205 |
-) |
206 |
- |
207 |
-BUILD_DIR="${S}/build" |
208 |
- |
209 |
-DEPEND=" |
210 |
- sys-devel/clang:${LLVM_MAX_SLOT}= |
211 |
- sys-devel/lld:${LLVM_MAX_SLOT}= |
212 |
- sys-devel/llvm:${LLVM_MAX_SLOT}= |
213 |
- >=sys-libs/zlib-1.2.12 |
214 |
-" |
215 |
- |
216 |
-RDEPEND="${DEPEND} |
217 |
- !dev-lang/zig-bin |
218 |
-" |
219 |
- |
220 |
-llvm_check_deps() { |
221 |
- has_version "sys-devel/clang:${LLVM_SLOT}" |
222 |
-} |
223 |
- |
224 |
-# see https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#high-memory-requirements |
225 |
-CHECKREQS_MEMORY="10G" |
226 |
- |
227 |
-pkg_setup() { |
228 |
- llvm_pkg_setup |
229 |
- check-reqs_pkg_setup |
230 |
-} |
231 |
- |
232 |
-src_configure() { |
233 |
- local mycmakeargs=( |
234 |
- -DZIG_USE_CCACHE=OFF |
235 |
- -DZIG_PREFER_CLANG_CPP_DYLIB=ON |
236 |
- -DZIG_SINGLE_THREADED="$(usex !threads)" |
237 |
- -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT}) |
238 |
- ) |
239 |
- |
240 |
- cmake_src_configure |
241 |
-} |
242 |
- |
243 |
-src_test() { |
244 |
- cd "${BUILD_DIR}" || die |
245 |
- ./zig build test || die |
246 |
-} |