From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C51F7158096 for ; Sun, 11 Sep 2022 18:13:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0FAF4E0896; Sun, 11 Sep 2022 18:13:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE146E0895 for ; Sun, 11 Sep 2022 18:13:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 357A3340C98 for ; Sun, 11 Sep 2022 18:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A42A85D4 for ; Sun, 11 Sep 2022 18:13:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1662920002.4d2d75f3df3edee03055e7e3b50e30d1c0dd0984.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/, dev-lang/zig/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/zig/Manifest dev-lang/zig/files/zig-0.9.1-fix-bad-hostname-segfault.patch dev-lang/zig/zig-0.9.1-r1.ebuild dev-lang/zig/zig-0.9.1.ebuild X-VCS-Directories: dev-lang/zig/ dev-lang/zig/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4d2d75f3df3edee03055e7e3b50e30d1c0dd0984 X-VCS-Branch: master Date: Sun, 11 Sep 2022 18:13:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b8aea050-71c8-4670-bb29-916e1df1eaaf X-Archives-Hash: 5cb130547d06c338d3355334785f3bd4 commit: 4d2d75f3df3edee03055e7e3b50e30d1c0dd0984 Author: Eric Joldasov getgoogleoff me> AuthorDate: Wed Aug 24 10:08:10 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 11 18:13:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d2d75f3 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 getgoogleoff.me> Signed-off-by: Sam James gentoo.org> dev-lang/zig/Manifest | 1 + .../zig-0.9.1-fix-bad-hostname-segfault.patch | 26 ++++++++++++++++++++++ .../zig/{zig-0.9.1.ebuild => zig-0.9.1-r1.ebuild} | 3 +++ 3 files changed, 30 insertions(+) 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 +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 similarity index 86% rename from dev-lang/zig/zig-0.9.1.ebuild rename to 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"