vinix-ports / PROFILES.md
77 lines · 57 sloc · 10.85 KB · 4db15b69b9c17b1595836f6164b7bb97a0b6d0fe
Raw

Default Vinix release inputs

profiles.tsv lists direct Alpine v3.21 package roots for the amd64 and arm64 desktop release builds at Vinix revision a58255423edea821aef9b2a0d10cb4091d59355a. Each profile is additive. Resolve the rows marked both together with the rows for the target architecture. The runtime dependencies selected by APK are a separate calculation.

Profile How the release consumes it
minirootfs Both Alpine 3.21.7 minirootfs archives have the same six names in etc/apk/world. The v3.21 indexes provide the virtual name libc-utils through musl-utils.
userland Both builders stage Zsh and Vim. The amd64 builder also explicitly stages libuuid. The compact desktop builders remove Vim before distribution.
desktop-toolchain Both release builds consume the Alpine build-base toolchain. The standalone amd64 userland defaults to development tools off, and the amd64 desktop explicitly enables them. The arm64 compact desktop requires the development archive, takes BusyBox from its base initramfs, and takes Zsh, libcap and ldd from its sysroot. The images retain GCC and prune C++ and LTO components.
network The shared network builder resolves these roots on each architecture, records them in /etc/vinix-pkg/base-world, and stages the Vinix pkg frontend.
x11-sidecar The release job requires the X11 staging trees and emits separate X11 archives. The rows reproduce the requested Alpine main and community inputs to those trees, including development headers and the three appended libraries. The X11 builder tolerates individual unsuccessful APK fetches and selects files from its sysroot when assembling the bundle. Root membership therefore describes a build input, without asserting that every file is shipped.

The launchers and policy files for optional desktop apps come from Vinix sources. Application packages fetched after installation fall outside the default-image roots. The native desktop, account and software services, installer and kernel also use Vinix sources. The arm64 release emits an iOS runner sidecar compiled against the guest sysroot or supplied as an explicitly verified static release input. Release assembly · amd64 desktop · arm64 desktop

The X11 development sysroot feeds source builds of Xorg/Xvfb 21.1.16 and xf86-video-fbdev 0.5.1. The server's legacy GLX stack additionally consumes four pinned Alpine v3.20 packages on each architecture. These inputs need their exact versions even when the v3.21 scope graph already contains a newer package of the same name. X11 builder and version pins

v3.20 legacy package Version
mesa-dri-gallium 24.0.9-r1
mesa-gl 24.0.9-r1
mesa-glapi 24.0.9-r1
llvm17-libs 17.0.6-r2

For an inventory of the actual base archive and the index-resolved candidates, pass the archive's lib/apk/db/installed as the fifth argument to release-closure. Keep rows for different versions of the same name. The base archive supplies busybox-binsh and ssl_client, and the later network layer can refresh libraries already present. Both 3.21.7 archives contain 15 installed package records.

tar -xOf "$minirootfs" ./lib/apk/db/installed > "$state/installed"
"$state/release-closure" "$arch" profiles.tsv "$main_index" "$community_index" \
    "$state/installed" > "$state/release-inputs.tsv"

In this mode, x11-sidecar means that the release script requests the package by name. x11-index-dependency means the APK metadata pulls it into the dependency calculation. Verify those candidates against the source build or a file used by the image. The final staging commands remove the current Gallium and LLVM 19 libraries and copy the legacy DRI directory, libGL.so*, libglapi.so* and libLLVM-17*.so from the older stack. A packaged sidecar must give each installed path a single owner. X11 file selection

Both desktop builders then remove libOSMesa.so*, libGLU.so* and libxatracker.so* from the sidecar and omit files already present in the finished image. The arm64 software configuration also installs regular copies of the legacy GL and glapi libraries under /usr/lib/vinix-x11-software, with the current EGL and GBM libraries under its egl/ subdirectory. It places the software DRI drivers under /usr/lib/dri and converts their symlinks to hard links. Check the sidecar against its corresponding image when verifying ownership and graphics loading. amd64 bundle · arm64 bundle

Replacing the 15 minirootfs packages

Alpine input Vinix owner or work needed
musl, zlib The musl and zlib ports own the target loader, C library and compression library.
libcrypto3, libssl3 The openssl port builds both shared libraries from one source.
ca-certificates-bundle The native bundle provides /etc/ssl/cert.pem, the concatenated CA store and the individual Mozilla authorities. Check for consumers of the old /etc/ssl1.1 aliases when auditing the final root.
busybox, busybox-binsh The BusyBox port owns /bin/sh. Expand the bootstrap applet configuration to cover the shell commands in both release images. Check the applet paths against the other packages during a signed install.
ssl_client The ssl-client port builds /usr/bin/ssl_client against OpenSSL. Its x86_64 fixture verifies a trusted peer and rejects an unrelated CA and a wrong hostname. BusyBox wget still needs a guest test with the release applet configuration.
musl-utils, scanelf The source-built musl-utils supplies getconf, getent, iconv, ldconfig and a target-specific musl ldd wrapper. Its ldconfig script uses the packaged scanelf from pax-utils. Both ports passed x86_64 recipe checks and installed together in the signed userland root. Verify the arm64 toolchain against its own loader.
alpine-release vinix-release supplies the OS identity and banners. The image builder supplies the image-specific /etc/vinix-release tag.
alpine-baselayout, alpine-baselayout-data vinix-accounts supplies Vinix's initial account databases. A signed upgrade preserved edited passwd, group and shadow, and made the changed group defaults available in group.pacnew. Compare the old amd64 service accounts with consumers before deploying the compact Vinix defaults. Remaining paths include shell profiles, the network registries, runtime links and the release-specific init configuration.
apk-tools, alpine-keys Build target vpac and its OpenPGP dependencies. Update the Vinix pkg frontend, package persistence and release image checks that currently use APK paths. Install the release public key through a trusted image and verify on both architectures that vpac rejects a tampered package.

The pinned archives and live v3.21 indexes in the November 2026 worker inventory yield 239 input rows per architecture, including 229 distinct binary names and 135 source origins. Of the 229 names, 50 occur only through X11 index dependencies. Keep the per-architecture inventory outside Git beside its input hashes.

Files in the published release

The worker compared the default ISOs and X11 archives for release iso-2026-11-28 at Vinix revision c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75. All four asset SHA-256 values match the release metadata. The six network, userland and X11 input scripts match the inventory revision byte for byte. The two desktop script differences select a V compiler flag. The deploy script differences change the release text. Both published initramfs archives contain an empty /lib/apk/db/installed and the same nine names in /etc/vinix-pkg/base-world. Published assets

Result for an Alpine package-version row amd64 arm64
At least one matching published file or symlink 165 161
A path exists but every compared value differs 11 12
No matching path or relocated library found 63 66
Input unavailable 0 0
Total rows checked 239 239

Matching rows span 99 amd64 and 98 arm64 source origins. The comparison includes exact bytes at the same path, matching symlink targets, symlinks materialized as matching regular files, and shared libraries copied under the same basename in another directory. For minirootfs records it compares paths and the SHA-1 values from the original installed database. A match establishes shared content. Identical files can occur in multiple input versions. A different value can result from stripping, local edits, an overlay or a different release version.

All four pinned legacy Mesa/LLVM packages have exact matches on both architectures. None of the 50 rows reached solely through the X11 APK index has a matching published file on either architecture. Source builds can still need those packages' headers or tools. For example, the build-base metapackage contributes dependency metadata and has no payload files.

To reproduce, first build the release-closure inventory above for each architecture. Verify the published assets against their recorded digests and extract each initramfs from its ISO. Run with Python 3.11 or later and curl on the build machine. The comparison reads archive members and writes reference APKs to a separate cache.

bsdtar -xOf "$release/vinix-amd64.iso" boot/initramfs.tar.gz > "$state/initramfs.tar.gz"
python3 tools/release-files.py "$state/all.tsv" "$state/installed" \
    "$state/initramfs.tar.gz" "$release/vinix-x11-amd64.tar.gz" \
    "$state/reference-apks" "$state/comparison"

$state/installed is from the Alpine minirootfs. Use the corresponding arm64 assets and a fresh output directory for the other target. The worker keeps the four published assets, input hashes and detailed manifests in musl-busybox-CqkBEA/release-inputs/iso-2026-11-28. Under each architecture, comparison/packages.tsv gives the input hash and counts per candidate, and comparison/package-files.tsv lists the evidence per path. The package summaries have SHA-256 09ad06488a1f35e7bc6e5410e743a09f478cc5773e3227c7745c237255133017 (amd64) and 810b8612a6e786f412f1882022542978c7f43a4d2a5b328e3286fa63c021d2d4 (arm64).