vinix-ports / PROFILES.md
129 lines · 85 sloc · 24.67 KB · b4432f1004726864de2f2784f2392f36648cfd30
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.

tests/index-dependencies.py INVENTORY IMAGE_NEEDED X11_NEEDED REPORT joins the selected APK records to their requesting packages and to the DT_NEEDED tables from the published image and sidecar. On both architectures, one of the 50 index-only names provides a SONAME with a direct released ELF consumer. The current Mesa EGL and GBM libraries use libwayland-server.so.0, supplied by the Vinix wayland port. This scan covers ELF linkage. The Mesa build and runtime checks also track host generators, headers and libraries loaded through dlopen. The reports are in foundation/release-index-dependencies-01, receipt SHA-256 48f72aa002190a0ee74be60c5ae5e7d334fa4b9a939b7aa62236b65a10d7c719.

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.

The worker joined those inputs to its source plan, package receipts and installed databases. Snapshot 08 orders 156 recipes in 15 dependency stages on each architecture. All 165 matching amd64 rows and all 161 matching arm64 rows have a named Vinix source provider. The other 74 amd64 and 78 arm64 rows remain candidates from the build inputs. Nineteen candidate origins have no target recipe in that snapshot. Some supply build-host tools, including Clang, libclc and the SPIR-V translator used to generate Iris shaders. The disposition tables give separate columns for planned, built and installed providers, plus the outstanding check for each input. See foundation/release-input-disposition-01/{x86_64,aarch64}/inputs.tsv, receipt SHA-256 f896b9758b57eea178a067da3d80e29aace2f729acf87882774df290e622c35a.

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.

Two more Zsh 5.9 completions have verified replacements in 5.9.2. The release kernel ran compinit and checked that pmap selected _pmap from the Unix directory and chcon selected _selinux, bringing the x86_64 relocation count to 1,362. Both signed SDKs' public unistd.h produced the original LP64/OFF64 feature macros. The x86_64 owner table records the CA updater for the generated certificate bundle and hash links and the desktop PID 1 for default startup. See foundation/relocated-guest-x86-02 and foundation/release-native-owners-03, receipt manifests f6df0b88ba418f246874810377330ee7f1c72878b213b053f5c1c0f21bcbfee5 and 15ad4349545783af2425379d57b4ade68fdc4cbdcd268455d8e7613dff3773d8.

The x86_64 first-boot registration screen ran with a clean, 15-package vpac root and its packaged release PID 1. The test added the five native Vinix programs from the checksum-pinned release initramfs and checked their hashes inside the guest. The guest observed both the graphical session and the registration process, then sampled at least 24 colors from the 1024×768 framebuffer. Reproduce this with tests/desktop-guest.py. The worker retains the manifest and serial transcript in foundation/desktop-registration-x86-01, receipt SHA-256 0f0a3bc88bbb2b4921df92510163a43afbaaf8f683b05fe8bf180a62f9888129.

The arm64 desktop init uses the Vinix V generator and freestanding syscall implementation at revision c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75. Clang's builtin headers supply the integer types. The worker checked the generated executable's entry point, syscall symbol, static linkage and four 16 KiB load segments. See foundation/desktop-init-arm-probe-06/receipts.sha256, SHA-256 42ef835ad6544be6fbe87f6ee8bc7f068ba6b4ac99a10449ec6a674b69807907. The signed arm64 desktop installation and its first-boot test are subsequent checks.

tests/library-upgrades.py reads the actual shared libraries in the checksum-pinned release initramfs and the replacement files in an audited root. It checks the ELF target, SONAME, provider ownership and dynamic exports, including symbol versions and exported data sizes. PCRE2's two x86_64 libraries retained all 77 and 6 compared exports, and zlib retained all 95. Their new implementation filenames are in foundation/release-library-interfaces-01/interfaces.tsv, receipt SHA-256 11ddb4daf9f4b2d231c512b3b9e16f92dd2ccdb1192fff0130a6be5037fa971b. OpenSSL 3.5.9-3 retained all 580 libssl exports. Its libcrypto lacked the three published NIST prime-field method symbols for 224, 256 and 521 bits. See foundation/release-ssl-interfaces-01/known-differences.sha256, SHA-256 679aab5f1a2d7d4beb4853872ba45b30a4b875c27fb70b5ca6ffa708340105ce.

OpenSSL 3.5.9-4 on x86_64 enables those three methods. Its recipe creates and frees an EC group with each method. The fresh signed installation supplies all 5,426 published libcrypto exports and all 580 libssl exports. See foundation/openssl-ec-04/interfaces.tsv and its receipt manifest, SHA-256 269a3326b99eacb2691fd370bf17f828750b28d5feaff4be6c48217c4a7134b3.

On aarch64, the signed BusyBox build SDK contains 12 packages, 1,497 owned files and links and 15 target ELFs. OpenSSL 3.5.9-5 supplies all 5,423 libcrypto exports and all 580 libssl exports from the published aarch64 image. Zlib 1.4-3 supplies all 95 compared exports. The three interface comparisons and the SDK receipt are recorded in arm/abi16/release-ssl-01/receipts.sha256, SHA-256 fa5eef5427d1d9edc8d4a08a198f55b7715516ceff7494ae82831a117154ceb8.

The signed aarch64 PCRE2 installation supplies all 77 published exports from libpcre2-8 and all six from libpcre2-posix. The worker recorded both comparisons alongside the OpenSSL and zlib results in arm/abi16/release-library-interfaces-01, receipt SHA-256 52f4a3b602d2350c6d6b0d6a00338b387d4827f84d6f2357fa69f3cff82435af.

To survey the whole release initramfs, pass --system-providers providers.tsv to tests/library-upgrades.py in place of individual library arguments. It examines every regular shared-library ELF in /lib and /usr/lib, resolves its SONAME to an installed owner, and records absent providers and differing exports. The 129-package x86_64 root fully covered the exports for 51 of 69 regular library paths. Twelve had no installed provider and six had export differences, including the earlier OpenSSL build. Multiple paths in the release contain the same library. The nine-package arm64 bootstrap root covered its loader, had 68 missing providers and contained no replacement for the release's native OBS module without a SONAME. See foundation/system-library-interfaces-01, receipt SHA-256 cdf961b747c2abcf7c90f0a5d011c783a16ad97e8aedb091f317c76628870381.

tests/release-imports.py ARCHIVE SHA256 REPORT SYMBOL... searches undefined dynamic symbols in the original binaries. Across 240 amd64 image files, 114 amd64 X11 files, 221 arm64 image files and 120 arm64 X11 files, no binary imported _dlstart or Zstd's deprecated experimental ZSTD_copyCCtx and ZSTD_copyDCtx, removed upstream in 1.6.0. The same scan found no direct imports of the five differing GMP helpers or the nine MPFR cache and default-state symbols. It found ZSTD_decompress in all four layers and mpfr_init2 in both images. The scan measures link-time imports. MPFR's per-thread defaults need a runtime test independently. See foundation/release-dynamic-imports-01, receipt SHA-256 2e5ff31cdbc7c255a15ba8b8da25749c1633e102245f89a95fe8dcdcdd9072a5.

With --dependencies needed.tsv the same command records each ELF's library dependencies. Across both images and their X11 bundles, only /sbin/apk links to libapk.so.2.14.0. The native desktop still uses apk through two other interfaces. The first-run selector invokes /sbin/apk search --exact, and System Information reads /lib/apk/db/installed. Both images also ship a 49,083-byte /usr/bin/pkg shell frontend that runs apk transactions. The cutover needs a vpac repository query for the selector, vpac records for System Information, and a working native backend for the published pkg commands. Test all three interfaces in the guest alongside first-boot registration. See foundation/release-dependency-edges-01 and foundation/release-pkg-callers-01, receipt manifests b003d96cba8b6d0a6ca4461865241b2815657b309f1fac8844cdd5f0806b67c2 and 6ec3399d9c79ceb33cd4099c9fad7d22d270f04595227fb1ba472bb80cbead49.