Skip to content

new(socket_vmnet): github.com/lima-vm/socket_vmnet recipe (vmnet.framework bridge)#13043

Merged
jhheider merged 4 commits into
pkgxdev:mainfrom
tannevaled:new/socket-vmnet
May 29, 2026
Merged

new(socket_vmnet): github.com/lima-vm/socket_vmnet recipe (vmnet.framework bridge)#13043
jhheider merged 4 commits into
pkgxdev:mainfrom
tannevaled:new/socket-vmnet

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Closes a mainstream package coverage gap (see pkgxdev/pantry overall package coverage discussion). Draft until CI confirms green.

See commit message for design choices.

macOS-only network bridge used by Lima, Colima, and standalone QEMU
setups to give VMs a real bridged adapter without needing root on
the QEMU process.

Built from source via upstream's Makefile (the project is a small
C codebase that uses Apple's vmnet.framework). ARCH env var maps
pkgx convention (x86-64 / aarch64) to the Makefile's expected form
(x86_64 / arm64).

linux platforms are absent by design — uses Apple's vmnet.framework
which has no Linux equivalent.

Test: --help on both binaries (full functionality requires root +
vmnet.framework setup that CI can't exercise).
Upstream Makefile builds `socket_vmnet_client` directly at the source
root (cc -o socket_vmnet_client client/main.o), not under client/.
Install line had the wrong path → "cannot stat client/socket_vmnet_client".
@jhheider

Copy link
Copy Markdown
Contributor

since we have lima-vm.io, this should be lima-vm.io/socket_vmnet.

i'll got through these (slowly), but some notes:

platforms: [darwin/x86-64, darwin/aarch64]

# is the same as

platforms: [darwin]

if you're going to use list-scripts (and you should), it's rarely necessary, or good style, to just use a text script inside it:

- run: |
    cd foo
    ls bar
    make baz

# is better as

- run:
  - ls bar
  - make baz
  working-directory: foo

@jhheider jhheider marked this pull request as ready for review May 29, 2026 23:37
@jhheider jhheider enabled auto-merge (squash) May 29, 2026 23:37
@jhheider jhheider merged commit adbb98e into pkgxdev:main May 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants