pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/podman podman: fix machine startup on macOS/a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/af2cd2f56343
branches: trunk
changeset: 387755:af2cd2f56343
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun Nov 06 12:39:14 2022 +0000
description:
podman: fix machine startup on macOS/aarch64
diffstat:
sysutils/podman/Makefile | 15 ++++++----
sysutils/podman/distinfo | 4 ++-
sysutils/podman/patches/patch-pkg_machine_qemu_options__darwin__arm64.go | 14 +++++++++
sysutils/podman/patches/patch-vendor_github.com_containers_common_pkg_config_config__darwin.go | 15 ++++++++++
4 files changed, 41 insertions(+), 7 deletions(-)
diffs (91 lines):
diff -r b5646b6c72c2 -r af2cd2f56343 sysutils/podman/Makefile
--- a/sysutils/podman/Makefile Sun Nov 06 11:15:10 2022 +0000
+++ b/sysutils/podman/Makefile Sun Nov 06 12:39:14 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2022/01/09 02:58:52 tnn Exp $
+# $NetBSD: Makefile,v 1.5 2022/11/06 12:39:14 tnn Exp $
DISTNAME= podman-3.4.4
+PKGREVISION= 1
GITHUB_TAG= v${PKGVERSION_NOREV}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=containers/}
@@ -19,11 +20,13 @@
DEPENDS+= qemu-[0-9]*:../../emulators/qemu
DEPENDS+= gvproxy-[0-9]*:../../net/gvproxy
-SUBST_CLASSES+= gvproxy
-SUBST_FILES.gvproxy= vendor/github.com/containers/common/pkg/config/config_netbsd.go
-SUBST_STAGE.gvproxy= pre-configure
-SUBST_MESSAGE.gvproxy= fix PREFIX inside patch
-SUBST_VARS.gvproxy= PREFIX
+SUBST_CLASSES+= prefix
+SUBST_FILES.prefix+= pkg/machine/qemu/options_darwin_arm64.go
+SUBST_FILES.prefix+= vendor/github.com/containers/common/pkg/config/config_darwin.go
+SUBST_FILES.prefix+= vendor/github.com/containers/common/pkg/config/config_netbsd.go
+SUBST_STAGE.prefix= pre-configure
+SUBST_MESSAGE.prefix= fix PREFIX inside patch
+SUBST_VARS.prefix= PREFIX
CHECK_PORTABILITY_SKIP+= vendor/github.com/containers/buildah/release.sh
diff -r b5646b6c72c2 -r af2cd2f56343 sysutils/podman/distinfo
--- a/sysutils/podman/distinfo Sun Nov 06 11:15:10 2022 +0000
+++ b/sysutils/podman/distinfo Sun Nov 06 12:39:14 2022 +0000
@@ -1,16 +1,18 @@
-$NetBSD: distinfo,v 1.5 2021/12/18 18:11:48 leot Exp $
+$NetBSD: distinfo,v 1.6 2022/11/06 12:39:14 tnn Exp $
BLAKE2s (podman-3.4.4.tar.gz) = d9923d89d2c36269696e7e8a873cc789988b586121e53d9d8fcd32e156464501
SHA512 (podman-3.4.4.tar.gz) = cfd295bf50ce86ea70741c3e663b409ed47b1e560c962bc579f319151a0fe2b24cdd3045667660083cce89449a9c5de1508c94a9a02375165a72ce7c16166666
Size (podman-3.4.4.tar.gz) = 10945990 bytes
SHA1 (patch-Makefile) = 5671f5452430d4b94af924defbb473eb91732281
SHA1 (patch-cmd_podman_registry_config.go) = 6d32a7526cad5728a385de0029b2bbe5474e7f1b
+SHA1 (patch-pkg_machine_qemu_options__darwin__arm64.go) = fadd696fae75b58b45edd8bd02f42291675bd242
SHA1 (patch-pkg_machine_qemu_options__netbsd.go) = a256dcafceb70f29b4f7a1ed013b52b5d6b0f4ba
SHA1 (patch-pkg_machine_qemu_options__netbsd__amd64.go) = 7f5e4fe206e6e1d8f8e2cd33c8ac18b614c2dd61
SHA1 (patch-pkg_util_utils__netbsd.go) = 452c7ca070a945cbcc3e703105c1fe0a65eaedc7
SHA1 (patch-utils_utils__supported.go) = 37c999dbf55ff98017d1a4d017d20d576e28d42d
SHA1 (patch-vendor_github.com_containers_buildah_util_util__uint64.go) = 3e8b233c63224e5c2785760342bb42ec064a81a1
SHA1 (patch-vendor_github.com_containers_buildah_util_util__unix.go) = 2073a132dc3bf63436ff29bcd228d960ab3c90d0
+SHA1 (patch-vendor_github.com_containers_common_pkg_config_config__darwin.go) = 72e34c210344d52c08eabd0ce34dc2fd4d7f8bea
SHA1 (patch-vendor_github.com_containers_common_pkg_config_config__netbsd.go) = 0da82c8c514630fe6afed3041c51869915c3fda8
SHA1 (patch-vendor_github.com_containers_common_pkg_config_util__supported.go) = 3e02f5ee7d0855d46d8318792f620e18f722d259
SHA1 (patch-vendor_github.com_containers_storage_drivers_chroot__unix.go) = c2c625898c7651d24ba842a6654d57dd4a0e4428
diff -r b5646b6c72c2 -r af2cd2f56343 sysutils/podman/patches/patch-pkg_machine_qemu_options__darwin__arm64.go
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/podman/patches/patch-pkg_machine_qemu_options__darwin__arm64.go Sun Nov 06 12:39:14 2022 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-pkg_machine_qemu_options__darwin__arm64.go,v 1.1 2022/11/06 12:39:15 tnn Exp $
+
+Add pkgsrc path for firmware
+
+--- pkg/machine/qemu/options_darwin_arm64.go.orig 2021-12-08 18:41:11.000000000 +0000
++++ pkg/machine/qemu/options_darwin_arm64.go
+@@ -45,6 +45,7 @@ func getOvmfDir(imagePath, vmName string
+ */
+ func getEdk2CodeFd(name string) string {
+ dirs := []string{
++ "@PREFIX@/share/qemu",
+ "/usr/local/share/qemu",
+ "/opt/homebrew/share/qemu",
+ }
diff -r b5646b6c72c2 -r af2cd2f56343 sysutils/podman/patches/patch-vendor_github.com_containers_common_pkg_config_config__darwin.go
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/podman/patches/patch-vendor_github.com_containers_common_pkg_config_config__darwin.go Sun Nov 06 12:39:14 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-vendor_github.com_containers_common_pkg_config_config__darwin.go,v 1.1 2022/11/06 12:39:15 tnn Exp $
+
+Adjust paths. Needed to find gvproxy.
+
+--- vendor/github.com/containers/common/pkg/config/config_darwin.go.orig 2021-12-08 18:41:11
++++ vendor/github.com/containers/common/pkg/config/config_darwin.go
+@@ -17,6 +17,8 @@ var defaultHelperBinariesDir = []string{
+ }
+
+ var defaultHelperBinariesDir = []string{
++ // pkgsrc paths
++ "@PREFIX@/bin",
+ // Homebrew install paths
+ "/usr/local/opt/podman/libexec",
+ "/opt/homebrew/bin",
Home |
Main Index |
Thread Index |
Old Index