feat(deps): resolve pkg-config modules
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 4s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / fuzz-clang (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 4s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / fuzz-clang (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s
This commit is contained in:
1 parent
f8e0036b37
commit
ce041ace07
13 files changed
+663
-12
No files matched your search
@@ -371,6 +371,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 139 (Installable VSIX for the VS Code Plugin)**: `vbs ide plugin --editor vscode --vsix FILE` now packages the generated extension as a real `.vsix` (ZIP with `extension.vsixmanifest`, `[Content_Types].xml` and the sources under `extension/`), which `code --install-extension` accepts. The stored-ZIP writer moved from the installer into `Package::create_stored_zip` so both share it. The packaged extension's own test passes when extracted, and the C++ test parses the ZIP central directory and verifies every CRC.
|
||||
|
||||
- **Wave 140 (pkg-config Discovery)**: `p.dependency("zlib").pkgconfig("zlib >= 1.2")` resolves system libraries from `.pc` files (parsed directly - no `pkg-config` executable needed), honoring `PKG_CONFIG_PATH`/`PKG_CONFIG_LIBDIR` plus conventional prefixes. Variables (`${prefix}`, `${pcfiledir}`, nested) expand, `Requires` chains merge flags, and RPM-style version comparison enforces constraints at the root and in the chain. Cflags become include dirs/defines/compile options and Libs become link options or library paths. The dependency is recorded in `vbs.lock` as `pkgconfig` and never fetched. `FullV1Tests.pkgconfig_dependency_resolves_flags_requires_and_versions` builds and runs a real app against a generated `.pc` + archive, and asserts both version-mismatch errors.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -140,4 +140,5 @@ Base HEAD: `fe0d1a6`
|
||||
| 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 |
|
||||
| Wave 139 (VSIX packaging) | `vbs ide plugin --vsix FILE`; shared `Package::create_stored_zip` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Python zipfile validates the VSIX, packaged harness passes under Node, C++ test checks CRCs, full CTest 8/8) | `src/Editor/CompDb.cpp`, `src/Package/Archive.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 140 (pkg-config discovery) | `.pkgconfig(spec)` dependency, `.pc` parser with variables/Requires/version compare, lock entries | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E builds/runs and checks version errors, full CTest 8/8) | `include/Void/Build.hpp`, `sdk/Build.cpp`, `src/Provider/PkgConfig.cpp`, `src/Graph/Graph.cpp`, `src/Package/Resolver.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) |
|
||||
@@ -1825,6 +1825,17 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
recomputes each entry's CRC-32 and asserts the layout (**passed**, 34 ms).
|
||||
- Full CTest: **8 / 8 passed** in 305.48 s.
|
||||
|
||||
## pkg-config Discovery (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `p.dependency("mylib").pkgconfig("mylib >= 1.0")`: `.pc` files are located in
|
||||
`PKG_CONFIG_PATH` then `PKG_CONFIG_LIBDIR` (or conventional prefixes), parsed with variable
|
||||
expansion, `Requires` recursion and RPM-style version comparison.
|
||||
- `FullV1Tests.pkgconfig_dependency_resolves_flags_requires_and_versions` **passed** (5.60 s):
|
||||
a generated `mylib.pc` (with `Requires: child >= 0.5`) and a real `libmylib.a` let an app
|
||||
including headers from both modules build and run (`app` exit 0); `mylib >= 2.0` fails with
|
||||
"is required, but version 1.2.3 is installed" and `child >= 0.8` fails through the chain.
|
||||
- Full CTest: **8 / 8 passed** in 311.96 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).
|
||||
|
||||
@@ -49,7 +49,7 @@ Concrete work this implies:
|
||||
| Capability | CMake | Meson | build2 *(unverified)* | VBS now | Planned work |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| Platforms | Windows, macOS, Linux, BSD, cross | same | same | Linux | Wine-first Windows (§2); macOS deferred |
|
||||
| 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 |
|
||||
| Languages | C, C++, CUDA, Fortran, ObjC, ASM, HIP… | C, C++, Rust, D, Fortran, Java… | C/C++ focused | C, C++ | ASM and shader languages (GLSL/HLSL/Slang) |
|
||||
| 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), **UDIF/DMG container** (koly trailer, CRC-32; HFS+ payload is macOS-only) |
|
||||
@@ -84,6 +84,7 @@ Concrete work this implies:
|
||||
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
|
||||
8. CI on real runners, sanitizer jobs (**sanitizer build run done**), parser fuzzing (**deterministic mutation harness and a Clang/libFuzzer target done**).
|
||||
9. Remote execution workers (**registry worker/lease/result protocol, queue, remote action execution and parallel workers done**; cross-machine orchestration remains).
|
||||
10. pkg-config discovery (the top adoption blocker, §8.1) and ASM/shader language support.
|
||||
|
||||
## 6. Observed baseline (2026-12-05, x86_64, GCC 16.2, Debug, `benchmarks/compare.sh 20`)
|
||||
|
||||
@@ -109,21 +110,18 @@ first, then what makes VBS *better* rather than merely equal.
|
||||
|
||||
### 8.1 Adoption blockers
|
||||
|
||||
1. **pkg-config discovery.** CMake (`FindPkgConfig`/`find_package`) and Meson
|
||||
1. **pkg-config discovery - done (Wave 140).** `Dependency::pkgconfig(spec)` resolves `.pc` modules into imported targets. Originally: CMake (`FindPkgConfig`/`find_package`) and Meson
|
||||
(`dependency()`, auto method order `pkg-config` → `cmake` → framework) both find
|
||||
system-installed libraries. VBS has registry/git/path/CMake/Meson/Conan providers but no
|
||||
pkg-config lookup, so most existing Linux projects cannot be built as-is. Add
|
||||
`.pkgconfig("libfoo >= 1.2")` plus a `.pc` search path in profiles, resolved into an
|
||||
imported target.
|
||||
2. **Language breadth.** CMake supports C, C++, CUDA, Fortran, ObjC, ASM, HIP; Meson C, C++,
|
||||
Rust, D, Fortran, Java. VBS is C/C++ only. Assembly is the cheapest high-value addition
|
||||
(`.s`, `.S` with the C preprocessor), then CUDA.
|
||||
3. **Platform breadth.** Native MSVC and Apple Clang/macOS remain deferred by decision; MinGW
|
||||
cross + Wine is the current Windows story. This stays the biggest "can I use it at work?"
|
||||
blocker outside Linux.
|
||||
4. **Credibility evidence.** CI workflows have never run on a real runner, and there is no
|
||||
10k-target scaling benchmark yet (CMake/Meson handle very large projects daily).
|
||||
5. **Package-generator parity.** CPack also ships NuGet, PKG/productbuild, APK and IFW
|
||||
2. **Language breadth: ASM and shader languages.** VBS is C/C++ only. Add assembly (`.s`,
|
||||
`.S` with the C preprocessor) and the shader languages used by Void projects (GLSL, HLSL,
|
||||
Slang) through pluggable shader-compiler toolchains with capability probes.
|
||||
3. **Platform breadth - deferred.** Native MSVC and Apple Clang/macOS stay deferred by
|
||||
decision; MinGW cross + Wine is the current Windows story.
|
||||
4. **Package-generator parity.** CPack also ships NuGet, PKG/productbuild, APK and IFW
|
||||
installers; VBS has tar, `sh`, ZIP, DEB, RPM, WiX and UDIF. NuGet and PKG are the next
|
||||
useful ones.
|
||||
|
||||
|
||||
Reference in new issue
Block a user