me

/

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

Pin historical recipes for reusable release archives

diviocity committed 5 days ago · 3783e6e0d32e999f891aad3307c30a66fa387146 View patch
Unverified signature 3 files changed +48 -0
PROFILES.md +16 -0

@@ -24,6 +24,22 @@ 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.

28+

29+```sh

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

31+ test "$target" = "$arch" || continue

32+ recipe="$recipes/$package/PKGBUILD.vile"

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

34+ if test "$adjustment" != -; then

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

36+ fi

37+ printf '%s %s\n' "$checksum" "$recipe" | sha256sum -c - || exit 1

38+done < release-recipes/reuse.tsv

39+```

40+

41+The 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`.

42+

2743Run 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`.

2844

2945```sh

release-recipes/musl-x86_64-1.2.6-3.patch new file +12 -0

@@ -0,0 +1,12 @@

1+--- a/musl/PKGBUILD.vile

2++++ b/musl/PKGBUILD.vile

3+@@ -8 +7,0 @@

4+-release := if string=?(target-arch, "aarch64") { 4 } else { 3 }

5+@@ -13 +12 @@

6+- #:pkgrel, release,

7++ #:pkgrel, 3,

8+@@ -75,3 +74 @@

9+- ; Bootlin places a 4 KiB -Wl option after *link. A self spec appends the

10+- ; target link option after those driver arguments, including -nostdlib.

11+- run("sed", "-i", "1i%rename self_spec vinix_original_self_spec\\n\\n*self_spec:\\n%(vinix_original_self_spec) %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:-Wl,-z,max-page-size=16384}}}}}}\\n", native-specs, specs)

12++ run("sed", "-i", "-e", "s|-dynamic-linker |-z max-page-size=16384 -dynamic-linker |", native-specs, specs)

release-recipes/reuse.tsv new file +20 -0

@@ -0,0 +1,20 @@

1+arch package revision recipe_sha256 patch

2+aarch64 gmp 3f2f8536f991ef3361da6aa8ddbfd9a422990664 3c72bd06a4516dac145979656c83fd3cffdaee3f4f750dbc1b0b36166852cc45 -

3+aarch64 ncurses af06960c8943e24fdeb59c1e56e828fb95fbef75 935eb4b6ad50debef3e96945ecff2af693da5c2cce374f4c2c3aa9bd64c6721a -

4+x86_64 attr 531f568431d48e58b92aba78e967b072d04e7a32 2d0561ccf3abed59e04add43857597cf3c1ed6ff9382e00f19e208287cd298ad -

5+x86_64 bdftopcf f95b117d87d5b2818ea811f9c66f3e0a1da13762 2758236232776c8d8f14bf3254b298fee19faa6b367e0b7acfe36b0be9ba9a2e -

6+x86_64 isl25 704e7dee1b6b27840f3eb83a02f28e853435c47f f61d3d79ce052ff555c8315c51cc5d29b0213c691e395ea33d86e13a655f850c -

7+x86_64 libfontenc 49e9ab03a3bceb1ace91e09ae1eef27ba692ca24 91179061812afbefdc69ad0a117eeb3755f398d869346fc0e0b64045a757c029 -

8+x86_64 libpng 58ddab9952b26cf0b232316fb718fec29f91c338 2c1b3f31b31172d6de8bcbf8c7e42a7ce740e4c58525d25c48d8c57e0b7fc3b9 -

9+x86_64 libseccomp d7c07d8d2662c86b2ccd53b86eac2460f42dbddf bc702eba90afa821376d18a7f30af77d453220ffa545db524242f4655151e574 -

10+x86_64 libxau bcf11589caebb12f81ae9333e428c4981c045c65 d12c7ececc06951a7d09cccd54e9f81bb6025be817b6d4714c2cb0048e606286 -

11+x86_64 libxcvt 1d216756d038c9472c177cf293cdfb258258e64e 5f83456d6c1c0cc3d4cfbe6f5cf597d5af8c558b4aecbcf32e8c0e157d10cba6 -

12+x86_64 libxshmfence bcf11589caebb12f81ae9333e428c4981c045c65 60af3411cc8104fa6b81ee32bef35cc5f7e88f25d0b5efe2d72f7a8e5a941da2 -

13+x86_64 linux-headers 40e163fbe8f442c954150bd66797b231b42626f7 4b0c748034c659493b2f7b056d87963f62ec9d0d3caa2f7e349355367ec7e078 -

14+x86_64 mpc b7c1f288cd58534c4d4cf916617c0c6bebafb503 ad9232e41d64cb4a96ccccdce78b849c4619ee5238ed47a6d05a3237e6d8577d -

15+x86_64 musl 784ae321dc040b6bcd9fe6196f263e0d73e53fcf d0a4d38b58ebd67e36ad2c32f519df68c7ebca95c0b17cd33e8770ec85c0c406 release-recipes/musl-x86_64-1.2.6-3.patch

16+x86_64 ncurses d56dd35cc6a2594d4987ef21cdbd46f09f4e0b6f a5224bd14481dfa478e949e6706eb884ed74f2ae87c2d7d3c17a9f72290ede90 -

17+x86_64 nettle 31530361438298f32a197e9aea609eca486ee278 c444e10aa7f5a6d22c392cfbc0dfad6a7a49205f0f0d934e58184638f1af21e0 -

18+x86_64 openssh-client 73ce2171ae35895d87442ccbc8f43104ce63a4fc 5cf6a19f948f50ad9e62fc19b6bb63626a6bc91733ab09572188c389dd6f119f -

19+x86_64 xbps 01a9f688e3d53195c8832e15bbec8699b255c8ec 9a22b3966d1b7bb9154abac879a118d77ef8a55d2ecee61ebbfbfad35a4be00c -

20+x86_64 zlib 847b3176d3d6f39478810447f81a13e7bb8a48a2 f0690e2e1258b24fbc4cc47cb89f07f97ab6d79d6542195d3b418d4057238b25 -