me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Exercise release X11 tarballs with the guest BusyBox

diviocity committed 5 days ago · f64848dc841ac569e6cfecf05969ce9d986d2ed6 View patch
Unverified signature 3 files changed +17 -1
PROFILES.md +1 -1

@@ -184,4 +184,4 @@ To survey the whole release initramfs, pass `--system-providers providers.tsv` t

184184

185185With `--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`.

186186

187-`vinix-pkg` owns `/usr/bin/pkg` in the vpac-installed desktop root. Its `search --exact` command returns the matching package name or empty output when the signed index has no exact match. It translates `x11` into the `vinix-release-x11` metapackage. The first-run selector and System Information still need to use the new package interfaces in the Vinix source tree.

187+`vinix-pkg` owns `/usr/bin/pkg` in the vpac-installed desktop root. Its `search --exact` command returns the matching package name or empty output when the signed index has no exact match. It translates `x11` into the `vinix-release-x11` metapackage. The candidate desktop's first-run helper uses the `pkg` command, and System Information reads installed vpac records.

tests/x11/README.md +2 -0

@@ -83,6 +83,8 @@ python3 tools/bundle-x11.py "$arch" "$desktop_client" "$x11_client" "$auditor" "

8383

8484The tool audits both clients and checks the package versions, modes, link targets and bytes shared with the desktop. It writes the new paths to a root-owned archive under the published name `vinix-x11-amd64.tar.gz` or `vinix-x11-arm64.tar.gz`, with a matching checksum file. The package manager installs from the signed feed. Run `python3 tests/x11/bundle.py` for the archive layout, link preservation and rejection checks. The worker fixture is in `foundation/x11-bundle-fixture-01`, receipt SHA-256 `0a9abdd8e27a93cc6bb6926b1a95b9c7a46e281274c9fd7015a343c8255781dc`.

8585

86+For the published tarball smoke test, place the sidecar in a disposable copy of the desktop guest root at `/vinix-x11-sidecar.tar.gz` alongside the `egl.v` and `glx.v` probe executables. Prefix the `graphics.sh` fixture with `VINIX_X11_SIDECAR_SHA256` set to the archive's digest from the release manifest. Boot the matching release kernel with `tests/disk-root.py --desktop-init` and use `--space-for` with the full graphics root to reserve room for extraction. The guest verifies the archive, extracts it with packaged BusyBox, checks that `pkg` is unchanged and exercises the same EGL and GLX pixel reads. The worker verified extraction and the DRI hard link with both release BusyBox binaries on a small sidecar fixture. See `foundation/ports-sidecar-busybox-extract-proof-01`, receipt SHA-256 `2af23f5cf0fa836af61eeca8fef7bda77fbf9533a14c8de349d83b6c6fedd185`.

87+

8688Both architectures passed the desktop PID 1 and framebuffer checks from a disposable ext2 image. Those runs used the five checksum-pinned native programs from the November 28 release. The x86_64 chained fixture also ran its second script after registration and verified the larger disk size. A separate test published a signed feed with `--publish-only`, then installed musl and netbase into a clean root using the pinned public key. See `foundation/native-desktop-disk-path-01`, `foundation/native-desktop-chained-fixture-01` and `foundation/combined-publish-only-01`, receipt SHA-256 `86c564cb9415859d2411343f74b8ad8926418c16bedb4a612aab85db46137ccd`, `cb2d6c6afbdf2733676080f49792aa11b10907d1778d2bc3d01ae3317874a7e0` and `afde40678739b96cf16db58803ef87447ae4499a9e70f3425814a244e12d6883`. The complete desktop and X11 transaction still needs both graphics feeds.

8789

8890Set `VINIX_MESA_NATIVE_FILE` to a Meson native machine file whose `pkg_config_path` includes a build-host `wayland-scanner.pc`. The worker reused the source-built x86_64 Wayland scanner from an audited signed root. Meson found the native scanner through that file, found the target Wayland client in the SDK, and generated a protocol header. Mako and Intel CLC run in the build environment. See `xorg/mesa-host-tools-03/generator-check`, receipt SHA-256 `8df63367710d4ead9e968d30fe97eb3c63b45b4eba0f444447f5bf75b0cd4229`.

tests/x11/graphics.sh +14 -0

@@ -29,6 +29,20 @@ if [ "${VINIX_X11_INSTALL_FROM_PKG:-0}" = 1 ]; then

2929 echo 'Vinix installed the signed X11 packages'

3030fi

3131

32+if [ -n "${VINIX_X11_SIDECAR_SHA256:-}" ]; then

33+ phase=sidecar-extract

34+ test ! -e /usr/bin/Xvfb-glx

35+ test "$(vpac o --quiet /usr/bin/pkg)" = vinix-pkg

36+ pkg_checksum=$(sha256sum /usr/bin/pkg)

37+ printf '%s /vinix-x11-sidecar.tar.gz\n' "$VINIX_X11_SIDECAR_SHA256" | sha256sum -c -

38+ /bin/busybox tar -k -xzf /vinix-x11-sidecar.tar.gz -C /

39+ printf '%s\n' "$pkg_checksum" | sha256sum -c -

40+ test "$(vpac o --quiet /usr/bin/pkg)" = vinix-pkg

41+ test -x /usr/bin/vinix-wine-host

42+ test /usr/lib/xorg/modules/dri/swrast_dri.so -ef /usr/lib/xorg/modules/dri/libgallium_dri.so

43+ echo 'Vinix extracted the checked X11 release sidecar'

44+fi

45+

3246phase=egl

3347LIBGL_DRIVERS_PATH=/usr/lib/mesa24/dri /vinix-egl-check

3448