Skip to content

Commit

Permalink
podman: podman-machine must have support for M1
Browse files Browse the repository at this point in the history
  • Loading branch information
judaew committed Dec 4, 2021
1 parent 21f101e commit 2a1e0b3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sysutils/podman/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ go.setup github.com/containers/podman 3.4.2 v
github.tarball_from archive
revision 0

if {${configure.build_arch} eq "arm64"} {

This comment has been minimized.

Copy link
@ryandesign

ryandesign Dec 5, 2021

Contributor

You cannot vary revision (or other things that go into PortIndex, which includes dependencies) on the basis of configure.build_arch. The only conditionals you may use are based on os.platform, os.arch, or os.major. Fixed in dacedf0.

This comment has been minimized.

Copy link
@judaew

judaew Dec 5, 2021

Author Member

Thanks for the fix, I didn't know this point.

if {${version} eq "3.4.2" {
incr revision
}
}

categories sysutils
license Apache-2
platforms darwin
Expand All @@ -25,17 +31,12 @@ checksums ${distname}${extract.suffix} \
sha256 b0c4f9a11eb500b1d440d5e51a6c0c632aa4ac458e2dc0362f50f999eb7fbf31 \
size 10959727

depends_run port:gvisor-tap-vsock port:qemu

post-extract {
reinplace "s|-mod=vendor||g" ${worksrcpath}/Makefile
}

# Podman machine is currently only supported on Linux and Intel Macs, see:
# * https://podman.io/blogs/2021/09/06/podman-on-macs.html
# * https://github.com/containers/podman/issues/10577
if {${configure.build_arch} ne "arm64"} {
depends_run port:gvisor-tap-vsock port:qemu
}

patchfiles patch-defaultHelperBinariesDir-for-MacPorts.diff

post-patch {
Expand Down

0 comments on commit 2a1e0b3

Please sign in to comment.