From 94543b2f8076afb9ff47c15b8c4ea094dabe718d Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 12:00:37 +0100 Subject: [PATCH] Validate five AArch64 libraries with the 16 KiB musl SDK --- BOOTSTRAP.md | 2 ++ attr/PKGBUILD.vile | 9 +++++++-- isl25/PKGBUILD.vile | 9 +++++++-- libpng/PKGBUILD.vile | 6 ++++-- libseccomp/PKGBUILD.vile | 9 +++++++-- nettle/PKGBUILD.vile | 9 +++++++-- 6 files changed, 34 insertions(+), 10 deletions(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 38f2670..c3ca547 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -52,6 +52,8 @@ Run `python3 tests/exec-linkage.py x86_64 "$client" "$auditor" --proot "$(comman The Ubuntu build worker runs one build or guest test at a time under its shared `compile.lock`. Builds may use **two compiler jobs** under the same 1 GiB memory limit. Set `MAKEFLAGS=-j2` and `CMAKE_BUILD_PARALLEL_LEVEL=2`, or pass `-j2` to Ninja or Meson. The systemd service runs as a dynamic user with `CPUQuota=200%`, `MemoryHigh=768M`, `MemoryMax=1G` and `MemorySwapMax=0`. Keep downloads, build directories, emulators and signing tools in private worker state. Store the cgroup's `memory.peak` and `memory.events` with each build and record any single-job retry. The operator laptop needs only source edits and SSH. +The aarch64 rebuilds of attr, ISL, libpng, libseccomp and Nettle require the 16 KiB musl SDK. Their clean signed install with musl, GMP and zlib audited eight package records, 514 owned paths and 25 target ELFs. The worker records exact versions and hashes in `arm/abi16/common-library-check-01`, receipt SHA-256 `71890d9f9aa07f33ea13f64dbb3caab5e45505d48779392afe92bc0d89c4f5a3`. + ## Verified x86_64 bootstrap A fresh signed Git 2.47.3 installation pulled in 15 packages and passed the audit for 1,842 paths and 46 ELF files. In the isolated root, Git created a commit, read it back and passed `git fsck --full`. The installed OpenSSH 9.9p2 client and its five dependencies passed the audit for 4,319 paths and 34 ELFs. Its `ssh-keygen` generated an Ed25519 key, signed a file and verified it for the named principal. The worker retains those installed-package results in `foundation/signed-git-01` and `foundation/signed-ssh-01`, receipt SHA-256 `f43c1f53e159f97b6e5cfb8db542828f5ab055996e7885b2e4b89b044df9ed76` and `6e30b1d67ad5e9740ca28cf76317ef3f4dac4e75c82c78560785a2395ddb2e32` respectively. diff --git a/attr/PKGBUILD.vile b/attr/PKGBUILD.vile index 7c67d82..142061c 100644 --- a/attr/PKGBUILD.vile +++ b/attr/PKGBUILD.vile @@ -1,12 +1,17 @@ +selected := get-environment-variable("VPAC_TARGET_ARCH") +arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } + defpkgbuild(attr, #:pkgname, "attr", #:pkgver, "2.5.2", - #:pkgrel, 1, + #:pkgrel, if arm { 2 } else { 1 }, #:pkgdesc, "Library and tools for filesystem extended attributes", #:arch, [#:x86-64, #:aarch64], #:url, "https://savannah.nongnu.org/projects/attr/", #:license, "LGPL-2.1-or-later AND GPL-2.0-or-later", - #:depends, ["musl"], + #:depends, [musl], #:source, ["https://download.savannah.nongnu.org/releases/attr/attr-2.5.2.tar.gz", "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/attr/attr-basename.patch"], #:sha256sums, ["39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87", diff --git a/isl25/PKGBUILD.vile b/isl25/PKGBUILD.vile index b25d79c..2236a8e 100644 --- a/isl25/PKGBUILD.vile +++ b/isl25/PKGBUILD.vile @@ -1,12 +1,17 @@ +selected := get-environment-variable("VPAC_TARGET_ARCH") +arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } + defpkgbuild(isl25, #:pkgname, "isl25", #:pkgver, "0.25", - #:pkgrel, 1, + #:pkgrel, if arm { 2 } else { 1 }, #:pkgdesc, "Integer set and relation library with the libisl.so.23 ABI", #:arch, [#:x86-64, #:aarch64], #:url, "https://libisl.sourceforge.io/", #:license, "MIT", - #:depends, ["musl", "gmp"], + #:depends, [musl, "gmp"], #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/isl-0.25.tar.bz2", "count.c"], #:sha256sums, ["4305c54d4eebc4bf3ce365af85f04984ef5aa97a52e01128445e26da5b1f467a", "6d9c89822656eb1ae360cdb00b37774cd1cbe790ec5028f64209947404bee201"], #:build, fn() { diff --git a/libpng/PKGBUILD.vile b/libpng/PKGBUILD.vile index 3097cda..1b62f1a 100644 --- a/libpng/PKGBUILD.vile +++ b/libpng/PKGBUILD.vile @@ -1,15 +1,17 @@ selected := get-environment-variable("VPAC_TARGET_ARCH") arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } defpkgbuild(libpng, #:pkgname, "libpng", #:pkgver, "1.6.59", - #:pkgrel, 1, + #:pkgrel, if arm { 2 } else { 1 }, #:pkgdesc, "PNG and animated PNG decoding and encoding library", #:arch, [#:x86-64, #:aarch64], #:license, "libpng-2.0", #:url, "https://www.libpng.org/pub/png/libpng.html", - #:depends, ["musl", "zlib"], + #:depends, [musl, "zlib"], #:source, ["libpng-1.6.59.tar.gz::https://github.com/pnggroup/libpng/archive/refs/tags/v1.6.59.tar.gz", "https://distfiles.alpinelinux.org/distfiles/v3.21/libpng-1.6.58-apng.patch.gz"], #:sha256sums, ["2540302a1844ad2b2b501977abecfa850f265f97b78f065a712ab4074a89f5b5", "eee7dea22ed502868017971c86c63c4ed1e6085de0baebfdcc3d3322f00f3eb0"], diff --git a/libseccomp/PKGBUILD.vile b/libseccomp/PKGBUILD.vile index 5f2c873..b7b9eb0 100644 --- a/libseccomp/PKGBUILD.vile +++ b/libseccomp/PKGBUILD.vile @@ -1,12 +1,17 @@ +selected := get-environment-variable("VPAC_TARGET_ARCH") +arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } + defpkgbuild(libseccomp, #:pkgname, "libseccomp", #:pkgver, "2.5.5", - #:pkgrel, 1, + #:pkgrel, if arm { 2 } else { 1 }, #:pkgdesc, "Library and tools for Linux syscall filtering", #:arch, [#:x86-64, #:aarch64], #:url, "https://github.com/seccomp/libseccomp", #:license, "LGPL-2.1-or-later", - #:depends, ["musl"], + #:depends, [musl], #:makedepends, ["linux-headers"], #:source, ["https://github.com/seccomp/libseccomp/releases/download/v2.5.5/libseccomp-2.5.5.tar.gz", "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/libseccomp/loongarch64.patch", diff --git a/nettle/PKGBUILD.vile b/nettle/PKGBUILD.vile index 50518b5..fbe9308 100644 --- a/nettle/PKGBUILD.vile +++ b/nettle/PKGBUILD.vile @@ -1,12 +1,17 @@ +selected := get-environment-variable("VPAC_TARGET_ARCH") +arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } + defpkgbuild(nettle, #:pkgname, "nettle", #:pkgver, "3.10.2", - #:pkgrel, 1, + #:pkgrel, if arm { 2 } else { 1 }, #:pkgdesc, "Nettle and Hogweed cryptographic libraries and utilities", #:arch, [#:x86-64, #:aarch64], #:url, "https://www.lysator.liu.se/~nisse/nettle/", #:license, "GPL-2.0-or-later OR LGPL-3.0-or-later", - #:depends, ["musl", "gmp"], + #:depends, [musl, "gmp"], #:source, ["https://ftp.gnu.org/gnu/nettle/nettle-3.10.2.tar.gz"], #:sha256sums, ["fe9ff51cb1f2abb5e65a6b8c10a92da0ab5ab6eaf26e7fc2b675c45f1fb519b5"], #:build, fn() { -- 2.56.1