diff --git a/sysutils/podman/Makefile b/sysutils/podman/Makefile index eb71bcf9defb..64f89bff40c0 100644 --- a/sysutils/podman/Makefile +++ b/sysutils/podman/Makefile @@ -1,36 +1,35 @@ PORTNAME= podman DISTVERSIONPREFIX= v -DISTVERSION= 5.7.0 -PORTREVISION= 1 +DISTVERSION= 5.7.1 CATEGORIES= sysutils MAINTAINER= dfr@FreeBSD.org COMMENT= Manage Pods, Containers and Container Images WWW= https://podman.io/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash \ ggrep:textproc/gnugrep \ go-md2man:textproc/go-md2man \ gsed:textproc/gsed LIB_DEPENDS= libgpgme.so:security/gpgme RUN_DEPENDS= conmon:sysutils/conmon \ containernetworking-plugins>=0:net/containernetworking-plugins \ containers-common>=0:sysutils/containers-common \ ocijail:sysutils/ocijail USES= gmake go:no_targets,1.24 pkgconfig python:build shebangfix USE_RC_SUBR= podman podman_service SHEBANG_FILES= ${WRKSRC}/hack/markdown-preprocess MAKE_ARGS= SHELL=${LOCALBASE}/bin/bash USE_GITHUB= yes GH_ACCOUNT= containers GH_PROJECT= podman INSTALL_TARGET= install install.completions .include diff --git a/sysutils/podman/distinfo b/sysutils/podman/distinfo index c01a0d7ff42e..6eafa607438a 100644 --- a/sysutils/podman/distinfo +++ b/sysutils/podman/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1763052179 -SHA256 (containers-podman-v5.7.0_GH0.tar.gz) = 86972a63aaa8a292fff7ee3f18b7445d2e937e83e0c3f3b3904d48065714f07f -SIZE (containers-podman-v5.7.0_GH0.tar.gz) = 21261077 +TIMESTAMP = 1765391575 +SHA256 (containers-podman-v5.7.1_GH0.tar.gz) = c04c12f90d1bf410ccc4d27a30cff188d6a9361bddb5fceb19659ae08257cc6f +SIZE (containers-podman-v5.7.1_GH0.tar.gz) = 21266433 diff --git a/sysutils/podman/files/patch-pkg_specgen_generate_oci__freebsd.go b/sysutils/podman/files/patch-pkg_specgen_generate_oci__freebsd.go deleted file mode 100644 index 5f3e7367e198..000000000000 --- a/sysutils/podman/files/patch-pkg_specgen_generate_oci__freebsd.go +++ /dev/null @@ -1,70 +0,0 @@ -pkg/specgen/generate: Fix adding host devices on FreeBSD - -This was not working when emulating Linux container images on FreeBSD. -The code to handle host devices on FreeBSD relies on the container -having a devfs mount. Unfortunately, the Linux emulation code which adds -this was happening after the host device handling. This changes the -logic so that host device management happens after Linux emulation. - -Signed-off-by: Doug Rabson - ---- pkg/specgen/generate/oci_freebsd.go.orig 2025-11-11 13:51:07 UTC -+++ pkg/specgen/generate/oci_freebsd.go -@@ -50,28 +50,6 @@ func SpecGenToOCI(ctx context.Context, s *specgen.Spec - g.AddAnnotation(key, val) - } - -- // Devices -- var userDevices []spec.LinuxDevice -- if !s.IsPrivileged() { -- // add default devices from containers.conf -- for _, device := range rtc.Containers.Devices.Get() { -- if err = DevicesFromPath(&g, device, rtc); err != nil { -- return nil, err -- } -- } -- if len(compatibleOptions.HostDeviceList) > 0 && len(s.Devices) == 0 { -- userDevices = compatibleOptions.HostDeviceList -- } else { -- userDevices = s.Devices -- } -- // add default devices specified by caller -- for _, device := range userDevices { -- if err = DevicesFromPath(&g, device.Path, rtc); err != nil { -- return nil, err -- } -- } -- } -- - g.ClearProcessEnv() - for name, val := range s.Env { - g.AddProcessEnv(name, val) -@@ -132,6 +110,28 @@ func SpecGenToOCI(ctx context.Context, s *specgen.Spec - }, - ) - configSpec.Mounts = mounts -+ } -+ -+ // Devices -+ var userDevices []spec.LinuxDevice -+ if !s.IsPrivileged() { -+ // add default devices from containers.conf -+ for _, device := range rtc.Containers.Devices.Get() { -+ if err = DevicesFromPath(&g, device, rtc); err != nil { -+ return nil, err -+ } -+ } -+ if len(compatibleOptions.HostDeviceList) > 0 && len(s.Devices) == 0 { -+ userDevices = compatibleOptions.HostDeviceList -+ } else { -+ userDevices = s.Devices -+ } -+ // add default devices specified by caller -+ for _, device := range userDevices { -+ if err = DevicesFromPath(&g, device.Path, rtc); err != nil { -+ return nil, err -+ } -+ } - } - - // BIND MOUNTS