[arch-commits] Commit in nerdctl/repos/community-x86_64 (4 files)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Apr 29 07:48:06 UTC 2022


    Date: Friday, April 29, 2022 @ 07:48:06
  Author: grawlinson
Revision: 1191775

archrelease: copy trunk to community-x86_64

Added:
  nerdctl/repos/community-x86_64/PKGBUILD
    (from rev 1191774, nerdctl/trunk/PKGBUILD)
  nerdctl/repos/community-x86_64/skip-failing-test.patch
    (from rev 1191774, nerdctl/trunk/skip-failing-test.patch)
Deleted:
  nerdctl/repos/community-x86_64/PKGBUILD
  nerdctl/repos/community-x86_64/skip-failing-test.patch

-------------------------+
 PKGBUILD                |  156 +++++++++++++++++++++++-----------------------
 skip-failing-test.patch |   60 ++++++++---------
 2 files changed, 108 insertions(+), 108 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-29 07:46:54 UTC (rev 1191774)
+++ PKGBUILD	2022-04-29 07:48:06 UTC (rev 1191775)
@@ -1,78 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgname=nerdctl
-pkgver=0.19.0
-pkgrel=1
-pkgdesc='Docker-compatible CLI for containerd'
-arch=('x86_64')
-url='https://github.com/containerd/nerdctl'
-license=('Apache')
-depends=('containerd')
-makedepends=('git' 'go')
-optdepends=(
-  'buildkit: to build OCI images'
-  'cni-plugins: to run OCI images'
-  'rootlesskit: for rootless mode'
-  'slirp4netns: for rootless mode'
-)
-options=('!lto')
-_commit='c94a967a2c481c24c1305d0a816d71fccbd97344'
-source=(
-  "$pkgname::git+$url.git#commit=$_commit"
-  'skip-failing-test.patch'
-)
-sha512sums=('SKIP'
-            'c168de6147edcebf31df4b2e22dc830cad62b81780d10105aada8e17347523747d413c4398bec3840f079a37177b6f9c3ca87c8f0119f4f651f7e4c6462eb8b3')
-b2sums=('SKIP'
-        'c4dd2803d0fb6ef0067ee2ec3fb34f606618e157264e03f9b607629900b11a774f484c8cb320054f90911400bb436ca65f024bf5d63f39766e5b7f19fd8814e5')
-
-pkgver() {
-  cd "$pkgname"
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd "$pkgname"
-
-  # create directory for build output
-  mkdir build
-
-  # download dependencies
-  go mod download
-
-  # skip failing unit test
-  patch -p1 -i ../skip-failing-test.patch
-}
-
-build() {
-  cd "$pkgname"
-
-  # set Go flags
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-
-  go build -v \
-    -trimpath \
-    -buildmode=pie \
-    -mod=readonly \
-    -modcacherw \
-    -ldflags "-linkmode external -extldflags ${LDFLAGS} \
-    -X github.com/containerd/nerdctl/pkg/version.Version=$pkgver \
-    -X github.com/containerd/nerdctl/pkg/version.Revision=$(git rev-parse HEAD)" \
-    -o build \
-    ./cmd/...
-}
-
-check() {
-  cd "$pkgname"
-
-  go test -v ./pkg/...
-}
-
-package() {
-  cd "$pkgname"
-
-  # binary
-  install -vDm755 -t "$pkgdir/usr/bin" build/nerdctl
-}

Copied: nerdctl/repos/community-x86_64/PKGBUILD (from rev 1191774, nerdctl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-29 07:48:06 UTC (rev 1191775)
@@ -0,0 +1,78 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=nerdctl
+pkgver=0.19.0
+pkgrel=2
+pkgdesc='Docker-compatible CLI for containerd'
+arch=('x86_64')
+url='https://github.com/containerd/nerdctl'
+license=('Apache')
+depends=('containerd')
+makedepends=('git' 'go')
+optdepends=(
+  'buildkit: to build OCI images'
+  'cni-plugins: to run OCI images'
+  'rootlesskit: for rootless mode'
+  'slirp4netns: for rootless mode'
+)
+options=('!lto')
+_commit='c94a967a2c481c24c1305d0a816d71fccbd97344'
+source=(
+  "$pkgname::git+$url.git#commit=$_commit"
+  'skip-failing-test.patch'
+)
+sha512sums=('SKIP'
+            'c168de6147edcebf31df4b2e22dc830cad62b81780d10105aada8e17347523747d413c4398bec3840f079a37177b6f9c3ca87c8f0119f4f651f7e4c6462eb8b3')
+b2sums=('SKIP'
+        'c4dd2803d0fb6ef0067ee2ec3fb34f606618e157264e03f9b607629900b11a774f484c8cb320054f90911400bb436ca65f024bf5d63f39766e5b7f19fd8814e5')
+
+pkgver() {
+  cd "$pkgname"
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # create directory for build output
+  mkdir build
+
+  # download dependencies
+  go mod download
+
+  # skip failing unit test
+  patch -p1 -i ../skip-failing-test.patch
+}
+
+build() {
+  cd "$pkgname"
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+    -X github.com/containerd/nerdctl/pkg/version.Version=$pkgver \
+    -X github.com/containerd/nerdctl/pkg/version.Revision=$(git rev-parse HEAD)" \
+    -o build \
+    ./cmd/...
+}
+
+check() {
+  cd "$pkgname"
+
+  go test -v ./pkg/...
+}
+
+package() {
+  cd "$pkgname"
+
+  # binary & rootless scripts
+  install -vDm755 -t "$pkgdir/usr/bin" build/nerdctl extras/rootless/*.sh
+}

Deleted: skip-failing-test.patch
===================================================================
--- skip-failing-test.patch	2022-04-29 07:46:54 UTC (rev 1191774)
+++ skip-failing-test.patch	2022-04-29 07:48:06 UTC (rev 1191775)
@@ -1,30 +0,0 @@
---- a/pkg/resolvconf/resolvconf_linux_test.go
-+++ b/pkg/resolvconf/resolvconf_linux_test.go
-@@ -23,27 +23,6 @@ import (
- 	"testing"
- )
- 
--func TestGet(t *testing.T) {
--	resolvConfUtils, err := Get()
--	if err != nil {
--		t.Fatal(err)
--	}
--	resolvConfSystem, err := os.ReadFile("/run/systemd/resolve/resolv.conf")
--	if err != nil {
--		t.Fatal(err)
--	}
--	if string(resolvConfUtils.Content) != string(resolvConfSystem) {
--		t.Fatalf("/etc/resolv.conf and GetResolvConf have different content.")
--	}
--	hashSystem, err := hashData(bytes.NewReader(resolvConfSystem))
--	if err != nil {
--		t.Fatal(err)
--	}
--	if resolvConfUtils.Hash != hashSystem {
--		t.Fatalf("/etc/resolv.conf and GetResolvConf have different hashes.")
--	}
--}
--
- func TestGetNameservers(t *testing.T) {
- 	for resolv, result := range map[string][]string{`
- nameserver 1.2.3.4

Copied: nerdctl/repos/community-x86_64/skip-failing-test.patch (from rev 1191774, nerdctl/trunk/skip-failing-test.patch)
===================================================================
--- skip-failing-test.patch	                        (rev 0)
+++ skip-failing-test.patch	2022-04-29 07:48:06 UTC (rev 1191775)
@@ -0,0 +1,30 @@
+--- a/pkg/resolvconf/resolvconf_linux_test.go
++++ b/pkg/resolvconf/resolvconf_linux_test.go
+@@ -23,27 +23,6 @@ import (
+ 	"testing"
+ )
+ 
+-func TestGet(t *testing.T) {
+-	resolvConfUtils, err := Get()
+-	if err != nil {
+-		t.Fatal(err)
+-	}
+-	resolvConfSystem, err := os.ReadFile("/run/systemd/resolve/resolv.conf")
+-	if err != nil {
+-		t.Fatal(err)
+-	}
+-	if string(resolvConfUtils.Content) != string(resolvConfSystem) {
+-		t.Fatalf("/etc/resolv.conf and GetResolvConf have different content.")
+-	}
+-	hashSystem, err := hashData(bytes.NewReader(resolvConfSystem))
+-	if err != nil {
+-		t.Fatal(err)
+-	}
+-	if resolvConfUtils.Hash != hashSystem {
+-		t.Fatalf("/etc/resolv.conf and GetResolvConf have different hashes.")
+-	}
+-}
+-
+ func TestGetNameservers(t *testing.T) {
+ 	for resolv, result := range map[string][]string{`
+ nameserver 1.2.3.4



More information about the arch-commits mailing list