diff options
author | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2022-08-24 16:08:10 +0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-11 19:13:22 +0100 |
commit | 4d2d75f3df3edee03055e7e3b50e30d1c0dd0984 (patch) | |
tree | 4d7858df9de1d7b9ea5a9e47f4ce4844ffb79fef /dev-lang/zig | |
parent | sci-libs/symengine: drop 0.8.1-r2 (diff) | |
download | gentoo-4d2d75f3df3edee03055e7e3b50e30d1c0dd0984.tar.gz gentoo-4d2d75f3df3edee03055e7e3b50e30d1c0dd0984.tar.bz2 gentoo-4d2d75f3df3edee03055e7e3b50e30d1c0dd0984.zip |
dev-lang/zig: add patches for 0.9.1
Bug: https://bugs.gentoo.org/780612
Bug: https://bugs.gentoo.org/829959
Bug: https://bugs.gentoo.org/866374
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/zig')
-rw-r--r-- | dev-lang/zig/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch | 26 | ||||
-rw-r--r-- | dev-lang/zig/zig-0.9.1-r1.ebuild (renamed from dev-lang/zig/zig-0.9.1.ebuild) | 3 |
3 files changed, 30 insertions, 0 deletions
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest index daf4475076f0..f18eeb3ba012 100644 --- a/dev-lang/zig/Manifest +++ b/dev-lang/zig/Manifest @@ -1 +1,2 @@ +DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93 SHA512 259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692 DIST zig-0.9.1.tar.xz 13940828 BLAKE2B 996b0e945f61b01dddbb7c8674a9e2d2d01b93eb48fdfd2c986496330990ffa64cba15f8bd8518b90ef6f514759ba6cc3fd31d6044c5b11b92bf92e3f7f15303 SHA512 0b8a5f9b7e34e4252536f59bc91429f1e76b2bf8e01f024095919f6ecf34db56b5c86c554fbb94bdcb5255394c87f2c87519c8f34c631f53816927ec0882ae2d 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 new file mode 100644 index 000000000000..2e87ecc6d6ee --- /dev/null +++ b/dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch @@ -0,0 +1,26 @@ +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/zig-0.9.1.ebuild b/dev-lang/zig/zig-0.9.1-r1.ebuild index 0c78b3e76b08..10a957c326e9 100644 --- a/dev-lang/zig/zig-0.9.1.ebuild +++ b/dev-lang/zig/zig-0.9.1-r1.ebuild @@ -16,6 +16,7 @@ else KEYWORDS="~amd64 ~arm ~arm64" fi +SRC_URI+=" https://codeberg.org/BratishkaErik/distfiles/media/branch/master/zig-0.9.1-fix-detecting-abi.patch" LICENSE="MIT" SLOT="0" IUSE="test +threads" @@ -24,6 +25,8 @@ RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}/${P}-fix-single-threaded.patch" "${FILESDIR}/${P}-fix-riscv.patch" + "${FILESDIR}/${P}-fix-bad-hostname-segfault.patch" + "${DISTDIR}/zig-0.9.1-fix-detecting-abi.patch" ) BUILD_DIR="${S}/build" |