me

/

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

Reuse verified GCC runtime, MPFR and desktop init archives

diviocity committed 5 days ago · 63f2feef9f437184a04c046485ecca44fe307bb0 View patch
Unverified signature 4 files changed +79 -0
PROFILES.md +2 -0

@@ -42,6 +42,8 @@ The two AArch64 libxml2 archives have 1,749 matching exported symbols, including

4242

4343The 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`.

4444

45+The third scan reconstructed all 24 source pins, including the x86_64 GCC runtime, MPFR and desktop init, and again matched both dependency orders and edges. The signed x86_64 MPFR archive round-tripped decimal64 and decimal128 with `mpfr/decimal.c`. See `gnu/numeric-abi-x86-mpfr-reuse-01`, receipt SHA-256 `cf19247bed558445cc059050810e183f17a3c565324dbfae067eb14551037723`. The new scan verified 140 x86_64 and 134 AArch64 archives of 158 per target. See `release-inputs/upstream-7f173671/reuse-plan-03`, receipt SHA-256 `c99b43ac6b8fadb7ba6cc9366c36f51f99e4c529c01da1c2914532f633b8cae9`.

46+

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

4648

4749```sh

release-recipes/gcc-libs-x86_64-14.2.0-1.patch new file +39 -0

@@ -0,0 +1,39 @@

1+--- a/gcc-libs/PKGBUILD.vile

2++++ b/gcc-libs/PKGBUILD.vile

3+@@ -6,2 +6 @@

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

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

6++libc := if string=?(arch, "aarch64") { "musl>=1.2.6-3" } else { "musl" }

7+@@ -14 +13 @@

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

9++ #:pkgrel, 1,

10+@@ -41 +39,0 @@

11+- target-flags := if arm { "-O2 -g0 -mno-outline-atomics" } else { "-O2 -g0" }

12+@@ -43,5 +41 @@

13+- list("CC_FOR_BUILD=gcc", "CXX_FOR_BUILD=g++", "CFLAGS_FOR_BUILD=-O2 -g0", "CXXFLAGS_FOR_BUILD=-O2 -g0", "LDFLAGS_FOR_BUILD=",

14+- "AR_FOR_BUILD=ar", "RANLIB_FOR_BUILD=ranlib",

15+- string-append("AR=", prefix, "ar"), string-append("AS=", prefix, "as"),

16+- string-append("LD=", prefix, "ld"), string-append("NM=", prefix, "nm"),

17+- string-append("RANLIB=", prefix, "ranlib"), string-append("STRIP=", prefix, "strip"),

18++ list("CFLAGS_FOR_BUILD=-O2 -g0", "CXXFLAGS_FOR_BUILD=-O2 -g0", "LDFLAGS_FOR_BUILD=",

19+@@ -53 +47 @@

20+- "CFLAGS=-O1 -g0", string-append("CFLAGS_FOR_TARGET=", target-flags), string-append("CXXFLAGS_FOR_TARGET=", target-flags)), target-tools,

21++ "CFLAGS=-O1 -g0", "CFLAGS_FOR_TARGET=-O2 -g0", "CXXFLAGS_FOR_TARGET=-O2 -g0"), target-tools,

22+@@ -60,2 +54 @@

23+- apply(run, append(list("make"), target-tools, list("configure-gcc", "all-build-libiberty", "all-build-fixincludes",

24+- "all-libiberty", "all-libcpp", "all-libdecnumber", "all-libbacktrace")))

25++ run("make", "configure-gcc", "all-build-libiberty", "all-build-fixincludes", "all-libiberty", "all-libcpp", "all-libdecnumber", "all-libbacktrace")

26+@@ -64,2 +57,2 @@

27+- apply(run, append(list("make", "-C", "gcc", "-o", "xgcc", "-o", "specs", "-o", "cc1", "GCC_FOR_TARGET=vinix-cc"),

28+- target-tools, list("GENERATOR_CFLAGS=-O2 -g0", "libgcc-support", "tm.h", "options.h", "insn-constants.h", "insn-modes.h", "insn-modes-inline.h")))

29++ run("make", "-C", "gcc", "-o", "xgcc", "-o", "specs", "-o", "cc1", "GCC_FOR_TARGET=vinix-cc",

30++ "GENERATOR_CFLAGS=-O2 -g0", "libgcc-support", "tm.h", "options.h", "insn-constants.h", "insn-modes.h", "insn-modes-inline.h")

31+@@ -95,6 +88,2 @@

32+- if arm {

33+- for-each(fn(lib) {

34+- file := string-append(dest, "/", lib)

35+- run("vinix-elf-pages", arch, file)

36+- run("sh", "-ec", "readelf --wide --dyn-syms \"$1\" | awk '$7 == \"UND\" && $8 ~ /^__aarch64_(cas|swp|ldadd|ldclr|ldeor|ldset)/ { print $8; bad=1 } END { exit bad }'", "check-outlined-atomics", file)

37+- }, libs)

38++ if string=?(arch, "aarch64") {

39++ for-each(fn(lib) { run("vinix-elf-pages", arch, string-append(dest, "/", lib)) }, libs)

release-recipes/reuse.tsv +3 -0

@@ -4,6 +4,7 @@ aarch64 ncurses af06960c8943e24fdeb59c1e56e828fb95fbef75 935eb4b6ad50debef3e9694

44aarch64 openssh-client 1a5c5fc72dfb376fb3dfad8efe6d8317a4364116 993696d6bead7720c823066b9f8f5ef8e0351cdb7b287bea1f3f1a04b800959f -

55x86_64 attr 531f568431d48e58b92aba78e967b072d04e7a32 2d0561ccf3abed59e04add43857597cf3c1ed6ff9382e00f19e208287cd298ad -

66x86_64 bdftopcf f95b117d87d5b2818ea811f9c66f3e0a1da13762 2758236232776c8d8f14bf3254b298fee19faa6b367e0b7acfe36b0be9ba9a2e -

7+x86_64 gcc-libs 9dc6de9af9e346da27b593c74109e3eb040897cd 34ea8cdd36b59c1f274a521e2e4ce04c899ebf4b4f372a4229c0f737824c8ba4 release-recipes/gcc-libs-x86_64-14.2.0-1.patch

78x86_64 git 73ce2171ae35895d87442ccbc8f43104ce63a4fc 3f0cd86ed8595642a7d80946f73589dd01dc0396c7c193bca78cf4731f776382 -

89x86_64 isl25 704e7dee1b6b27840f3eb83a02f28e853435c47f f61d3d79ce052ff555c8315c51cc5d29b0213c691e395ea33d86e13a655f850c -

910x86_64 libfontenc 49e9ab03a3bceb1ace91e09ae1eef27ba692ca24 91179061812afbefdc69ad0a117eeb3755f398d869346fc0e0b64045a757c029 -

@@ -14,9 +15,11 @@ x86_64 libxcvt 1d216756d038c9472c177cf293cdfb258258e64e 5f83456d6c1c0cc3d4cfbe6f

1415x86_64 libxshmfence bcf11589caebb12f81ae9333e428c4981c045c65 60af3411cc8104fa6b81ee32bef35cc5f7e88f25d0b5efe2d72f7a8e5a941da2 -

1516x86_64 linux-headers 40e163fbe8f442c954150bd66797b231b42626f7 4b0c748034c659493b2f7b056d87963f62ec9d0d3caa2f7e349355367ec7e078 -

1617x86_64 mpc b7c1f288cd58534c4d4cf916617c0c6bebafb503 ad9232e41d64cb4a96ccccdce78b849c4619ee5238ed47a6d05a3237e6d8577d -

18+x86_64 mpfr 97be0eae9b34bf5b071170baeb94a5e06cd1daed 7728ee5cee681552df6f20077f1596494d117ad70ff7d10fcb38bc1e24b21711 -

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

1820x86_64 ncurses d56dd35cc6a2594d4987ef21cdbd46f09f4e0b6f a5224bd14481dfa478e949e6706eb884ed74f2ae87c2d7d3c17a9f72290ede90 -

1921x86_64 nettle 31530361438298f32a197e9aea609eca486ee278 c444e10aa7f5a6d22c392cfbc0dfad6a7a49205f0f0d934e58184638f1af21e0 -

2022x86_64 openssh-client 73ce2171ae35895d87442ccbc8f43104ce63a4fc 5cf6a19f948f50ad9e62fc19b6bb63626a6bc91733ab09572188c389dd6f119f -

23+x86_64 vinix-desktop-init 1a282c5c2dbd5f786d720d50ea542b90b78c9bf6 06e74962fa53b0bb4b096d907065ce69ec6fcbe09ec121cb3e5a7faf235c07a8 release-recipes/vinix-desktop-init-x86_64-20261128-1.patch

2124x86_64 xbps 01a9f688e3d53195c8832e15bbec8699b255c8ec 9a22b3966d1b7bb9154abac879a118d77ef8a55d2ecee61ebbfbfad35a4be00c -

2225x86_64 zlib 847b3176d3d6f39478810447f81a13e7bb8a48a2 f0690e2e1258b24fbc4cc47cb89f07f97ab6d79d6542195d3b418d4057238b25 -

release-recipes/vinix-desktop-init-x86_64-20261128-1.patch new file +35 -0

@@ -0,0 +1,35 @@

1+--- a/vinix-desktop-init/PKGBUILD.vile

2++++ b/vinix-desktop-init/PKGBUILD.vile

3+@@ -4 +4 @@

4+-revision := if arm { "7f173671b6d1f1a8ceda2c693eadbb0eb58c4aa4" } else { "c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75" }

5++revision := "c34a6707e1d8d3a23d0b1bfe6e6dbb16290e4f75"

6+@@ -11 +11 @@

7+- #:pkgver, if arm { "20261130" } else { "20261128" },

8++ #:pkgver, "20261128",

9+@@ -26,2 +26,2 @@

10+- list("4ee336414b9b1228be8f4ac8ea691914e71bf5ae34e9db40da66741ea4ffbded",

11+- "84b1cce0288d66b83b3eb663fe80de1a1da2c1d429c002e4aabdf08d009692e4")

12++ list("e57193f3e7f0f6f578c0dae03789bf0616c88c7b1fb87c11b141c760a97cce6e",

13++ "18b5d511cd95487c97e71628a5a778ddf24f961e1108ecbd0bd8e6583a1b50f6")

14+@@ -35,3 +35 @@

15+- host-libraries := get-environment-variable("VINIX_HOST_LIBRARY_PATH")

16+- run("env", string-append("LIBRARY_PATH=", if string?(host-libraries) { host-libraries } else { "" }),

17+- string-append(support, "/run-v-tool.sh"), string-append(init, "/compile_init.v"),

18++ run(string-append(support, "/run-v-tool.sh"), string-append(init, "/compile_init.v"),

19+@@ -39,4 +37 @@

20+- ; The raw syscall implementation supplies its own stdio and memory ABI.

21+- ; Use Clang's freestanding headers for stdint and stddef.

22+- run("clang", "--target=aarch64-linux-none", "-nostdlibinc",

23+- "-nostdlib", "-ffreestanding", "-O2",

24++ run("clang", "--target=aarch64-linux-none", "-nostdlib", "-ffreestanding", "-O2",

25+@@ -46 +41 @@

26+- run("ld.lld", "-m", "aarch64elf", "--nostdlib", "-static", "--gc-sections", "-z", "max-page-size=16384",

27++ run("ld.lld", "-m", "aarch64elf", "--nostdlib", "-static", "--gc-sections",

28+@@ -48,5 +42,0 @@

29+- run("v", "-os", "linux", "-arch", "arm64", "-gc", "none", "-manualfree",

30+- "-d", "no_backtrace", "-d", "no_segfault_handler", "-o", "desktop-watchdog.c",

31+- string-append(init, "/desktopwatch/main.v"))

32+- run("vinix-cc", "-D_GNU_SOURCE", "-O2", "-static", "-fno-stack-protector",

33+- "-o", "desktop-watchdog", "desktop-watchdog.c")

34+@@ -62 +51,0 @@

35+- run("install", "-Dm755", "desktop-watchdog", string-append(pkgdir(), "/usr/libexec/vinix-desktop-watchdog"))