diff options
author | 2022-12-01 18:43:21 +0600 | |
---|---|---|
committer | 2022-12-01 14:57:06 +0100 | |
commit | f49f0e28babffcf0878268d01324397309682fd6 (patch) | |
tree | f8312da0bd9f21d1c49afae33e77f1838d3ede20 /dev-lang/zig/files | |
parent | dev-lang/zig-bin: drop 0.9.1-r1 (diff) | |
download | gentoo-f49f0e28babffcf0878268d01324397309682fd6.tar.gz gentoo-f49f0e28babffcf0878268d01324397309682fd6.tar.bz2 gentoo-f49f0e28babffcf0878268d01324397309682fd6.zip |
dev-lang/zig: drop 0.9.1-r3
Closes: https://bugs.gentoo.org/876181
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/28492
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/zig/files')
-rw-r--r-- | dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch | 26 | ||||
-rw-r--r-- | dev-lang/zig/files/zig-0.9.1-fix-clang16.patch | 23 | ||||
-rw-r--r-- | dev-lang/zig/files/zig-0.9.1-fix-riscv.patch | 47 | ||||
-rw-r--r-- | dev-lang/zig/files/zig-0.9.1-fix-single-threaded.patch | 13 |
4 files changed, 0 insertions, 109 deletions
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 deleted file mode 100644 index 2e87ecc6d6ee..000000000000 --- a/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch +++ /dev/null @@ -1,26 +0,0 @@ -https://github.com/ziglang/zig/commit/601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 -Bug https://bugs.gentoo.org/829959 - -From 601d8f721d6dc90ac390bf5ecc7d8bafdd6a30d8 Mon Sep 17 00:00:00 2001 -From: Veikka Touminen <git@vexu.eu> -Date: Sun, 10 Jul 2022 04:27:23 -0600 -Subject: [PATCH] std.net.getAddressList: fix segfault on bad hostname - -Fixes #12065 ---- - lib/std/net.zig | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/std/net.zig b/lib/std/net.zig -index 235ad8496a1..c381df9bce7 100644 ---- a/lib/std/net.zig -+++ b/lib/std/net.zig -@@ -731,7 +731,7 @@ pub fn getAddressList(allocator: mem.Allocator, name: []const u8, port: u16) !*A - break :blk result; - }; - const arena = result.arena.allocator(); -- errdefer result.arena.deinit(); -+ errdefer result.deinit(); - - if (builtin.target.os.tag == .windows or builtin.link_libc) { - const name_c = try std.cstr.addNullByte(allocator, name); 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 deleted file mode 100644 index deb563378d76..000000000000 --- a/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch +++ /dev/null @@ -1,23 +0,0 @@ -From: Eric Joldasov <bratishkaerik@getgoogleoff.me> -Fix building with Clang 16 -Upstream PR https://github.com/ziglang/zig/pull/13121 - ---- a/src/stage1/parse_f128.c -+++ b/src/stage1/parse_f128.c -@@ -983,14 +983,14 @@ static int isspace(int c) - return c == ' ' || (unsigned)c-'\t' < 5; - } - --static inline float128_t makeInf128() { -+static inline float128_t makeInf128(void) { - union ldshape ux; - ux.i2.hi = 0x7fff000000000000UL; - ux.i2.lo = 0x0UL; - return ux.f; - } - --static inline float128_t makeNaN128() { -+static inline float128_t makeNaN128(void) { - uint64_t rand = 0UL; - union ldshape ux; - ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL); 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 deleted file mode 100644 index 372a68ea02ad..000000000000 --- a/dev-lang/zig/files/zig-0.9.1-fix-riscv.patch +++ /dev/null @@ -1,47 +0,0 @@ -https://github.com/ziglang/zig/commit/ca3c4ff2d0afcdc8fe86e7e7b41a967c88779729 -From: Shupei Fan <dymarkfan@outlook.com> -zig0: properly set llvm_cpu_names and llvm_cpu_features for riscv - -Bug: https://bugs.gentoo.org/851732 - ---- a/src/stage1/zig0.cpp -+++ b/src/stage1/zig0.cpp -@@ -160,6 +160,17 @@ static void get_native_target(ZigTarget *target) { - } - } - -+static const char* get_baseline_llvm_cpu_name(ZigLLVM_ArchType arch) { -+ return ""; -+} -+ -+static const char* get_baseline_llvm_cpu_features(ZigLLVM_ArchType arch) { -+ switch (arch) { -+ case ZigLLVM_riscv64: return "+a,+c,+d,+m"; -+ default: return ""; -+ } -+} -+ - static Error target_parse_triple(struct ZigTarget *target, const char *zig_triple, const char *mcpu, - const char *dynamic_linker) - { -@@ -178,8 +189,8 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl - } else if (strcmp(mcpu, "baseline") == 0) { - target->is_native_os = false; - target->is_native_cpu = false; -- target->llvm_cpu_name = ""; -- target->llvm_cpu_features = ""; -+ target->llvm_cpu_name = get_baseline_llvm_cpu_name(target->arch); -+ target->llvm_cpu_features = get_baseline_llvm_cpu_features(target->arch); - } else { - const char *msg = "stage0 can't handle CPU/features in the target"; - stage2_panic(msg, strlen(msg)); -@@ -220,6 +231,9 @@ static Error target_parse_triple(struct ZigTarget *target, const char *zig_tripl - const char *msg = "stage0 can't handle CPU/features in the target"; - stage2_panic(msg, strlen(msg)); - } -+ -+ target->llvm_cpu_name = get_baseline_llvm_cpu_name(target->arch); -+ target->llvm_cpu_features = get_baseline_llvm_cpu_features(target->arch); - } - - return ErrorNone; 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 deleted file mode 100644 index 70f807f2d550..000000000000 --- a/dev-lang/zig/files/zig-0.9.1-fix-single-threaded.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 638f39f7e..791477c41 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -787,7 +787,7 @@ else() - set(ZIG1_RELEASE_ARG -OReleaseFast --strip) - endif() - if(ZIG_SINGLE_THREADED) -- set(ZIG1_SINGLE_THREADED_ARG "-fsingle-threaded") -+ set(ZIG1_SINGLE_THREADED_ARG "--single-threaded") - else() - set(ZIG1_SINGLE_THREADED_ARG "") - endif() |