Date: Sunday, November 8, 2020 @ 13:34:46 Author: daurnimator Revision: 746562
upgpkg: zig 0.6.0+03ae77b8b-1 upgrade to snapshot of master for LLVM11 compat Added: zig/trunk/resolve_DNS.patch Modified: zig/trunk/PKGBUILD -------------------+ PKGBUILD | 16 ++++++++++++---- resolve_DNS.patch | 23 +++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-11-08 13:25:57 UTC (rev 746561) +++ PKGBUILD 2020-11-08 13:34:46 UTC (rev 746562) @@ -2,8 +2,8 @@ # Contributor: Marc Tiehuis <marctieh...@gmail.com> pkgname=zig -pkgver=0.6.0 -pkgrel=2 +pkgver=0.6.0+03ae77b8b +pkgrel=1 pkgdesc='a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software' arch=('x86_64') url='https://ziglang.org/' @@ -10,9 +10,17 @@ license=('MIT') depends=('clang' 'llvm-libs' 'lld') makedepends=('cmake' 'llvm') -source=("https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz") -sha256sums=('5d167dc19354282dd35dd17b38e99e1763713b9be8a4ba9e9e69284e059e7204') +source=("https://ziglang.org/builds/zig-$pkgver.tar.xz" + "resolve_DNS.patch") +sha256sums=('a97eead39292edac077dfe6643a8786f37820da95f597ec7804f3d34783a0d9a' + 'c2b7e709dcc229f0e58e2529db900bcfb9a1cfb73da765c5c76ab1e6d0a333cc') +prepare() { + cd "$pkgname-$pkgver" + # https://github.com/ziglang/zig/issues/6898 + patch -p1 < ../resolve_DNS.patch +} + build() { cd "$pkgname-$pkgver" Added: resolve_DNS.patch =================================================================== --- resolve_DNS.patch (rev 0) +++ resolve_DNS.patch 2020-11-08 13:34:46 UTC (rev 746562) @@ -0,0 +1,23 @@ +diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig +index 9f40bb5a3..15dd8c920 100644 +--- a/lib/std/net/test.zig ++++ b/lib/std/net/test.zig +@@ -106,18 +106,6 @@ test "resolve DNS" { + } + } + +- // Resolve localhost, this should not fail. +- { +- const localhost_v4 = try net.Address.parseIp("127.0.0.1", 80); +- const localhost_v6 = try net.Address.parseIp("::2", 80); +- +- const result = try net.getAddressList(testing.allocator, "localhost", 80); +- defer result.deinit(); +- for (result.addrs) |addr| { +- if (addr.eql(localhost_v4) or addr.eql(localhost_v6)) break; +- } else @panic("unexpected address for localhost"); +- } +- + { + // The tests are required to work even when there is no Internet connection, + // so some of these errors we must accept and skip the test.