Skip to content

Commit 11e2c71

Browse files
committed
podman: workaround for macOS 11 and below
See https://trac.macports.org/ticket/69683 See crc-org/vfkit#125
1 parent d59148d commit 11e2c71

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

sysutils/podman/Portfile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PortGroup golang 1.0
99
go.setup github.com/containers/podman 5.0.1 v
1010
github.tarball_from archive
1111
revision 0
12+
epoch 0
1213

1314
categories sysutils
1415
license Apache-2
@@ -47,6 +48,26 @@ build.args PYTHON=${prefix}/bin/python${py_ver} \
4748
PRE_COMMIT=${prefix}/bin/pre-commit
4849
build.target ${name}-remote ${name}-mac-helper docs
4950

51+
if {${os.platform} eq "darwin" && ${os.major} <= 20} {
52+
# See https://trac.macports.org/ticket/69578
53+
go.setup github.com/containers/podman 4.9.3 v
54+
epoch 1
55+
56+
checksums ${distname}${extract.suffix} \
57+
rmd160 dd87729822e5486c174815445e814546b3a7e98b \
58+
sha256 37afc5bba2738c68dc24400893b99226c658cc9a2b22309f4d7abe7225d8c437 \
59+
size 21727849
60+
61+
depends_run-delete port:vfkit
62+
63+
notes-append "
64+
WARN: Currently using podman 4.9.3 instead of 5.0.0+. See the reasons:
65+
https://trac.macports.org/ticket/69683
66+
67+
***
68+
"
69+
}
70+
5071
destroot {
5172
xinstall -m 0755 ${worksrcpath}/bin/darwin/${name} \
5273
${destroot}${prefix}/bin/
@@ -71,7 +92,7 @@ destroot {
7192
${destroot}${prefix}/share/fish/vendor_completions.d/
7293
}
7394

74-
notes "
95+
notes-append "
7596
If you have an issue where podman won't run on ARM then try the following:
7697
7798
https://trac.macports.org/ticket/67731#comment:14

0 commit comments

Comments
 (0)