feat(install): generate RPM packages
This commit is contained in:
1 parent
2b80718f98
commit
3198b32f2b
7 files changed
+365
-82
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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) |
|
||||
@@ -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
|
||||
|
||||
@@ -52,7 +52,7 @@ Concrete work this implies:
|
||||
| Languages | C, C++, CUDA, Fortran, ObjC, ASM, HIP… | C, C++, Rust, D, Fortran, Java… | C/C++ focused | C, C++ | ASM/CUDA/ObjC or a documented extension API |
|
||||
| Toolchains | MSVC, clang-cl, GCC, Clang, Apple, many | GCC, Clang, MSVC, many | GCC, Clang, MSVC | GCC, Clang (Linux) | MinGW target; MSVC deferred |
|
||||
| Package/registry | External (vcpkg, Conan, FetchContent) | wrapdb, subprojects | cppget.org / brep | **Built-in registry + solver + lock + binary variants + signatures + SBOM** | federation, mirrors, key distribution |
|
||||
| Install/package | `install()`, `install(EXPORT)`, CPack (TGZ/ZIP/DEB/RPM/WIX/DMG/NuGet/APK…) | `install_data`, `install_headers`, dist scripts | install module | prefix staging, components, relocatable CMake + native exports, tar, self-extracting `sh`, **stored ZIP**, **DEB (dpkg-validated)**, SBOM, **Ed25519-signed archives with checksums** | RPM (deferred: rpm 6.1 rejects hand-built headers without exact signature-region semantics; tooling is available via `dev cpp-gcc -p rpm`), MSI/DMG-style |
|
||||
| Install/package | `install()`, `install(EXPORT)`, CPack (TGZ/ZIP/DEB/RPM/WIX/DMG/NuGet/APK…) | `install_data`, `install_headers`, dist scripts | install module | prefix staging, components, relocatable CMake + native exports, tar, self-extracting `sh`, **stored ZIP**, **DEB (dpkg-validated)**, SBOM, **Ed25519-signed archives with checksums** | **RPM (rpm 6.1-validated)**, MSI/DMG-style |
|
||||
| IDE integration | File API, presets, every IDE | `meson-info` introspection | limited | `vbs ide generate/query`, CompDB, daemon protocol | File API shim, `CMakePresets.json` import, plugins |
|
||||
| Test runner | CTest: fixtures, labels, resource locks, timeouts, JUnit/CDash | `meson test`: suites, timeouts, JUnit | test module | `VOID_TEST` runner; `vbs test --junit --test-timeout` | fixtures, labels, resource locks, CDash |
|
||||
| Incremental / cache | compiler depfiles, ccache external | depfiles, ccache | internal caching model | **content-addressed state, immutable snapshots, remote action cache** | scale benchmarks |
|
||||
|
||||
Reference in new issue
Block a user