feat(install): generate RPM packages
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 5s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 54s

This commit is contained in:
faumaray committed 2026-12-05 08:47:13 +03:00
1 parent 2b80718f98
commit 3198b32f2b
7 files changed
+365 -82

No files matched your search

+14
View File
@@ -1512,6 +1512,20 @@ ASAN_OPTIONS=detect_leaks=1 UBSAN_OPTIONS=print_stacktrace=1 \
reports.
- Seed sanity assertions ensure the unmutated inputs still parse.
## Native RPM Generator (GCC 16.2, pin `0002e74`)
```sh
vbs install --project <proj> --build-dir <build> --prefix <prefix> \
--package-name CliHiPkg --archive cli_hi.rpm --archive-format rpm
dev cpp-gcc -p rpm -c sh -c 'rpm --dbpath <db> -qip cli_hi.rpm; rpm --dbpath <db> -qlp cli_hi.rpm; rpm2cpio cli_hi.rpm | cpio -it'
```
Observed with rpm 6.1.0:
- `rpm -qip`: `Name: CliHiPkg`, `Version: 0.1.0`, `Release: 1`, `Architecture: x86_64`.
- `rpm -qlp`: all four installed files (`bin/cli_hi`, `share/vbs/CliHiPkg/package.json`, both CMake config files).
- `rpm2cpio | cpio -it`: the payload entries are readable.
- The install test asserts the lead magic, the header magic at offset 96, the package name, the cpio magic, and the `TRAILER!!!` marker. Full CTest: **8 / 8 passed** in 292.72 s.
## RPM Prototype Investigation (GCC 16.2, pin `0002e74`)
With `dev cpp-gcc -p rpm` (rpm 6.1.0, `rpm2cpio`, `rpmbuild`) a hand-built RPM prototype was