Date: Sunday, June 19, 2022 @ 08:45:00 Author: grawlinson Revision: 1238603
archrelease: copy trunk to community-x86_64 Added: nerdctl/repos/community-x86_64/PKGBUILD (from rev 1238602, nerdctl/trunk/PKGBUILD) nerdctl/repos/community-x86_64/skip-failing-test.patch (from rev 1238602, nerdctl/trunk/skip-failing-test.patch) Deleted: nerdctl/repos/community-x86_64/PKGBUILD nerdctl/repos/community-x86_64/skip-failing-test.patch -------------------------+ PKGBUILD | 176 +++++++++++++++++++++++----------------------- skip-failing-test.patch | 60 +++++++-------- 2 files changed, 118 insertions(+), 118 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-06-19 08:43:15 UTC (rev 1238602) +++ PKGBUILD 2022-06-19 08:45:00 UTC (rev 1238603) @@ -1,88 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> - -pkgname=nerdctl -pkgver=0.20.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='e77e05b5fd252274e3727e0439e9a2d45622ccb9' -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/... - - # generate shell auto-completions - for completion in bash fish zsh; do - ./build/nerdctl completion "$completion" > "build/$completion-completions" - done -} - -check() { - cd "$pkgname" - - go test -v ./pkg/... -} - -package() { - cd "$pkgname" - - # binary & rootless scripts - install -vDm755 -t "$pkgdir/usr/bin" build/nerdctl extras/rootless/*.sh - - # shell completions - install -vDm644 build/bash-completions "$pkgdir/usr/share/bash-completion/completions/$pkgname" - install -vDm644 build/fish-completions "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish" - install -vDm644 build/zsh-completions "$pkgdir/usr/share/zsh/site-functions/_$pkgname" -} Copied: nerdctl/repos/community-x86_64/PKGBUILD (from rev 1238602, nerdctl/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-06-19 08:45:00 UTC (rev 1238603) @@ -0,0 +1,88 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> + +pkgname=nerdctl +pkgver=0.21.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='9ddf5226eabcbb7b4b43987f3b0f8d53d86d3bca' +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/... + + # generate shell auto-completions + for completion in bash fish zsh; do + ./build/nerdctl completion "$completion" > "build/$completion-completions" + done +} + +check() { + cd "$pkgname" + + go test -v ./pkg/... +} + +package() { + cd "$pkgname" + + # binary & rootless scripts + install -vDm755 -t "$pkgdir/usr/bin" build/nerdctl extras/rootless/*.sh + + # shell completions + install -vDm644 build/bash-completions "$pkgdir/usr/share/bash-completion/completions/$pkgname" + install -vDm644 build/fish-completions "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish" + install -vDm644 build/zsh-completions "$pkgdir/usr/share/zsh/site-functions/_$pkgname" +} Deleted: skip-failing-test.patch =================================================================== --- skip-failing-test.patch 2022-06-19 08:43:15 UTC (rev 1238602) +++ skip-failing-test.patch 2022-06-19 08:45:00 UTC (rev 1238603) @@ -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 1238602, nerdctl/trunk/skip-failing-test.patch) =================================================================== --- skip-failing-test.patch (rev 0) +++ skip-failing-test.patch 2022-06-19 08:45:00 UTC (rev 1238603) @@ -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