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

lima: drop dependency on QEMU from macOS 14 onwards #27277

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
24 changes: 20 additions & 4 deletions sysutils/lima/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup golang 1.0
go.setup github.com/lima-vm/lima 1.0.3 v
go.offline_build no
github.tarball_from archive
revision 0
revision 1

homepage https://lima-vm.io

Expand All @@ -18,7 +18,8 @@ long_description {*}{
was to promote containerd including nerdctl (contaiNERD ctl) to
Mac users, but Lima can be used for non-container applications as
well. Lima also supports other container engines, such as Docker,
Podman, Kubernetes, etc.
Podman, Kubernetes, etc. Lima can also emulate other architectures
if QEMU is installed.
}

categories sysutils
Expand All @@ -28,8 +29,6 @@ maintainers {gmail.com:herby.gillot @herbygillot} \
{macports.halostatue.ca:austin @halostatue} \
openmaintainer

depends_run port:qemu

checksums rmd160 60a71868460fe544be7e44f0ec10bc3d66198a10 \
sha256 c36e803f4faf41607220df4c1d7a61977a7d492facf03e0b67f1f69390840a90 \
size 7381537
Expand All @@ -38,6 +37,23 @@ build.cmd make

patchfiles patch-Makefile.diff

platform darwin {
# Lima defaults to VZ with macOS 13.5 and later; drop dependency from 14 onwards
if {${os.major} < 23} {
depends_run-append port:qemu
} else {
# added January 2025
notes {
Please note that the Lima now defaults to native\
virtualization support and not QEMU. If you rely on it,\
such as for emulating other architectures, you can install\
it explicitly:

port install qemu
}
}
}

post-patch {
reinplace "s|@@VERSION@@|${version}|g" ${worksrcpath}/Makefile
}
Expand Down