vinix-ports / tests / x11 / README.md
44 lines · 26 sloc · 8.35 KB
Raw

X11 release checks

The X11 sidecar for Vinix release iso-2026-11-28 combines two Mesa releases. Keep their drivers and LLVM versions distinguishable when assembling the vpac sidecar.

The vinix-release-x11 metapackage selects Xorg with the fbdev module, both Xvfb variants, the Vinix session, the release clients and demos, and their runtime dependencies. It also selects XRandR, Xtrans and the GLU header found in both published sidecars. The bitmap files live in /usr/share/fonts/X11/misc. The metapackage exposes those same files and their maintained index at the published /usr/share/fonts/misc path. The header-only GLU package matched the published input on both architectures. Mesa supplies the published GL/osmesa.h header. The full GLU library, OSMesa, XA and LLVM development files remain build inputs.

The AArch64 metapackage also requires musl>=1.2.6-4 for the release kernel's 16 KiB memory pages. The native recipe evaluator checked this requirement and the common X11 selection for both targets. The staged font alias resolved the bitmap and its index from a signed installation. A complete install by name and functional guest tests on each architecture still require the release graphics packages to be built. Selection metadata and header comparison receipts are under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/release-meta-04 and mesa-layout-and-glu.txt in its parent directory.

Source Package owner Public paths and consumers
Mesa 24.0.9 mesa-glx-legacy /usr/lib/libGL.so.1, /usr/lib/libglapi.so.0 and /usr/lib/xorg/modules/dri/ serve the release Xorg and GLX-enabled Xvfb. The DRI driver requires libLLVM-17.so.
LLVM 17.0.6 llvm17-libs /usr/lib/libLLVM-17.so and its versioned alias serve the legacy DRI driver.
Mesa 24.2.8 mesa /usr/lib/libEGL.so.1 and /usr/lib/libgbm.so.1 both request libgallium-24.2.8.so. Ship that shared object under /usr/lib and keep current Mesa's DRI entry points under /usr/lib/mesa24/dri/.
LLVM 19.1.4 llvm19-libs /usr/lib/libLLVM.so.19.1 serves the current Gallium library.

Vinix’s ARM desktop assembly additionally copies the old DRI library and software entry points to /usr/lib/dri. It copies the old GL/GLAPI libraries to /usr/lib/vinix-x11-software and the current EGL/GBM libraries to that directory’s egl child. The X11 build removes the versioned current Gallium library before copying the old DRI tree. The optional Apple GPU image uses a separate Mesa overlay. X11 assembly · Desktop overlays

The comparison passed for the published amd64 and arm64 assets at Vinix revision c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75. On each architecture the sidecar’s EGL and GBM libraries byte-match the 24.2.8 packages. Each ELF requests libgallium-24.2.8.so, which in turn requests libLLVM.so.19.1. Neither library appears in the ISO, initramfs or sidecar path inventory. The DRI renderer present in each sidecar byte-matches the 24.0.9 package and requests libLLVM-17.so. Both Gallium versions also request libglapi.so.0 and libstdc++.so.6.

The release init sets LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri:/usr/lib/dri. The embedded Wine host gives the child Xvfb those same paths in reverse order. Both reach the legacy renderer. Mesa 24.2.8 links its EGL library directly with the current Gallium shared object, so the dynamic linker also needs that object before the surfaceless driver can initialize. Vinix init · Wine host · Mesa EGL linkage

The worker retains the extracted files and receipts under musl-busybox-CqkBEA/xorg/release-elf-01. The local receipt copy is under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/release-elf-01. The SHA-256 digests of the per-architecture SHA256SUMS manifests are 5da28c971951958f0108714675ac446e5b40596fbcbe51a1be7040efb0fcf1d8 for amd64 and bab53968719220861d2c1967ff45ae571d64f952a1ed47838a6710e8111573b5 for arm64.

To reproduce it, supply the two original sidecars, per-architecture inventories from the release audit, and the corresponding reference APKs. The command preserves the ELF headers, dynamic sections, matched paths and SHA-256 values.

v run tests/x11/release-elf.v "$release_assets" "$reference_apks" "$new_output"

Signed packages in a Vinix guest

The x86-64 client test booted Vinix with ten PGP-validated packages, including libX11, libfontenc and Pixman. client.v parsed a signed X geometry, mapped the Latin-9 euro character to Unicode and copied a one-pixel ARGB image through Pixman. All three checks passed. Its additional --display mode performs a pixmap readback against a running X server.

The font test installed mkfontscale and both bitmap font packages by name. The cold install ran the pacman hook inside the target root and produced 766 owned file and link paths across twelve signed packages. Inside Vinix, font-index.v ran the installed hook’s command with the cursor font present, removed and restored. It verified the header count, the cursor entry and the fixed-font entry. Both QEMU runs used one vCPU and 384 MiB. Receipts and serial transcripts are under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/{x11-client-guest-04,font-index-guest-02}.

The headless server test installed xvfb, xauth, xset, xrdb and BusyBox by name. The x86-64 root contained 36 PGP-validated packages, 5,738 owned file and link paths and 68 target ELFs. On the release kernel, headless.sh started the packaged Xvfb with TCP disabled, authenticated a client, drew a pixmap and checked the returned pixel. The client also wrote and read back an X resource. A new connection with an empty authority file correctly failed. The 384 MiB, one-vCPU guest transcript and ISO checksum are under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/guest-xvfb-03.

On the released AArch64 kernel, modeline-font.sh ran the source-built cvt and bdftopcf executables that require 16 KiB page alignment. It computed a 640×480 modeline and regenerated the release PCF cursor from its upstream BDF. The cursor matched SHA-256 ad72bdd05b8baf48fd988dd08ee64a7b9ab4e04c3c72db3c4bc74ae01b7a6246. The one-vCPU, 384 MiB guest used seven signed packages containing 559 owned paths and twelve target ELFs. Evidence is under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/arm16-guest-tools-02.

The LLVM fixture compiles a two-argument integer addition function from LLVM IR, obtains its native address and calls it with positive and negative inputs. Before using it on the candidate runtime, we ran it twice in the build-only Alpine environment, once with libLLVM-17.so and once with libLLVM.so.19.1. Both returned the expected sums. The per-version DT_NEEDED records and transcripts are under ~/.local/state/vinix/ports/musl-busybox-CqkBEA/xorg/worker/llvm-probe-fixture-02. Runtime acceptance also requires repeating these executions with the source-built Vinix packages on each release kernel.

On AArch64, libelf 0.191-2 built from elfutils and installed with its signed libraries. The audit covered 11 package records, 1,311 owned files and links, and 18 target ELFs. The package page check is in xorg/arm/abi16/logs/libelf-pages.log, SHA-256 3a230cbe92e1469fbdeefb23d1625d1ffcb595fc0c91caa97a59376b9067c477.

The cold AArch64 LLVM build SDK installed eight signed packages, including GCC's shared runtime, libffi, libxml2, XZ, zlib and Zstd. The worker counted 1,413 owned files and links and 21 target ELFs. The host tools verified CMake 3.28.3 from the pinned Ubuntu archive and the matching 17.0.6 and 19.1.4 TableGen programs in the private build environment. The SDK and host-tool receipts are under xorg/llvm/arm-runtime-sdk-01 and xorg/llvm/arm-host-tools-01, manifest SHA-256 85a0d963c61842d6696c92bd488f3a7b52f5b8441f172a4ff0ced50ca27a32e9 and f8d1d5aaafbde5b748e8fa7c9888dbe9761ead42001b89d477120b24ecbbe283.