vinix-ports / PROFILES.md
105 lines · 73 sloc · 16.9 KB · cb356c9f5905cb931af55c684ebc8abd25d8319b
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, the individual Mozilla authorities and the published /etc/ssl1.1 aliases. The separate maintenance port supplies update-ca-certificates, c_rehash and the default trust selections.
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 the initial account databases, vinix-filesystem supplies directories, runtime links and host/login policy, and netbase supplies service and protocol names. A signed upgrade preserved edited passwd, group and shadow and wrote the changed default group to group.pacnew. Check service-account consumers and the release-specific init configuration during image assembly.
apk-tools, alpine-keys The vinix-keyring recipe packages an independently pinned public certificate. The worker verified that the seeded keyring can install a signed package offline. Build target vpac and GnuPG, switch the Vinix pkg frontend, persistence and image checks, provision the release signer and repeat tamper rejection inside both guests.

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).

Tracking replacement owners

Run the owner comparison against an installed vpac root on the build worker. It reruns the installed-root auditor, then joins each published path to its actual vpac owner. It retains the original Alpine binary, version, repository and image or sidecar layer. The summary gives the expected Vinix packages, their presence in the signed root and an outstanding check for each input. To inventory an architecture awaiting its first root, omit both client options.

python3 tools/release-owners.py x86_64 "$release/amd64/comparison" "$work/owners" \
    --client "$work/client" --auditor "$work/installed-root"
python3 tools/release-owners.py aarch64 "$release/arm64/comparison" "$work/arm-pending"

The 62-package x86_64 root for the November 28 image had 3,899 matching input/layer/path observations. It had 928 with an expected owner, 117 with another owner and 2,854 without an owner in this snapshot. The same path can appear in more than one Alpine package version or release layer. Rebuilt bytes normally differ, and matching an owned path still leaves ABI and runtime behavior to verify. The arm64 baseline had 4,019 observations awaiting an installed root. The worker retains the per-row results and hashes in amd64/owners-62 and arm64/owners-pending beside the release comparisons.

The first arm64 SDK provided 231 of those 4,019 matching paths under their expected owner. The comparison in arm64/owners-runtime-01 records the other 3,788. Both architectures' owner tables now assign the versioned GCC runtime libraries to gcc-libs.

The 106-package x86_64 root passed the installed-root audit for 17,128 paths and 273 target ELFs. The 27-package arm64 root passed for 1,967 paths and 31 target ELFs. Vinix packages the individual Mozilla authorities in ca-certificates-bundle, the update tools and configuration in ca-certificates, and the login banner in vinix-release. Applying those ownership rules to the published paths gives 1,250 expected owners and 2,649 missing original paths on x86_64, and 556 expected owners and 3,463 missing original paths on arm64. The worker records the per-file results in foundation/split-owners-01, receipt SHA-256 e1404e666c4035989856488ab77253cfb48bfec023cc44d43ef30ddab42ac9c1.

The same checker writes relocations.tsv for original paths whose expected owner installed the file under a new path. The 106-package x86_64 root has 850 such versioned Zsh paths, 335 X11 bitmap font paths, 135 binutils target paths and 40 terminal descriptions. They account for 1,360 of the 2,649 missing original paths. A relocation records a path and its installed owner. The files, their consumers and their behavior can then be checked in the guest. The worker retains both architectures' tables in foundation/relocations-01, receipt SHA-256 244339f89da83ab65177fa2fd34f75d5fa402a0cd13607e522fa881097911a62.

On both architectures the published X11 sidecar retains one matching GLU development file, usr/include/GL/glu.h, assigned to glu-headers, and two libelf paths assigned to libelf. The current Mesa DRI modules belong to mesa. The v3.20 modules belong to mesa-glx-legacy. The reference comparison distinguishes the two branches even when the Alpine binary names match. See foundation/graphics-owners-02, receipt SHA-256 1fab0e9d2ab6b298471b10326d2e51b26de2b8efc1dc2fdca81fb344e84f17c9.

replacements.tsv records the native owner for repository keys, OS identification and package management. The audited 106-package x86_64 root supplies vinix-keyring for all 43 distinct Alpine public-key paths and vinix-release for operating system identification. Seeding the installed certificate with the independently supplied test fingerprint verified the signed repository index. The root's etc/os-release contains ID=vinix. Its package-manager row still requires an installed usr/bin/vpac. The reference table preserves the original missing paths and the expected and installed owner separately. See foundation/native-substitutions-02, receipt SHA-256 928b4bb088a1305fc66871b9a6c5d3c3d4b7c34a70daef6c6fddd35a2fb46c96.

Both targets also passed a fresh signed install of musl, vinix-accounts, vinix-filesystem and netbase. Each root had 252 owned files and links and six target ELFs. Run python3 tests/layout.py "$client/root" after the installed-root audit to check the modes on shadow, root and the temporary directories, the runtime symlinks and the account and network defaults. The worker retains both runs in foundation/layout-03 with receipt manifest SHA-256 d5c1cba079ab9cb1f04f2de7f17ab9d270e9066fc2472ac486fd079fa1139a1e.

The next clean x86_64 install resolved 129 signed packages in ten dependency stages. The auditor counted 18,170 owned files and links and 334 target ELFs. BusyBox 1.38.0-5 owned the shell, and vinix-desktop-init owned a byte-identical copy of the published x86_64 PID 1. The X11 bitmap font hook populated the index during installation. Of 3,899 matching release observations, 1,608 had their expected owner at the published path, and 1,360 more had documented relocations. The remaining work includes the native GCC and Mesa stacks, vpac and guest checks. See foundation/desktop-owners-04, receipt SHA-256 819fd43ec280e519dbfa41e1628a5822faedf7f5059c03fd4bdf3e8d6bc24e9b.

The x86_64 path fixture booted the published kernel with a 19-package signed root. It loaded Zsh's attribute, line-editor and completion modules, initialized completion, read the linux, alacritty and xterm-256color terminfo entries, found the indexed Misc Fixed bitmap font, and executed the target-prefixed GNU assembler and linker. The serial transcript is in foundation/relocated-guest-x86-01, receipt SHA-256 c6b8615194003d7ee9490682127a0b2d477b35bac8d37282f97ac94e8bb4eeab. A separate audit of the 129-package root ran the installed musl loader over all 158 dynamic executable paths on the x86_64 build worker. See foundation/abi-desktop-129-01, receipt SHA-256 9b07bc02aa03c6c5a30411ec760865648f39297d6c270cd8f0e973165a37337b.