[arch-commits] Commit in podman/repos (4 files)

David Runge dvzrv at gemini.archlinux.org
Wed Aug 3 08:34:52 UTC 2022


    Date: Wednesday, August 3, 2022 @ 08:34:48
  Author: dvzrv
Revision: 1259972

archrelease: copy trunk to community-testing-x86_64

Added:
  podman/repos/community-testing-x86_64/
  podman/repos/community-testing-x86_64/PKGBUILD
    (from rev 1259971, podman/trunk/PKGBUILD)
  podman/repos/community-testing-x86_64/keys/
  podman/repos/community-testing-x86_64/podman-4.1.1-libexec.patch
    (from rev 1259971, podman/trunk/podman-4.1.1-libexec.patch)

----------------------------+
 PKGBUILD                   |   74 +++++++++++++++++++++++++++++++++++++++++++
 podman-4.1.1-libexec.patch |   13 +++++++
 2 files changed, 87 insertions(+)

Copied: podman/repos/community-testing-x86_64/PKGBUILD (from rev 1259971, podman/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-08-03 08:34:48 UTC (rev 1259972)
@@ -0,0 +1,74 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgbase=podman
+pkgname=(podman podman-docker)
+pkgver=4.1.1
+_commit=2ab593258b45c8071f8407ef2403227503fc4534  # refs/tags/v4.1.1
+pkgrel=3
+pkgdesc='Tool and library for running OCI-based containers in pods'
+arch=(x86_64)
+url='https://github.com/containers/podman'
+license=(Apache)
+makedepends=(apparmor btrfs-progs catatonit device-mapper go go-md2man git gpgme libseccomp systemd)
+# https://github.com/containers/podman/issues/13297
+options=(!lto)
+source=(
+  git+$url#tag=$_commit?signed
+  $pkgname-4.1.1-libexec.patch
+)
+validpgpkeys=(
+  'B7DBDCA456F7335E91F1C25CD3624C551D0515C4'  # Matthew Heon <mheon at redhat.com>
+)
+sha256sums=('SKIP'
+            '42a4475ffad503193d9dfc2637ecfa585b595f6a132c4b80932ae74d8c975596')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  # uncomment init_path in containers.conf as it defaults to using /usr/libexec/podman otherwise:
+  # https://bugs.archlinux.org/task/75493
+  patch -Np1 -d $pkgname -i ../$pkgname-4.1.1-libexec.patch
+}
+
+build() {
+  # NOTE: the BUILDTAGS may change over time
+  export BUILDTAGS='apparmor seccomp systemd'
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath"
+
+  make EXTRA_LDFLAGS='-s -w -linkmode=external' -C $pkgbase
+  make docker-docs -C $pkgbase
+}
+
+package_podman() {
+  depends=(catatonit conmon containers-common crun iptables libdevmapper.so
+  libgpgme.so libseccomp.so slirp4netns)
+  optdepends=(
+    'apparmor: for AppArmor support'
+    'btrfs-progs: support btrfs backend devices'
+    'netavark: for a new container-network-stack implementation'
+    'podman-compose: for docker-compose compatibility'
+    'podman-docker: for Docker-compatible CLI'
+  )
+
+  make install install.completions DESTDIR="$pkgdir" PREFIX=/usr LIBEXECDIR=/usr/lib -C $pkgbase
+  # remove man pages provided by containers-common
+  rm -rvf "$pkgdir/usr/share/man/man5"
+}
+
+package_podman-docker() {
+  pkgdesc='Emulate Docker CLI using podman'
+  depends=(podman)
+  conflicts=(docker)
+  provides=(docker)
+
+  make -j1 install.docker-full DESTDIR="$pkgdir" PREFIX=/usr -C $pkgbase
+}

Copied: podman/repos/community-testing-x86_64/podman-4.1.1-libexec.patch (from rev 1259971, podman/trunk/podman-4.1.1-libexec.patch)
===================================================================
--- community-testing-x86_64/podman-4.1.1-libexec.patch	                        (rev 0)
+++ community-testing-x86_64/podman-4.1.1-libexec.patch	2022-08-03 08:34:48 UTC (rev 1259972)
@@ -0,0 +1,13 @@
+diff --git i/vendor/github.com/containers/common/pkg/config/containers.conf w/vendor/github.com/containers/common/pkg/config/containers.conf
+index a4e755a66..27b625f82 100644
+--- i/vendor/github.com/containers/common/pkg/config/containers.conf
++++ w/vendor/github.com/containers/common/pkg/config/containers.conf
+@@ -146,7 +146,7 @@ default_sysctls = [
+ 
+ # Container init binary, if init=true, this is the init binary to be used for containers.
+ #
+-#init_path = "/usr/libexec/podman/catatonit"
++init_path = "/usr/lib/podman/catatonit"
+ 
+ # Default way to to create an IPC namespace (POSIX SysV IPC) for the container
+ # Options are:



More information about the arch-commits mailing list