vinix-ports / README.md
152 lines · 126 sloc · 7.65 KB · 438c7d597c913cb188575e6b664d9eef53fad2c5
Raw

Vinix ports

Each port under ports/ contains a native vpac recipe and its local build inputs. The bootstrap packages build Vinix's patched musl and a static BusyBox. The busybox-bootstrap package supplies the initial shell, init and utilities. The release busybox package uses ssl-client for HTTPS. Bootstrap images using that release package install busybox-init to run it as PID 1. See the release profiles for each architecture. The bootstrap order lists the toolchain, networking and desktop prerequisites.

To reproduce the v3.21 input inventory for either release, compile the inventory tool against the same alpinecore module used by the image builder. Supply the unpacked main and community APKINDEX files for that architecture:

v -path "$vinix_checkout/build-support|@vlib|@vmodules" -o /tmp/release-closure tools/release-closure.v
/tmp/release-closure x86_64 profiles.tsv "$main_index" "$community_index" > "$state/release-closure.tsv"

The output identifies the source origin for each split binary package and the profiles that require it. The pinned older graphics stack is listed in PROFILES.md. The native recipes declare additional build-time dependencies.

Assemble the default release images

  1. Follow the bootstrap order and build the ports for each target. Compare the resulting archives with the source plan.
  2. Sign the selected archives and install two fresh clients per architecture. Install vinix-release-desktop in the first and both release metapackages in the second. Verify the complete installed version sets and the offline feed against the source plan. Feed and closure checks
  3. Use tools/release-inputs.py to prepare amd64/ and arm64/ for the same Vinix source commit and release tag. Each directory contains an initramfs, the X11 overlay, build information and checksums. Input preparation

Build and test both targets locally on the release worker. Set prepared to the directory containing the two prepared inputs.

"$vinix_checkout/scripts/deploy-iso.sh" --no-publish --arch=amd64,arm64 \
    --ref="$vinix_commit" --tag="$release_tag" --ports-inputs="$prepared"

Verify both output ISOs against their prepared initramfs files and run the guest X11 tests on the final archives. The prepared images embed the feed's public signing key. Build public release inputs with the release signer's key and verify its fingerprint independently.

The test-signed vinix-ports-candidate-20261201 passed the release audit on amd64 and arm64. Each target has 158 verified source outputs and 152 signed offline archives. The cold desktop installs contain 70 and 69 packages, respectively, and both desktop-plus-X11 roots contain 138. The audit verified the release assets, ten QEMU boot and install cases, signed local and HTTPS upgrades, and GCC, EGL and authenticated GLX in both target guests. The worker's foundation/release-mode-migration-final-audit-04 records the input receipts and asset hashes. Its receipts.sha256 has SHA-256 549b55c56e0d1b0c03bfbf26f435febe57156151df4e106cf9e5c05db64db275. Published file differences · Graphics fixture evidence

Bootstrap a build root

Use an ordinary user on x86-64 Linux with vpac's native Vile builder. The tested vpac revision is e7147c7fac0dc130fe03c7accf07c75a88188d3d. The first stages need GNU Make, GCC, binutils, patch, coreutils, sed, rsync, curl and bsdtar with bzip2 and zstd support. BusyBox's upstream Makefiles use the host shell and its bootstrap configuration uses Linux userspace headers. The test feed utility uses V, GnuPG, repo-add and unprivileged Linux user namespaces.

From the root of this checkout, build musl and the Linux UAPI headers, install both into an empty SDK through vpac and compile BusyBox against it.

work=$(mktemp -d)
cp -R ports/musl ports/linux-headers ports/busybox-bootstrap "$work/"
export MAKEFLAGS=-j2 CMAKE_BUILD_PARALLEL_LEVEL=2
v -o "$work/feed" tests/feed.v
v -o "$work/vinix-cc" tools/vinix-cc.v
ln -s vinix-cc "$work/vinix-c++"
export PATH="$work:$PATH"
vpac --native-build "$work/musl/PKGBUILD.vile" "$work/musl.txt"
vpac --native-build "$work/linux-headers/PKGBUILD.vile" "$work/headers.txt"
"$work/feed" keys "$work/test-keys"
"$work/feed" publish "$work/test-keys" "$work/first-repo" x86_64 "$(cat "$work/musl.txt")" "$(cat "$work/headers.txt")"
"$work/feed" install "$work/test-keys" "$work/first-repo" x86_64 "$work/sdk" musl linux-headers
export VPAC_MAKEPKG_ROOT="$work/sdk/root"
export VPAC_MAKEPKG_DB="$work/sdk/db"
export VINIX_SYSROOT="$VPAC_MAKEPKG_ROOT"
vpac --native-build "$work/busybox-bootstrap/PKGBUILD.vile" "$work/busybox.txt"

The manifests contain the paths to the completed archives. Musl includes its headers, startup objects, shared loader and static library. The BusyBox recipe checks the final linker map and header dependencies against the installed SDK. To install both packages by name into a new root, publish a new test feed:

"$work/feed" publish "$work/test-keys" "$work/repo" x86_64 "$(cat "$work/musl.txt")" "$(cat "$work/busybox.txt")"
"$work/feed" install "$work/test-keys" "$work/repo" x86_64 "$work/client" musl busybox-bootstrap
installed_root="$work/client/root"
v -o "$work/installed-root" tests/installed-root.v
"$work/installed-root" x86_64 "$work/client"

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:

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. The AArch64 boot instructions cover the packaged musl loader, UEFI firmware and full release applet checks.

To try commands in the packaged shell, generate the interactive image and attach QEMU's serial port to your terminal:

"$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.