# Vinix ports Each port contains a native vpac recipe and its local build inputs. The first port, `busybox/`, builds BusyBox 1.38.0 from upstream source for x86-64. Its static musl executable provides the shell, init, and basic commands in the bootstrap root. The package owns the applet symlinks. ## Build BusyBox Use an ordinary user on x86-64 Linux with vpac's native Vile builder. The tested vpac revision is `e7147c7fac0dc130fe03c7accf07c75a88188d3d`. The builder needs GNU Make, a host C compiler, musl-gcc with static libc, Linux userspace headers, binutils, coreutils, sed, curl and bsdtar with bzip2 and zstd support. BusyBox's upstream Makefiles also use the host shell. From the root of this checkout, build in a scratch directory: ```sh work=$(mktemp -d) cp -R busybox "$work/" MAKEFLAGS=-j1 vpac --native-build "$work/busybox/PKGBUILD.vile" "$work/archives.txt" cat "$work/archives.txt" ``` The manifest contains the path to the completed `.pkg.tar.zst` archive. The builder verifies both source checksums, executes the recipe, and packages the files as owned by root. The command leaves the host package database alone. To sign during the build, select the builder's signing keyring with `GNUPGHOME` and append `--sign`. ## Verify on Vinix Install the signed BusyBox package with vpac into a fresh test root. On an x86-64 Linux host with V, musl-gcc, bsdtar, GNU tar, xorriso and QEMU, use the installed root and an existing BIOS-capable amd64 Vinix ISO: ```sh v -o "$work/boot-test" tests/busybox/boot.v "$work/boot-test" "$installed_root" "$vinix_iso" "$work/guest" ``` The test takes the kernel and bootloader from the supplied ISO and assembles a new initramfs with the installed package and a test probe. It boots the package's `/sbin/init`, exercises `ash` and the applet symlinks, and compares the BusyBox executable's SHA-256 inside the guest to the installed copy. The serial transcript goes into `$work/guest/serial.log`. To try commands in the packaged shell, generate the interactive image and attach QEMU's serial port to your terminal: ```sh "$work/boot-test" "$installed_root" "$vinix_iso" "$work/shell" --shell qemu-system-x86_64 -machine q35 -cpu max -m 384 -smp 2 \ -cdrom "$work/shell/busybox-shell.iso" -nic none \ -display none -monitor none -serial stdio ``` The `vinix>` prompt accepts one line at a time through a small serial input helper. Try `uname -sm` or `busybox --list`. Use `poweroff -f` to exit. ### Bootstrap build of 2026-11-29 Port revision `2ce123aa4cd34b797bc850d8bd3381881abbe0f7` built on an x86-64 Ubuntu 24.04 builder, using musl 1.2.4 and one make job. The build cgroup peaked at 172,777,472 bytes with a 1 GiB hard limit and zero OOM events. The resulting 189,662-byte package has SHA-256 `4a4c0bf02c75d7724cb53c7b0d5402fd1565c40d344e710790eee20bc8d2f14c`. vpac installed the package by name from a test-signed file repository into a fresh root. The diskless Vinix guest booted its init and reported the same BusyBox SHA-256 as the host. The package, repository, transaction logs and guest transcripts are under `~/.local/state/vinix/ports/busybox-V5lqcr/` on the build operator's machine. The `repo/` directory includes the public test key. The release builder will need its own signing key. Current vpac archives include temporary build paths and file timestamps, so the digest identifies this particular build.