feat(install): write UDIF/DMG-style containers

This commit is contained in:
faumaray committed 2026-12-05 13:31:04 +03:00
1 parent ac08887d8f
commit 1caeab70fa
7 files changed
+213 -4

No files matched your search

+3
View File
@@ -366,6 +366,9 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 136 (Parallel Worker Drain)**: `vbs worker --queue --parallel N` (1..32) runs N concurrent lease/execute loops in one process; the registry leases each queued action to exactly one worker, so actions are never duplicated. `RegistryTests.worker_parallel_drains_queue_without_duplicates` drains two slow actions with two loops, asserting both started exactly once, overlapped in time, and the queue ended empty.
- **Wave 137 (UDIF/DMG-Style Packaging)**: `vbs install --archive FILE --archive-format dmg` writes a UDIF container - the deterministic tar payload followed by a 512-byte `koly` trailer with CRC-32 data/master checksums, segment ID, image variant and sector count. Validated independently: Python's `zlib.crc32` matches the stored checksum and the payload is a valid tar. A mountable macOS image still needs an HFS+/APFS payload writer (macOS-only).
- **Wave 138 (Full CMake File API Reply Set)**: `vbs ide generate` now emits `cmakeFiles-v1` (configure inputs/outputs), `toolchains-v1` (C/CXX compiler identity) and `cache-v2` (build type, compilers, generator, profile) beside `codemodel-v2`, so CMake-aware IDEs (CLion, VS Code CMake Tools) get the complete reply set.
## 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.
+2
View File
@@ -137,4 +137,6 @@ Base HEAD: `fe0d1a6`
| Wave 134 (CDash reporting) | `Report::Cdash` Test.xml + multipart submission; `vbs test --cdash/--cdash-project/--cdash-build/--cdash-output` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E captures the submission, full CTest 8/8) | `src/Report/Cdash.cpp`, `include/Void/Build/Report/Cdash.hpp`, `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 135 (Remote action execution) | Worker fetches input blobs, executes the CAS action spec, stores outputs and submits the result; `--exec-timeout` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E passes, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 136 (Parallel worker drain) | `--parallel N` lease/execute loops; exclusive registry leases prevent duplicates | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E proves overlap and no duplicates, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 137 (UDIF/DMG-style packaging) | `--archive-format dmg`: tar payload + koly trailer with CRC-32 | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; trailer parsed and CRC matches zlib, install test passes, full CTest 8/8) | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 138 (Full CMake File API) | `cmakeFiles-v1`, `toolchains-v1`, `cache-v2` replies | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; IDE E2E passes, full CTest 8/8) | `src/Editor/CompDb.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) |
+17
View File
@@ -1796,6 +1796,23 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
overlapped (real concurrency), and `GET /api/v1/queue` reported `"pending":[]` afterwards.
- Full CTest: **8 / 8 passed** in 303.93 s.
## UDIF/DMG-Style Packaging (GCC 16.2, pin `0002e74`)
- `vbs install --archive demo.dmg --archive-format dmg` produced a 4608-byte file: 4096-byte tar
payload + 512-byte koly trailer.
- Independent Python parse: `koly`, version 4, header 512, `dataForkLength == file-512`,
checksum type 2 with stored `0x5e980f1f` equal to `zlib.crc32(payload)`, sector count 8,
and `ustar` at offset 257 of the payload.
- The install test asserts the same trailer fields and recomputes the CRC in C++ (**passed**,
6.31 s); full CTest **8 / 8** in 308.02 s.
- Not mountable on macOS yet: DiskImageMounter needs an HFS+/APFS payload (macOS-only work).
## Full CMake File API Reply Set (GCC 16.2, pin `0002e74`)
- The reply index now references `codemodel-v2`, `cache-v2`, `cmakeFiles-v1` and `toolchains-v1`
(plus per-target and per-directory files), each parsed back and asserted in
`ide_integration_compdb_build_cpp_and_editor_configs_end_to_end` (**passed**, 3.12 s).
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
+1 -1
View File
@@ -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 (rpm 6.1-validated)**, **WiX source for MSI** (candle/light on Windows), 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)**, **WiX source for MSI** (candle/light on Windows), **UDIF/DMG container** (koly trailer, CRC-32; HFS+ payload is macOS-only) |
| 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 --label`; parallel tests with resource locks and fixtures; CDash submission | - |
| Incremental / cache | compiler depfiles, ccache external | depfiles, ccache | internal caching model | **content-addressed state, immutable snapshots, remote action cache** | scale benchmarks |