feat(install): generate ZIP and Debian packages
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s

This commit is contained in:
faumaray committed 2026-12-05 05:09:53 +03:00
1 parent a808596462
commit 9509c0691e
8 files changed
+345 -14

No files matched your search

+2
View File
@@ -286,6 +286,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 96 (Wine-First Windows Target Support)**: `discover_and_probe` selects the MinGW-w64 cross toolchain (`x86_64-w64-mingw32-{g++,gcc,ar}`, or `aarch64` for arm64 targets) when the profile targets Windows from a non-Windows host; Windows targets emit PE artifacts (`<name>.exe`, `<name>.dll`); `vbs build|test` accept `--target-os`/`--target-arch`; `vbs test` runs cross-built Windows test binaries under Wine. Verified end to end: a Windows-target project cross-compiles and its test passes under Wine (`FullV1Tests.track_c_windows_target_cross_build_and_wine_test`, skipped when MinGW/Wine are absent).
- **Wave 97 (Package Generators: ZIP & DEB)**: `vbs install --archive FILE --archive-format zip|deb` now supports a stored (uncompressed) deterministic ZIP and a Debian `ar` package (`debian-binary`, `control.tar`, `data.tar` with Package/Version/Architecture/Maintainer/Installed-Size/Description metadata). `dpkg-deb --info/--contents` validates the generated package. Tests assert the ZIP structure and parse/extract the DEB members.
## 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
@@ -100,4 +100,5 @@ Base HEAD: `fe0d1a6`
| Wave 94 (Installer script + IDE install tasks) | `--archive-format sh` self-extracting installer executed in tests; VS Code/Zed install tasks | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install and IDE tests pass, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 95 (Superiority plan) | Wrote `22-superiority-and-gaps.md`: gap inventory, revised platforms (macOS deferred; Windows via MinGW-w64 + Wine; native MSVC deferred), CMake/Meson/build2 parity table, differentiators, priority order, acceptance gates; refreshed stale roadmap statuses | PLAN WRITTEN (implementation pending) | `docs/roadmap/22-superiority-and-gaps.md`, `docs/roadmap/{README,20,21}.md`, `STATE.md` |
| Wave 96 (Wine-first Windows target) | MinGW-w64 cross discovery, PE artifact naming, `--target-os/--target-arch`, Wine test runner | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Windows target cross-build + Wine test pass; full CTest 8/8) | `src/Toolchain/Driver.cpp`, `src/Graph/Graph.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 97 (ZIP & DEB generators) | `--archive-format zip|deb`: stored ZIP and Debian ar package with metadata; tested structurally and validated with real `dpkg-deb` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `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) |
+20
View File
@@ -1369,6 +1369,26 @@ dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc -p wine64 -c build/pinned/bin/vbs_v1
(8.91 s); it skips when MinGW or Wine is absent.
- Full CTest: **8 / 8 passed** in 279.16 s.
## Package Generators: Stored ZIP & DEB (GCC 16.2, pin `0002e74`)
```sh
dev cpp-gcc -c cmake --build build/pinned --parallel 8
dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --filter foreign_cmake_meson_providers_bridge_and_relocatable_install --no-color
dev cpp-gcc -p dpkg -c sh -c 'dpkg-deb --info cli_hi.deb; dpkg-deb --contents cli_hi.deb'
dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
```
- `--archive-format zip` produces a stored ZIP containing `bin/cli_hi` and
`share/vbs/CliHiPkg/package.json` with valid local-header/EOCD signatures.
- `--archive-format deb` produces an `ar` package whose first member is `debian-binary` (`2.0\n`),
followed by `control.tar` and `data.tar`; the test extracts both and checks the control fields
and `bin/cli_hi`.
- External validation with real Debian tooling (`dpkg-deb` from `dev cpp-gcc -p dpkg`):
`--info` reports `Package: CliHiPkg`, `Version: 0.1.0`, `Architecture: amd64`, and the
Maintainer/Installed-Size fields; `--contents` lists `bin/cli_hi`, the CMake config files, and
the native package metadata.
- Install test: **passed** (6.45 s); full CTest: **8 / 8 passed** in 282.16 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`, SBOM, signing | ZIP, DEB, RPM, MSI/DMG-style, package metadata + signing |
| 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, signing | RPM, MSI/DMG-style, package signing |
| 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 | fixtures, labels, locks, timeouts, JUnit |
| Incremental / cache | compiler depfiles, ccache external | depfiles, ccache | internal caching model | **content-addressed state, immutable snapshots, remote action cache** | scale benchmarks |