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

+2
View File
@@ -308,6 +308,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 107 (CI Workflow Groundwork & RPM Prototype Finding)**: `.github/workflows/ci.yml` gained a sanitizer job (ASan+UBSan configure/build, core-safe suites) and a MinGW+Wine job running the Windows-target regression test, and the formatting job now covers `sdk/`, nested platform dirs, `registry/cli/` and all recipes. The workflow remains a template that has never run on real runners. An RPM prototype (validated with `rpm` 6.1 from `dev cpp-gcc -p rpm`) showed that RPM 6.1 rejects hand-built headers unless the signature-region conventions are exact, so the native RPM generator is deferred rather than shipped unverified.
- **Wave 108 (Native RPM Generator)**: `vbs install --archive FILE --archive-format rpm` writes a real RPM (lead, signature header with header SHA-256, main header with name/version/release/summary/description/build/size/license/group/OS/arch/file metadata/payload tags, and an uncompressed newc cpio payload). Validated with rpm 6.1: `rpm -qip`, `rpm -qlp` and `rpm2cpio | cpio -it` all accept the package; the install test asserts the lead/header magic and cpio payload markers.
## Remaining future scope
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
+1
View File
@@ -111,4 +111,5 @@ Base HEAD: `fe0d1a6`
| Wave 105 (Sanitizer groundwork) | ASan+UBSan build runs core tests clean; found and filed Void/Library#62 (Argparse aliasing UAF) with a de-aliasing workaround | COMPLETE & VERIFIED (core 7/7 under ASan; normal CTest 8/8) | `src/Main.cpp`, `docs/agent-workflow/VERIFICATION.md`, Void/Library#62 |
| Wave 106 (Parser fuzzing) | Deterministic mutation fuzz test over TOML/JSON/lockfile/tar parsers with seed sanity checks; ASan-clean | COMPLETE & VERIFIED (normal build and ASan+UBSan) | `tests/CoreEngineTests.cpp`, docs |
| Wave 107 (CI groundwork + RPM finding) | Sanitizer and MinGW/Wine CI jobs added to the template; RPM prototype investigated with real rpm tooling and deferred | PARTIAL: CI template updated (unverified on runners), RPM generator deferred with recorded evidence | `.github/workflows/ci.yml`, `docs/agent-workflow/STATE.md` |
| Wave 108 (Native RPM generator) | `--archive-format rpm`: lead + signature/main headers + uncompressed cpio payload; validated with rpm 6.1 | COMPLETE & VERIFIED (rpm -qip/-qlp/rpm2cpio accept it; full CTest 8/8) | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
+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