Date: Saturday, January 21, 2023 @ 01:33:54
  Author: daurnimator
Revision: 1387204

archrelease: copy trunk to community-x86_64

Added:
  zig/repos/community-x86_64/PKGBUILD
    (from rev 1387203, zig/trunk/PKGBUILD)
Deleted:
  zig/repos/community-x86_64/PKGBUILD
  zig/repos/community-x86_64/resolve_DNS.patch

-------------------+
 PKGBUILD          |  108 ++++++++++++++++++++++++----------------------------
 resolve_DNS.patch |   23 -----------
 2 files changed, 51 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-21 01:33:31 UTC (rev 1387203)
+++ PKGBUILD    2023-01-21 01:33:54 UTC (rev 1387204)
@@ -1,57 +0,0 @@
-# Maintainer: Daurnimator <[email protected]>
-# Contributor: Marc Tiehuis <[email protected]>
-
-pkgname=zig
-pkgver=0.10.0
-pkgrel=1
-pkgdesc='a general-purpose programming language and toolchain for maintaining 
robust, optimal, and reusable software'
-arch=('x86_64')
-url='https://ziglang.org/'
-license=('MIT')
-options=('debug' '!lto')
-depends=('clang' 'llvm-libs')
-makedepends=('cmake' 'llvm' 'lld')
-checkdepends=('lib32-glibc')
-source=("https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz";
-        resolve_DNS.patch)
-sha256sums=('d8409f7aafc624770dcd050c8fa7e62578be8e6a10956bca3c86e8531c64c136'
-            'c2b7e709dcc229f0e58e2529db900bcfb9a1cfb73da765c5c76ab1e6d0a333cc')
-
-prepare() {
-    cd "$pkgname-$pkgver"
-    # https://github.com/ziglang/zig/issues/6898
-    # https://github.com/ziglang/zig/issues/14244
-    patch -p1 < ../resolve_DNS.patch
-}
-
-build() {
-    cd "$pkgname-$pkgver"
-
-    # The zig CMakeLists uses build type Debug if not set
-    # override it back to None so makepkg env vars are respected
-    cmake -B build \
-        -DCMAKE_BUILD_TYPE=None \
-        -DZIG_SHARED_LLVM=ON \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        .
-    cmake --build build
-}
-
-check() {
-    cd "$pkgname-$pkgver"
-    # ugly workaround until test target is provided
-    # https://github.com/ziglang/zig/issues/14240
-    DESTDIR="./testinstall" cmake --install build
-    ./testinstall/usr/bin/zig build test -Dconfig_h=build/config.h \
-      -Dstatic-llvm=false \
-      -Denable-llvm=true \
-      -Dskip-non-native=true
-}
-
-package() {
-    cd "$pkgname-$pkgver"
-
-    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-    DESTDIR="$pkgdir" cmake --install build
-}

Copied: zig/repos/community-x86_64/PKGBUILD (from rev 1387203, 
zig/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-21 01:33:54 UTC (rev 1387204)
@@ -0,0 +1,51 @@
+# Maintainer: Daurnimator <[email protected]>
+# Contributor: Marc Tiehuis <[email protected]>
+
+pkgname=zig
+pkgver=0.10.1
+pkgrel=1
+pkgdesc='a general-purpose programming language and toolchain for maintaining 
robust, optimal, and reusable software'
+arch=('x86_64')
+url='https://ziglang.org/'
+license=('MIT')
+options=('!lto')
+depends=('clang' 'llvm-libs')
+makedepends=('cmake' 'llvm' 'lld')
+checkdepends=('lib32-glibc')
+source=("https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz";)
+sha256sums=('69459bc804333df077d441ef052ffa143d53012b655a51f04cfef1414c04168c')
+
+build() {
+    cd "$pkgname-$pkgver"
+
+    local cmake_vars=(
+        CMAKE_INSTALL_PREFIX=/usr
+
+        # The zig CMakeLists uses build type Debug if not set
+        # override it back to None so makepkg env vars are respected
+        CMAKE_BUILD_TYPE=None
+
+        ZIG_SHARED_LLVM=ON
+    )
+    cmake -B build "${cmake_vars[@]/#/-D}" .
+    cmake --build build
+}
+
+check() {
+    cd "$pkgname-$pkgver"
+    # ugly workaround until test target is provided
+    # https://github.com/ziglang/zig/issues/14240
+    DESTDIR="./testinstall" cmake --install build
+    ./testinstall/usr/bin/zig build test -Dconfig_h=build/config.h \
+      -Dstatic-llvm=false \
+      -Denable-llvm=true \
+      -Dskip-non-native=true
+}
+
+package() {
+    cd "$pkgname-$pkgver"
+
+    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+    DESTDIR="$pkgdir" cmake --install build
+}

Deleted: resolve_DNS.patch
===================================================================
--- resolve_DNS.patch   2023-01-21 01:33:31 UTC (rev 1387203)
+++ resolve_DNS.patch   2023-01-21 01:33:54 UTC (rev 1387204)
@@ -1,23 +0,0 @@
-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.

Reply via email to