me

/

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

Validate five AArch64 libraries with the 16 KiB musl SDK

diviocity committed 5 days ago · 94543b2f8076afb9ff47c15b8c4ea094dabe718d View patch
Unverified signature 6 files changed +34 -10
BOOTSTRAP.md +2 -0

@@ -52,6 +52,8 @@ Run `python3 tests/exec-linkage.py x86_64 "$client" "$auditor" --proot "$(comman

52

153The 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.

254

55+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`.

56+

357## Verified x86_64 bootstrap

458

559A 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.

attr/PKGBUILD.vile +7 -2

@@ -1,12 +1,17 @@

1+selected := get-environment-variable("VPAC_TARGET_ARCH")

2+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

3+arm := string=?(arch, "aarch64")

4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }

5+

16defpkgbuild(attr,

27 #:pkgname, "attr",

38 #:pkgver, "2.5.2",

4- #:pkgrel, 1,

9+ #:pkgrel, if arm { 2 } else { 1 },

510 #:pkgdesc, "Library and tools for filesystem extended attributes",

611 #:arch, [#:x86-64, #:aarch64],

712 #:url, "https://savannah.nongnu.org/projects/attr/",

813 #:license, "LGPL-2.1-or-later AND GPL-2.0-or-later",

9- #:depends, ["musl"],

14+ #:depends, [musl],

1015 #:source, ["https://download.savannah.nongnu.org/releases/attr/attr-2.5.2.tar.gz",

1116 "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/attr/attr-basename.patch"],

1217 #:sha256sums, ["39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87",

isl25/PKGBUILD.vile +7 -2

@@ -1,12 +1,17 @@

1+selected := get-environment-variable("VPAC_TARGET_ARCH")

2+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

3+arm := string=?(arch, "aarch64")

4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }

5+

16defpkgbuild(isl25,

27 #:pkgname, "isl25",

38 #:pkgver, "0.25",

4- #:pkgrel, 1,

9+ #:pkgrel, if arm { 2 } else { 1 },

510 #:pkgdesc, "Integer set and relation library with the libisl.so.23 ABI",

611 #:arch, [#:x86-64, #:aarch64],

712 #:url, "https://libisl.sourceforge.io/",

813 #:license, "MIT",

9- #:depends, ["musl", "gmp"],

14+ #:depends, [musl, "gmp"],

1015 #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/isl-0.25.tar.bz2", "count.c"],

1116 #:sha256sums, ["4305c54d4eebc4bf3ce365af85f04984ef5aa97a52e01128445e26da5b1f467a", "6d9c89822656eb1ae360cdb00b37774cd1cbe790ec5028f64209947404bee201"],

1217 #:build, fn() {

libpng/PKGBUILD.vile +4 -2

@@ -1,15 +1,17 @@

11selected := get-environment-variable("VPAC_TARGET_ARCH")

22arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

3+arm := string=?(arch, "aarch64")

4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }

35

46defpkgbuild(libpng,

57 #:pkgname, "libpng",

68 #:pkgver, "1.6.59",

7- #:pkgrel, 1,

9+ #:pkgrel, if arm { 2 } else { 1 },

810 #:pkgdesc, "PNG and animated PNG decoding and encoding library",

911 #:arch, [#:x86-64, #:aarch64],

1012 #:license, "libpng-2.0",

1113 #:url, "https://www.libpng.org/pub/png/libpng.html",

12- #:depends, ["musl", "zlib"],

14+ #:depends, [musl, "zlib"],

1315 #:source, ["libpng-1.6.59.tar.gz::https://github.com/pnggroup/libpng/archive/refs/tags/v1.6.59.tar.gz",

1416 "https://distfiles.alpinelinux.org/distfiles/v3.21/libpng-1.6.58-apng.patch.gz"],

1517 #:sha256sums, ["2540302a1844ad2b2b501977abecfa850f265f97b78f065a712ab4074a89f5b5", "eee7dea22ed502868017971c86c63c4ed1e6085de0baebfdcc3d3322f00f3eb0"],

libseccomp/PKGBUILD.vile +7 -2

@@ -1,12 +1,17 @@

1+selected := get-environment-variable("VPAC_TARGET_ARCH")

2+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

3+arm := string=?(arch, "aarch64")

4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }

5+

16defpkgbuild(libseccomp,

27 #:pkgname, "libseccomp",

38 #:pkgver, "2.5.5",

4- #:pkgrel, 1,

9+ #:pkgrel, if arm { 2 } else { 1 },

510 #:pkgdesc, "Library and tools for Linux syscall filtering",

611 #:arch, [#:x86-64, #:aarch64],

712 #:url, "https://github.com/seccomp/libseccomp",

813 #:license, "LGPL-2.1-or-later",

9- #:depends, ["musl"],

14+ #:depends, [musl],

1015 #:makedepends, ["linux-headers"],

1116 #:source, ["https://github.com/seccomp/libseccomp/releases/download/v2.5.5/libseccomp-2.5.5.tar.gz",

1217 "https://raw.githubusercontent.com/alpinelinux/aports/a7de3e63cc8015474a4feadd8bb7c0ecc097b1fa/main/libseccomp/loongarch64.patch",

nettle/PKGBUILD.vile +7 -2

@@ -1,12 +1,17 @@

1+selected := get-environment-variable("VPAC_TARGET_ARCH")

2+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }

3+arm := string=?(arch, "aarch64")

4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }

5+

16defpkgbuild(nettle,

27 #:pkgname, "nettle",

38 #:pkgver, "3.10.2",

4- #:pkgrel, 1,

9+ #:pkgrel, if arm { 2 } else { 1 },

510 #:pkgdesc, "Nettle and Hogweed cryptographic libraries and utilities",

611 #:arch, [#:x86-64, #:aarch64],

712 #:url, "https://www.lysator.liu.se/~nisse/nettle/",

813 #:license, "GPL-2.0-or-later OR LGPL-3.0-or-later",

9- #:depends, ["musl", "gmp"],

14+ #:depends, [musl, "gmp"],

1015 #:source, ["https://ftp.gnu.org/gnu/nettle/nettle-3.10.2.tar.gz"],

1116 #:sha256sums, ["fe9ff51cb1f2abb5e65a6b8c10a92da0ab5ab6eaf26e7fc2b675c45f1fb519b5"],

1217 #:build, fn() {