me

/

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

Record signed GCC installation and verified recipe reuse

diviocity committed 5 days ago · 7232e77ff3101b70e5aac280b597eb1759d0c2b8 View patch
Unverified signature 3 files changed +9 -3
BOOTSTRAP.md +3 -1

@@ -23,7 +23,9 @@ The x86_64 compiler build then compiled and linked `libitm` with the newly built

2323

2424The retry produced `gcc-14.2.0-1-x86_64.pkg.tar.zst`, SHA-256 `136aeee3c040fcf356e3ff0d3e83150883c6452e4c3de9ea18bac4e60809b22a`. It reused the compiler objects and peaked at 545 MiB. The new signed SDK installed 18 packages and the auditor checked 3,763 owned paths and 101 target ELFs. See `gnu/gcc-package-release-01`, receipt SHA-256 `c7bce72a61d40ab598c25b7171b4f4ba244bc4574e353ba74d091fc6199b24f4`, and `gnu/gcc-final-verification-01/sdk/audit.log`. Running programs built by this compiler remains a separate acceptance check.

2525

26-The private build umask left some packaged compiler directories at mode 0700. Release 2 sets the packaged directories to 0755 and reuses the same configured GCC objects. The worker verified file metadata in all 46 compiler and C++ header directories and checked the target ELF load segments in `gcc-14.2.0-2-x86_64.pkg.tar.zst`, SHA-256 `aeba57d6dd36afd723cbaab6db3b2b1310c99c2f4c4a61cda77fe98dbb0f877a`. See `gnu/gcc-work/gcc-release-r3/gcc-r2.sha256` and the associated build attempt. The signed install and guest execution checks for this revision remain pending.

26+The private build umask left some packaged compiler directories at mode 0700. Release 2 sets the packaged directories to 0755 and reuses the same configured GCC objects. The worker verified file metadata in all 46 compiler and C++ header directories and checked the target ELF load segments in `gcc-14.2.0-2-x86_64.pkg.tar.zst`, SHA-256 `aeba57d6dd36afd723cbaab6db3b2b1310c99c2f4c4a61cda77fe98dbb0f877a`. See `gnu/gcc-work/gcc-release-r3/gcc-r2.sha256` and the associated build attempt.

27+

28+A fresh signed installation of that GCC revision, `build-base`, BusyBox init and the system accounts audited 23 packages, 3,792 owned paths and 104 target ELFs. See `gnu/gcc-final-verification-02/sdk/audit.log`, SHA-256 `f5478f0e2ec18da9c624508a6f537c99490982f9b07cecb5e8a838525d5525bd`. Running the compiler fixtures remains a separate acceptance check. The worker retained the configured objects with a verified archive and restoration path in `foundation/gcc-x86-checkpoint-archive-02`, receipt SHA-256 `e17f870c167cba4d3bc33df189a2168356567d9936d6360c9d8de45dbceaefed`.

2729

2830Installing `build-base` by name from a signed x86_64 repository brought in 17 packages. The installed-root audit checked 3,196 owned files and links and 95 target ELFs. ALPM gives the metapackage a zero-byte file list. The auditor checked its archive manifest for package metadata and also rejected an empty file list substituted for the installed musl record. See `foundation/installed-root-meta-02`, receipt SHA-256 `0632e6ff628e031080655367caa4aa01df213d328e32c1bae77a82bd766330f2`.

2931

PROFILES.md +4 -2

@@ -24,13 +24,13 @@ For `order-06`, `tools/release-archives.py` checks each receipt, the archive's p

2424

2525The reuse trial selected historical recipe bytes for 17 x86_64 and two AArch64 builds. Both regenerated dependency orders and their edges matched `order-06` byte for byte. A new archive scan matched 135 x86_64 and 127 AArch64 archives against the trial; the latter includes the newly built libxaw. The AArch64 libxml2 manifests record different library payloads. See `release-inputs/upstream-7f173671/reuse-plan-01`, receipt SHA-256 `b406f696aec1c7926f28a84d3ed9592fcf3444aef623356a38bb3c1e206ae65e`.

2626

27-`release-recipes/reuse.tsv` records the tested recipe variants in Git. Run this loop from the ports checkout on a copy of the source snapshot for one target. The x86_64 musl patch reconstructs the archived recipe bytes for that target. The AArch64 profile keeps its 16 KiB compiler-spec fix. The reconstructed recipes matched all 19 recorded hashes.

27+`release-recipes/reuse.tsv` records the tested recipe variants in Git. Run this loop from the ports checkout on a copy of the source snapshot for one target. The x86_64 musl patch reconstructs the archived recipe bytes for that target. The AArch64 profile keeps its 16 KiB compiler-spec fix. Restore the package directory at each specified revision so local inputs such as Git's `config.mak` match the recipe.

2828

2929```sh

3030while IFS="$(printf '\t')" read -r target package revision checksum adjustment; do

3131 test "$target" = "$arch" || continue

32+ git archive "$revision" "$package" | tar -xf - -C "$recipes" || exit 1

3233 recipe="$recipes/$package/PKGBUILD.vile"

33- git cat-file blob "$revision:$package/PKGBUILD.vile" > "$recipe" || exit 1

3434 if test "$adjustment" != -; then

3535 patch --batch --fuzz=0 "$recipe" "$adjustment" || exit 1

3636 fi

@@ -40,6 +40,8 @@ done < release-recipes/reuse.tsv

4040

4141The two AArch64 libxml2 archives have 1,749 matching exported symbols, including symbol versions and the sizes of exported data. Their SONAME and dependency entries match. Each installed into an independently signed client and its `xmllint` accepted the valid XML fixture and rejected the malformed one in QEMU user mode. The X11 queue already selects the archive with SHA-256 `b5cda4ef51da15ed533f54354aa54bdadf0b604fa3db5cfa1b903ed914206a5e`. Use that same archive for the X11 release feed. See `xorg/arm/libxml2-same-version-01`, receipt SHA-256 `64d1132b297a8a99275126ac6f5538974cc55bf5f570561a330eb5df3ed30663`.

4242

43+The second reuse trial adds the tested x86_64 Git and AArch64 OpenSSH recipes. It uses the selected AArch64 libxml2 archive and the shared `vinix-release` archive. All 21 source pins reconstructed with matching recipe hashes. Both dependency orders and their edges still match `order-06`. The archive check matched 137 of 158 x86_64 packages and 132 of 158 AArch64 packages. See `release-inputs/upstream-7f173671/reuse-plan-02`, receipt SHA-256 `86006adf587e68849f38aaf48ab820ae4d569dcd1093e3995a8df7d616750ccb`.

44+

4345Run the audit on the worker with the exact source snapshot and the saved receipt pools. The output includes each rejected candidate and the packages waiting on it. The worker tested the successful Make archive, changed recipe bytes and a wrong archive checksum. See `archive-provenance-controls-02`, receipt SHA-256 `ab654bd7de369594a78f6e5cae0ac49dea1a9c248ec92824f4a7699a5015ccad`.

4446

4547```sh

release-recipes/reuse.tsv +2 -0

@@ -1,8 +1,10 @@

11arch package revision recipe_sha256 patch

22aarch64 gmp 3f2f8536f991ef3361da6aa8ddbfd9a422990664 3c72bd06a4516dac145979656c83fd3cffdaee3f4f750dbc1b0b36166852cc45 -

33aarch64 ncurses af06960c8943e24fdeb59c1e56e828fb95fbef75 935eb4b6ad50debef3e96945ecff2af693da5c2cce374f4c2c3aa9bd64c6721a -

4+aarch64 openssh-client 1a5c5fc72dfb376fb3dfad8efe6d8317a4364116 993696d6bead7720c823066b9f8f5ef8e0351cdb7b287bea1f3f1a04b800959f -

45x86_64 attr 531f568431d48e58b92aba78e967b072d04e7a32 2d0561ccf3abed59e04add43857597cf3c1ed6ff9382e00f19e208287cd298ad -

56x86_64 bdftopcf f95b117d87d5b2818ea811f9c66f3e0a1da13762 2758236232776c8d8f14bf3254b298fee19faa6b367e0b7acfe36b0be9ba9a2e -

7+x86_64 git 73ce2171ae35895d87442ccbc8f43104ce63a4fc 3f0cd86ed8595642a7d80946f73589dd01dc0396c7c193bca78cf4731f776382 -

68x86_64 isl25 704e7dee1b6b27840f3eb83a02f28e853435c47f f61d3d79ce052ff555c8315c51cc5d29b0213c691e395ea33d86e13a655f850c -

79x86_64 libfontenc 49e9ab03a3bceb1ace91e09ae1eef27ba692ca24 91179061812afbefdc69ad0a117eeb3755f398d869346fc0e0b64045a757c029 -

810x86_64 libpng 58ddab9952b26cf0b232316fb718fec29f91c338 2c1b3f31b31172d6de8bcbf8c7e42a7ce740e4c58525d25c48d8c57e0b7fc3b9 -