[arch-commits] Commit in zig/repos/community-testing-x86_64 (4 files)
Daurnimator
daurnimator at archlinux.org
Mon Nov 9 12:35:23 UTC 2020
Date: Monday, November 9, 2020 @ 12:35:23
Author: daurnimator
Revision: 746877
archrelease: copy trunk to community-testing-x86_64
Added:
zig/repos/community-testing-x86_64/PKGBUILD
(from rev 746876, zig/trunk/PKGBUILD)
zig/repos/community-testing-x86_64/resolve_DNS.patch
(from rev 746876, zig/trunk/resolve_DNS.patch)
Deleted:
zig/repos/community-testing-x86_64/PKGBUILD
zig/repos/community-testing-x86_64/resolve_DNS.patch
-------------------+
PKGBUILD | 102 ++++++++++++++++++++++++++--------------------------
resolve_DNS.patch | 46 +++++++++++------------
2 files changed, 74 insertions(+), 74 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-09 12:31:27 UTC (rev 746876)
+++ PKGBUILD 2020-11-09 12:35:23 UTC (rev 746877)
@@ -1,51 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-# Contributor: Marc Tiehuis <marctiehuis at gmail.com>
-
-pkgname=zig
-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/'
-license=('MIT')
-depends=('clang' 'llvm-libs' 'lld')
-makedepends=('cmake' 'llvm')
-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"
-
- mkdir -p build
- cd build
- # The zig CMakeLists uses build type Debug if not set
- # override it back to None so makepkg env vars are respected
- cmake \
- -DCMAKE_BUILD_TYPE=None \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DZIG_PREFER_CLANG_CPP_DYLIB=ON \
- ..
- make
-}
-
-check() {
- cd "$pkgname-$pkgver/build"
-
- ./zig build test
-}
-
-package() {
- cd "$pkgname-$pkgver"
-
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- make -C build DESTDIR="$pkgdir" install
-}
Copied: zig/repos/community-testing-x86_64/PKGBUILD (from rev 746876, zig/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-09 12:35:23 UTC (rev 746877)
@@ -0,0 +1,51 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Marc Tiehuis <marctiehuis at gmail.com>
+
+pkgname=zig
+pkgver=0.7.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')
+depends=('clang' 'llvm-libs' 'lld')
+makedepends=('cmake' 'llvm')
+source=("https://ziglang.org/download/$pkgver/zig-$pkgver.tar.xz"
+ "resolve_DNS.patch")
+sha256sums=('0efd2cf6c3b05723db80e9cf193bc55150bba84ca41f855a90f53fc756445f83'
+ 'c2b7e709dcc229f0e58e2529db900bcfb9a1cfb73da765c5c76ab1e6d0a333cc')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ # https://github.com/ziglang/zig/issues/6898
+ patch -p1 < ../resolve_DNS.patch
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ mkdir -p build
+ cd build
+ # The zig CMakeLists uses build type Debug if not set
+ # override it back to None so makepkg env vars are respected
+ cmake \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DZIG_PREFER_CLANG_CPP_DYLIB=ON \
+ ..
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver/build"
+
+ ./zig build test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ make -C build DESTDIR="$pkgdir" install
+}
Deleted: resolve_DNS.patch
===================================================================
--- resolve_DNS.patch 2020-11-09 12:31:27 UTC (rev 746876)
+++ resolve_DNS.patch 2020-11-09 12:35:23 UTC (rev 746877)
@@ -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.
Copied: zig/repos/community-testing-x86_64/resolve_DNS.patch (from rev 746876, zig/trunk/resolve_DNS.patch)
===================================================================
--- resolve_DNS.patch (rev 0)
+++ resolve_DNS.patch 2020-11-09 12:35:23 UTC (rev 746877)
@@ -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.
More information about the arch-commits
mailing list