git: 859efd10b6a2 - main - sysutils/podman: fix a confusing error message from 'podman system reset'

From: Doug Rabson <dfr_at_FreeBSD.org>
Date: Thu, 03 Oct 2024 15:29:27 UTC
The branch main has been updated by dfr:

URL: https://cgit.FreeBSD.org/ports/commit/?id=859efd10b6a2f330e57a65153e99583a5e11efa2

commit 859efd10b6a2f330e57a65153e99583a5e11efa2
Author:     Doug Rabson <dfr@FreeBSD.org>
AuthorDate: 2024-10-03 15:29:04 +0000
Commit:     Doug Rabson <dfr@FreeBSD.org>
CommitDate: 2024-10-03 15:29:04 +0000

    sysutils/podman: fix a confusing error message from 'podman system reset'
---
 sysutils/podman/Makefile                               |  2 +-
 .../files/patch-libpod_runtime__migrate__freebsd.go    | 18 ++++++++++++++++++
 .../patch-libpod_runtime__migrate__unsupported.go      |  8 ++++++++
 3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/sysutils/podman/Makefile b/sysutils/podman/Makefile
index 1f04f72cda93..b6e1e314eed6 100644
--- a/sysutils/podman/Makefile
+++ b/sysutils/podman/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	podman
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.1.1
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	sysutils
 
 MAINTAINER=	dfr@FreeBSD.org
diff --git a/sysutils/podman/files/patch-libpod_runtime__migrate__freebsd.go b/sysutils/podman/files/patch-libpod_runtime__migrate__freebsd.go
new file mode 100644
index 000000000000..5908c595098c
--- /dev/null
+++ b/sysutils/podman/files/patch-libpod_runtime__migrate__freebsd.go
@@ -0,0 +1,18 @@
+--- libpod/runtime_migrate_freebsd.go.orig	2024-10-03 14:39:32 UTC
++++ libpod/runtime_migrate_freebsd.go
+@@ -0,0 +1,15 @@
++//go:build !remote
++
++package libpod
++
++import (
++	"errors"
++)
++
++func (r *Runtime) stopPauseProcess() error {
++	return nil
++}
++
++func (r *Runtime) Migrate(newRuntime string) error {
++	return errors.New("not implemented (*Runtime) migrate")
++}
diff --git a/sysutils/podman/files/patch-libpod_runtime__migrate__unsupported.go b/sysutils/podman/files/patch-libpod_runtime__migrate__unsupported.go
new file mode 100644
index 000000000000..0c38a6d35a56
--- /dev/null
+++ b/sysutils/podman/files/patch-libpod_runtime__migrate__unsupported.go
@@ -0,0 +1,8 @@
+--- libpod/runtime_migrate_unsupported.go.orig	2024-10-03 14:38:54 UTC
++++ libpod/runtime_migrate_unsupported.go
+@@ -1,4 +1,4 @@
+-//go:build !remote && !linux
++//go:build !remote && !linux && !freebsd
+ 
+ package libpod
+