Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman: workaround for macOS 11 and below #23463

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion sysutils/podman/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PortGroup golang 1.0
go.setup github.com/containers/podman 5.0.1 v
github.tarball_from archive
revision 0
epoch 0
judaew marked this conversation as resolved.
Show resolved Hide resolved

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

if {${os.platform} eq "darwin" && ${os.major} <= 20} {
# See https://trac.macports.org/ticket/69578
go.setup github.com/containers/podman 4.9.3 v
epoch 1

checksums ${distname}${extract.suffix} \
rmd160 dd87729822e5486c174815445e814546b3a7e98b \
sha256 37afc5bba2738c68dc24400893b99226c658cc9a2b22309f4d7abe7225d8c437 \
size 21727849

depends_run-delete port:vfkit

notes-append "
WARN: Currently using podman 4.9.3 instead of 5.0.0+. See the reasons:
https://trac.macports.org/ticket/69683

***
"
}

destroot {
xinstall -m 0755 ${worksrcpath}/bin/darwin/${name} \
${destroot}${prefix}/bin/
Expand All @@ -71,7 +92,7 @@ destroot {
${destroot}${prefix}/share/fish/vendor_completions.d/
}

notes "
notes-append "
If you have an issue where podman won't run on ARM then try the following:

https://trac.macports.org/ticket/67731#comment:14
Expand Down