From 1a5c5fc72dfb376fb3dfad8efe6d8317a4364116 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 13:46:48 +0100 Subject: [PATCH] Exercise AArch64 OpenSSH with a resolvable build-test UID --- BOOTSTRAP.md | 2 ++ openssh-client/PKGBUILD.vile | 16 +++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 125490e..db825de 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -99,6 +99,8 @@ Source plans record the recipe directory for each output package. The queue invo The published x86_64 Vinix kernel booted 32 signed network packages. It refreshed the trust store with a local CA, established loopback HTTPS, rejected the wrong hostname, committed and read a Git file, signed and verified that file with the installed SSH tools, then installed and queried a local XBPS package. The fixture and logs are `tests/userland/network.sh` and `foundation/network-guest-03`, receipt SHA-256 `4e9afac33947b999911a4ff35f218b49f3356b345e47e7b90e7ffce644d0c7b4`. +OpenSSH 9.9p2-1 passed its AArch64 recipe checks in QEMU user mode with six packages in the signed SDK. The recipe wraps the emulated commands in fakeroot so the musl process can resolve its test UID in the worker's passwd file. The check lists ciphers, generates and fingerprints an Ed25519 key, and signs a file. The archive and ELF page report are in `arm/abi16/openssh-recheck-01`, receipt SHA-256 `227a4e471322b1c5ada06ed342145bb05b08020e371ab293fb4194500ff97918`. The network guest remains the installed-system check. + An eight-package x86_64 guest tested the BusyBox wget applet and its separately packaged TLS helper. It rejected an unknown certificate, retrieved the expected bytes after installing the local CA, and rejected the same certificate for a different hostname. The guest fixture is `tests/userland/wget.sh`. The worker keeps the install, audit and serial hashes in `foundation/wget-guest-x86_64-01/receipts.sha256`, SHA-256 `5872d1467ee2594b9305bed5fa1ceb084c8c3fde4ebccb0539db25d02b3849f9`. For package roots too large for a test initramfs, use `python3 tests/disk-root.py "$arch" "$root" "$fixture" "$iso" "$boot" "$output"` on the worker. The root must supply BusyBox init, and the fixture prints `VPAC FIXTURE GUEST PASS` after its checks. The helper creates a fresh ext2 image file from a private copy and runs QEMU in snapshot mode. The x86_64 release kernel read the matching disk identity and relocated all 109 dynamic executable paths from a 106-package root with 512 MiB of guest RAM. The test retains its ext2 and serial hashes under `foundation/disk-exec-x86-02/test`, receipt SHA-256 `6f600855744d04fa71d916f545e746ed36ba2686a56937c2b4c3cb02e3ec6a58`. diff --git a/openssh-client/PKGBUILD.vile b/openssh-client/PKGBUILD.vile index 364bc02..a0b3eac 100644 --- a/openssh-client/PKGBUILD.vile +++ b/openssh-client/PKGBUILD.vile @@ -23,11 +23,17 @@ defpkgbuild(openssh-client, run("make", "ssh", "scp", "sftp", "ssh-keygen", "ssh-agent", "ssh-add", "ssh-keyscan", "ssh-pkcs11-helper") }, #:check, fn() { - run("vinix-run", "./ssh", "-V") - run("vinix-run", "./ssh", "-Q", "cipher") - run("vinix-run", "./ssh-keygen", "-q", "-t", "ed25519", "-N", "", "-f", "test-key") - run("vinix-run", "./ssh-keygen", "-lf", "test-key.pub") - run("vinix-run", "./ssh-keygen", "-Y", "sign", "-f", "test-key", "-n", "vinix", "openssh-9.9p2/LICENCE") + target := get-environment-variable("VPAC_TARGET_ARCH") + arm := if string?(target) { string=?("aarch64", target) } else { false } + ; The emulated musl process resolves its UID through /etc/passwd, which + ; lacks the build worker's systemd-managed account. Give the check an + ; existing account without changing the package or the worker's users. + runner := if arm { list("fakeroot", "--", "vinix-run") } else { list("vinix-run") } + apply(run, append(runner, list("./ssh", "-V"))) + apply(run, append(runner, list("./ssh", "-Q", "cipher"))) + apply(run, append(runner, list("./ssh-keygen", "-q", "-t", "ed25519", "-N", "", "-f", "test-key"))) + apply(run, append(runner, list("./ssh-keygen", "-lf", "test-key.pub"))) + apply(run, append(runner, list("./ssh-keygen", "-Y", "sign", "-f", "test-key", "-n", "vinix", "openssh-9.9p2/LICENCE"))) run("test", "-s", "openssh-9.9p2/LICENCE.sig") }, #:package, fn() { -- 2.56.1