Skip to content

Commit

Permalink
podman: Update to 5.0.1
Browse files Browse the repository at this point in the history
This is not compatible with podman 4, so all machines
need to be reset:

With 4.9 (downgrade if needed):

podman machine stop
podman machine rm

With 5.0:

podman machine init
podman machine start

Also see https://blog.podman.io/2024/03/migration-of-podman-4-to-podman-5-machines/
  • Loading branch information
lazka committed Apr 16, 2024
1 parent 905c977 commit 450ef2c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
11 changes: 11 additions & 0 deletions mingw-w64-podman/0001-etc-prefix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- podman-5.0.1/Makefile.orig 2024-04-01 14:28:31.000000000 +0200
+++ podman-5.0.1/Makefile 2024-04-16 08:31:07.202655400 +0200
@@ -39,7 +39,7 @@
LIBEXECPODMAN ?= ${LIBEXECDIR}/podman
MANDIR ?= ${PREFIX}/share/man
SHAREDIR_CONTAINERS ?= ${PREFIX}/share/containers
-ETCDIR ?= /etc
+ETCDIR ?= ${PREFIX}/etc
LIBDIR ?= ${PREFIX}/lib
TMPFILESDIR ?= ${LIBDIR}/tmpfiles.d
USERTMPFILESDIR ?= ${PREFIX}/share/user-tmpfiles.d
15 changes: 11 additions & 4 deletions mingw-w64-podman/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=podman
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=4.9.3
pkgver=5.0.1
pkgrel=1
pkgdesc='Tool for running OCI-based containers in pods (mingw-w64)'
arch=('any')
Expand All @@ -22,15 +22,22 @@ makedepends=(
options=('!strip')
_GV_VERSION="0.7.3" # See GV_VERSION in Makefile
source=("https://github.com/containers/podman/archive/v$pkgver/${_realname}-${pkgver}.tar.gz"
"https://github.com/containers/gvisor-tap-vsock/archive/v${_GV_VERSION}/gvisor-tap-vsock-${_GV_VERSION}.tar.gz")
sha256sums=('37afc5bba2738c68dc24400893b99226c658cc9a2b22309f4d7abe7225d8c437'
'851ed29b92e15094d8eba91492b6d7bab74aff4538dae0c973eb7d8ff48afd8a')
"https://github.com/containers/gvisor-tap-vsock/archive/v${_GV_VERSION}/gvisor-tap-vsock-${_GV_VERSION}.tar.gz"
"0001-etc-prefix.patch")
sha256sums=('ee6253866e949431c3f2c0e87582c864b8dd1c96773fc93d6c73dfaff9630ee2'
'851ed29b92e15094d8eba91492b6d7bab74aff4538dae0c973eb7d8ff48afd8a'
'2a1a5c9d126634e871853cfa0e17af8f1597a6ed9c709f59c4a19e1bbb76c68d')
noextract=("${_realname}-${pkgver}.tar.gz")

prepare() {
echo "Extracting ${_realname}-${pkgver}.tar.gz ..."
tar -xzf ${_realname}-${pkgver}.tar.gz | true
rm -rf build-${MSYSTEM}

cd "${_realname}-${pkgver}"
patch -Np1 -i "${srcdir}/0001-etc-prefix.patch"
cd "${srcdir}"

cp -r ${_realname}-${pkgver} build-${MSYSTEM}

cp -r "gvisor-tap-vsock-${_GV_VERSION}" "build-proxy-${MSYSTEM}"
Expand Down

0 comments on commit 450ef2c

Please sign in to comment.