podman: fix machine startup on macOS/aarch64

This commit is contained in:
tnn 2022-11-06 12:39:14 +00:00
parent 42325cda89
commit ab2e6cbe54
4 changed files with 41 additions and 7 deletions

View file

@ -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 @@ BUILD_DEPENDS+= ${GO_PACKAGE_DEP}
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

View file

@ -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

View file

@ -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",
}

View file

@ -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",