vinix-ports / PROFILES.md
50 lines · 38 sloc · 7.47 KB · 4cba415fe1f019874fb365657ef58c5d32f05bfa
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 Build /usr/bin/ssl_client against OpenSSL and test its certificate checks. Exercise BusyBox wget with the helper and the release applet configuration.
musl-utils, scanelf The proposed musl-utils output comprises getconf, getent, iconv, ldconfig and the architecture-specific musl ldd wrapper. Its ldconfig script uses scanelf from pax-utils. Check ldd in the arm64 desktop image since the target toolchain invokes it.
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 Map the release's final paths, including account databases, shell profiles, network service tables and runtime directory links. Keep the Vinix account stage's handling of existing databases and verify edited configuration survives an upgrade.
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.