VoidLibrary is the first planned migration target onto VoidBuildSystem (VBS), but it has no build.cpp of its own; it can only be built natively through VBS's internal recipes/VoidLibrary/ recipe.
Verified
In a separate clone at 0002e74, a build.cpp using the native module closure built and ran a smoke test with VBS alone (no CMake): vbs build produced the Void module archives plus void_smoke, and vbs test reported PASSED 'void_smoke'.
Missing
No in-repo build.cpp / build.profiles.cpp.
The native module recipe covers only a subset of the ~57 modules (it lacks descriptions for Net, Sqlite, Stacktrace, MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, Service*, ShortUrl*, Storage, Update, Observability*, Discovery*, Binary, Containers, Fsm, IO, IPC, Script, and others).
Modules needing external dependencies (Boost/OpenSSL for Net, SQLite3 for Sqlite, Boost+dl for Stacktrace) are not declared natively.
Request
Add a first-class VBS build description to VoidLibrary covering all modules (with optional external dependencies detected), so it can build, test, install and package itself with vbs.
Acceptance
vbs build and vbs test succeed in a clean VoidLibrary checkout.
vbs install --prefix ... produces a relocatable prefix and a signed installer archive.
The CMake build stays as the bootstrap path until VBS is available everywhere.
## Context
VoidLibrary is the first planned migration target onto VoidBuildSystem (VBS), but it has no `build.cpp` of its own; it can only be built natively through VBS's internal `recipes/VoidLibrary/` recipe.
## Verified
In a separate clone at `0002e74`, a `build.cpp` using the native module closure built and ran a smoke test with VBS alone (no CMake): `vbs build` produced the Void module archives plus `void_smoke`, and `vbs test` reported `PASSED 'void_smoke'`.
## Missing
- No in-repo `build.cpp` / `build.profiles.cpp`.
- The native module recipe covers only a subset of the ~57 modules (it lacks descriptions for Net, Sqlite, Stacktrace, MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, Service*, ShortUrl*, Storage, Update, Observability*, Discovery*, Binary, Containers, Fsm, IO, IPC, Script, and others).
- Modules needing external dependencies (Boost/OpenSSL for Net, SQLite3 for Sqlite, Boost+dl for Stacktrace) are not declared natively.
## Request
Add a first-class VBS build description to VoidLibrary covering all modules (with optional external dependencies detected), so it can build, test, install and package itself with `vbs`.
## Acceptance
- `vbs build` and `vbs test` succeed in a clean VoidLibrary checkout.
- `vbs install --prefix ...` produces a relocatable prefix and a signed installer archive.
- The CMake build stays as the bootstrap path until VBS is available everywhere.
The native module table now also describes Containers, Binary, IO, Service, ObservabilityHooks, Resilience, Storage, IPC and Fsm (all pure C++, no external deps).
In a separate clone at 0002e74, vbs build compiled and archived all of them (18 actions: libVoid_Containers.a … libVoid_IPC.a) alongside the earlier closure (Configuration, Text, Unicode, Async, Algorithms, Crypto, Archive, Testing, Log, System, Data, Memory, Time, …), with no CMake involved.
Still missing for a complete in-repo description:
modules with external dependencies: Net (Boost + OpenSSL), Sqlite (SQLite3), Stacktrace (Boost + dl), Script (Lua), ShortUrl* and others;
table entries for the remaining modules (MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, ServicePlugin, Update, Discovery*, …).
The reusable migration assets live in VoidBuildSystem contrib/voidlibrary-migration/.
Migration trial extended (VoidBuildSystem side):
- The native module table now also describes Containers, Binary, IO, Service, ObservabilityHooks, Resilience, Storage, IPC and Fsm (all pure C++, no external deps).
- In a separate clone at `0002e74`, `vbs build` compiled and archived all of them (18 actions: libVoid_Containers.a … libVoid_IPC.a) alongside the earlier closure (Configuration, Text, Unicode, Async, Algorithms, Crypto, Archive, Testing, Log, System, Data, Memory, Time, …), with no CMake involved.
Still missing for a complete in-repo description:
- modules with external dependencies: Net (Boost + OpenSSL), Sqlite (SQLite3), Stacktrace (Boost + dl), Script (Lua), ShortUrl* and others;
- table entries for the remaining modules (MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, ServicePlugin, Update, Discovery*, …).
The reusable migration assets live in VoidBuildSystem `contrib/voidlibrary-migration/`.
Externally dependent modules also build natively now:
Net (with -p openssl -p boost) and Sqlite (with -p sqlite) were added to the module table and built by vbs build in the separate clone: 13 actions including libVoid_Net.a and libVoid_Sqlite.a (Http, HttpServer, Server, Socket, Url, WebSocket, Sqlite.cpp).
The embedding build links the system libraries (-lssl -lcrypto -lboost_url -ldl for Net, -lsqlite3 for Sqlite) on those module targets; no CMake is involved.
So the pure + external core modules are all covered by the native description. What remains for an in-repo build.cpp is mostly the higher-level modules (MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, ServicePlugin, Update, Discovery*, ShortUrl*, …), a tests/install/packaging section, and the committed description itself.
Externally dependent modules also build natively now:
- `Net` (with `-p openssl -p boost`) and `Sqlite` (with `-p sqlite`) were added to the module table and built by `vbs build` in the separate clone: 13 actions including `libVoid_Net.a` and `libVoid_Sqlite.a` (Http, HttpServer, Server, Socket, Url, WebSocket, Sqlite.cpp).
- The embedding build links the system libraries (`-lssl -lcrypto -lboost_url -ldl` for Net, `-lsqlite3` for Sqlite) on those module targets; no CMake is involved.
So the pure + external core modules are all covered by the native description. What remains for an in-repo build.cpp is mostly the higher-level modules (MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, ServicePlugin, Update, Discovery*, ShortUrl*, …), a tests/install/packaging section, and the committed description itself.
Full native build now verified in a separate clone at 0002e74:
vbs build with -p openssl -p boost -p sqlite -p libsodium -p lua completed the entire module set (57 modules): exit 0, 134 actions, 0 cached, producing 37 module archives (libVoid_*.a) and the smoke executable, which runs successfully. No CMake was involved.
This includes Net, Sqlite, Security/SecurityAsync (libsodium), Script (Lua), Stacktrace (Boost stacktrace + dl), SystemAsync, CryptoAsync, MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, ServicePlugin, ShortUrl*, Update, Discovery*, Observability*, Storage, IPC, Fsm, and the rest.
So the description covers the whole library. What is still missing is the in-repo build.cpp itself (plus tests/install/packaging), tracked here.
Full native build now verified in a separate clone at `0002e74`:
- `vbs build` with `-p openssl -p boost -p sqlite -p libsodium -p lua` completed the **entire module set** (57 modules): **exit 0, 134 actions, 0 cached**, producing 37 module archives (`libVoid_*.a`) and the smoke executable, which runs successfully. No CMake was involved.
- This includes Net, Sqlite, Security/SecurityAsync (libsodium), Script (Lua), Stacktrace (Boost stacktrace + dl), SystemAsync, CryptoAsync, MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, ServicePlugin, ShortUrl*, Update, Discovery*, Observability*, Storage, IPC, Fsm, and the rest.
So the description covers the whole library. What is still missing is the in-repo `build.cpp` itself (plus tests/install/packaging), tracked here.
Progress in f982049 on main: added a tracked root build.cpp (and un-ignored build.cpp/build.profiles.cpp in .gitignore). It declares all 57 modules with their internal dependency closure, external deps detected from <NAME>_ROOT/<NAME>_INCLUDE_DIR/<NAME>_LIBRARY_DIR or conventional prefixes, optional OpenSSL/LibArchive/Lua backends, install rules, the Void::Testing suites (registration units generated in build.cpp), helper executables and plugin/C-ABI fixtures.
Verified with vbs on GCC 16:
vbs build: all 57 module targets build (138 actions).
vbs test -t VoidTests: 1,949 cases discovered, 1,924 pass, 23 skipped, 2 fail. The two failures (system_terminate_reaps_entire_process_group_after_leader_exits, binary_session_descendant_held_pipe_times_out_and_cleans_up) pass when run outside vbs test; under vbs test the terminate() wait times out because orphaned descendants are reparented to the vbs process and stay zombies in the process group. Needs VBS to reap orphans while supervising the test, or a terminate() that treats a zombie-only group as gone.
vbs install --prefix ... --archive ...: 332 files installed to a relocatable prefix and an installer tar produced. Signed archive (--signing-key) fails because VBS caps a file read at 16 MiB and the debug installer archive is 193 MiB.
Also note VOID_ENABLED_MODULES passed through .native_builder(options) is not visible to build.cpp; it reads the env var of the same name. Leaving this open for the VBS-side fixes.
Progress in f982049 on `main`: added a tracked root `build.cpp` (and un-ignored `build.cpp`/`build.profiles.cpp` in `.gitignore`). It declares all 57 modules with their internal dependency closure, external deps detected from `<NAME>_ROOT`/`<NAME>_INCLUDE_DIR`/`<NAME>_LIBRARY_DIR` or conventional prefixes, optional OpenSSL/LibArchive/Lua backends, install rules, the `Void::Testing` suites (registration units generated in build.cpp), helper executables and plugin/C-ABI fixtures.
Verified with `vbs` on GCC 16:
- `vbs build`: all 57 module targets build (138 actions).
- `vbs test -t VoidTests`: 1,949 cases discovered, 1,924 pass, 23 skipped, 2 fail. The two failures (`system_terminate_reaps_entire_process_group_after_leader_exits`, `binary_session_descendant_held_pipe_times_out_and_cleans_up`) pass when run outside `vbs test`; under `vbs test` the `terminate()` wait times out because orphaned descendants are reparented to the `vbs` process and stay zombies in the process group. Needs VBS to reap orphans while supervising the test, or a terminate() that treats a zombie-only group as gone.
- `vbs install --prefix ... --archive ...`: 332 files installed to a relocatable prefix and an installer tar produced. Signed archive (`--signing-key`) fails because VBS caps a file read at 16 MiB and the debug installer archive is 193 MiB.
Also note `VOID_ENABLED_MODULES` passed through `.native_builder(options)` is not visible to build.cpp; it reads the env var of the same name. Leaving this open for the VBS-side fixes.
The three VBS-side gaps noted here are fixed in VoidBuildSystem 4d51331:
Orphan reaping during test supervision - ProcessRequest::descendant_grace (default 5 s) bounds the post-leader group drain and the group is reaped until no children remain; a no-timeout regression case passes.
16 MiB signing read limit - installer archives are signed over a short canonical vbs-installer-v1\n<sha256>\n message (digest streamed via sha256_file_hex, <archive>.msg written) instead of the archive bytes.
native_builder options through to build.cpp - .native_builder({...}) options reach the dependency's description as VBS_DEP_OPTION_<NAME> (and VBS_DEP_NAME), readable with Void::Build::dependency_option(name).
Full CTest: 8/8. The in-repo build.cpp remains the open item here.
The three VBS-side gaps noted here are fixed in VoidBuildSystem `4d51331`:
1. **Orphan reaping during test supervision** - `ProcessRequest::descendant_grace` (default 5 s) bounds the post-leader group drain and the group is reaped until no children remain; a no-timeout regression case passes.
2. **16 MiB signing read limit** - installer archives are signed over a short canonical `vbs-installer-v1\n<sha256>\n` message (digest streamed via `sha256_file_hex`, `<archive>.msg` written) instead of the archive bytes.
3. **native_builder options through to build.cpp** - `.native_builder({...})` options reach the dependency's description as `VBS_DEP_OPTION_<NAME>` (and `VBS_DEP_NAME`), readable with `Void::Build::dependency_option(name)`.
Full CTest: 8/8. The in-repo build.cpp remains the open item here.
A first in-repo build description is now on branch build-vbs (pushed from a verified clone at 0002e74):
build.cpp - native VBS description covering all 57 modules (module closure in build-support/vl/), linking the external libraries (-lssl -lcrypto -lboost_url -ldl, -lsqlite3, -lsodium, -llua, -lboost_stacktrace_addr2line).
build-support/vl/VoidLibraryModules.{hpp,cpp} - the module table + target declaration.
tests/vl/smoke.cpp - a runtime smoke test linked against the built modules.
Verified in that clone with dev cpp-gcc -p openssl -p boost -p sqlite -p libsodium -p lua: vbs build completed the whole library (134 actions, 37 module archives), and vbs test --target void_smoke passed.
A first in-repo build description is now on branch `build-vbs` (pushed from a verified clone at `0002e74`):
- `build.cpp` - native VBS description covering all 57 modules (module closure in `build-support/vl/`), linking the external libraries (`-lssl -lcrypto -lboost_url -ldl`, `-lsqlite3`, `-lsodium`, `-llua`, `-lboost_stacktrace_addr2line`).
- `build-support/vl/VoidLibraryModules.{hpp,cpp}` - the module table + target declaration.
- `tests/vl/smoke.cpp` - a runtime smoke test linked against the built modules.
Verified in that clone with `dev cpp-gcc -p openssl -p boost -p sqlite -p libsodium -p lua`: `vbs build` completed the whole library (134 actions, 37 module archives), and `vbs test --target void_smoke` passed.
Open PR: https://git.faumaray.com/Void/Library/pulls/new/build-vbs - remaining work is CI, install/packaging rules, and profile definitions.
vbs test -t VoidTests: PASSED, full suite (1,950 cases incl. the new regression test), 0 failures. The two process-group tests now pass because System: treat zombie-only process groups as dead (c085822) stops is_process_group_alive() counting zombies held by a subreaper ancestor.
vbs install --prefix ... --archive ... --signing-key ...: 333 files staged to a relocatable prefix, installer tar plus .sha256, .msg, .sig, .pub produced (throwaway key).
The CMake build remains the bootstrap path.
The build-vbs branch/PR #64 is superseded by this implementation; it is being closed with the smoke-test-only description.
Acceptance is now met on `main` (c085822):
- `vbs build`: all 57 modules build on GCC 16.
- `vbs test -t VoidTests`: PASSED, full suite (1,950 cases incl. the new regression test), 0 failures. The two process-group tests now pass because `System: treat zombie-only process groups as dead` (c085822) stops `is_process_group_alive()` counting zombies held by a subreaper ancestor.
- `vbs install --prefix ... --archive ... --signing-key ...`: 333 files staged to a relocatable prefix, installer tar plus `.sha256`, `.msg`, `.sig`, `.pub` produced (throwaway key).
- The CMake build remains the bootstrap path.
The `build-vbs` branch/PR #64 is superseded by this implementation; it is being closed with the smoke-test-only description.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context
VoidLibrary is the first planned migration target onto VoidBuildSystem (VBS), but it has no
build.cppof its own; it can only be built natively through VBS's internalrecipes/VoidLibrary/recipe.Verified
In a separate clone at
0002e74, abuild.cppusing the native module closure built and ran a smoke test with VBS alone (no CMake):vbs buildproduced the Void module archives plusvoid_smoke, andvbs testreportedPASSED 'void_smoke'.Missing
build.cpp/build.profiles.cpp.Request
Add a first-class VBS build description to VoidLibrary covering all modules (with optional external dependencies detected), so it can build, test, install and package itself with
vbs.Acceptance
vbs buildandvbs testsucceed in a clean VoidLibrary checkout.vbs install --prefix ...produces a relocatable prefix and a signed installer archive.Migration trial extended (VoidBuildSystem side):
0002e74,vbs buildcompiled and archived all of them (18 actions: libVoid_Containers.a … libVoid_IPC.a) alongside the earlier closure (Configuration, Text, Unicode, Async, Algorithms, Crypto, Archive, Testing, Log, System, Data, Memory, Time, …), with no CMake involved.Still missing for a complete in-repo description:
The reusable migration assets live in VoidBuildSystem
contrib/voidlibrary-migration/.Externally dependent modules also build natively now:
Net(with-p openssl -p boost) andSqlite(with-p sqlite) were added to the module table and built byvbs buildin the separate clone: 13 actions includinglibVoid_Net.aandlibVoid_Sqlite.a(Http, HttpServer, Server, Socket, Url, WebSocket, Sqlite.cpp).-lssl -lcrypto -lboost_url -ldlfor Net,-lsqlite3for Sqlite) on those module targets; no CMake is involved.So the pure + external core modules are all covered by the native description. What remains for an in-repo build.cpp is mostly the higher-level modules (MCP, RPC, Messaging*, Plugin, Runtime, Scheduler*, Security*, ServicePlugin, Update, Discovery*, ShortUrl*, …), a tests/install/packaging section, and the committed description itself.
Full native build now verified in a separate clone at
0002e74:vbs buildwith-p openssl -p boost -p sqlite -p libsodium -p luacompleted the entire module set (57 modules): exit 0, 134 actions, 0 cached, producing 37 module archives (libVoid_*.a) and the smoke executable, which runs successfully. No CMake was involved.So the description covers the whole library. What is still missing is the in-repo
build.cppitself (plus tests/install/packaging), tracked here.Progress in
f982049onmain: added a tracked rootbuild.cpp(and un-ignoredbuild.cpp/build.profiles.cppin.gitignore). It declares all 57 modules with their internal dependency closure, external deps detected from<NAME>_ROOT/<NAME>_INCLUDE_DIR/<NAME>_LIBRARY_DIRor conventional prefixes, optional OpenSSL/LibArchive/Lua backends, install rules, theVoid::Testingsuites (registration units generated in build.cpp), helper executables and plugin/C-ABI fixtures.Verified with
vbson GCC 16:vbs build: all 57 module targets build (138 actions).vbs test -t VoidTests: 1,949 cases discovered, 1,924 pass, 23 skipped, 2 fail. The two failures (system_terminate_reaps_entire_process_group_after_leader_exits,binary_session_descendant_held_pipe_times_out_and_cleans_up) pass when run outsidevbs test; undervbs testtheterminate()wait times out because orphaned descendants are reparented to thevbsprocess and stay zombies in the process group. Needs VBS to reap orphans while supervising the test, or a terminate() that treats a zombie-only group as gone.vbs install --prefix ... --archive ...: 332 files installed to a relocatable prefix and an installer tar produced. Signed archive (--signing-key) fails because VBS caps a file read at 16 MiB and the debug installer archive is 193 MiB.Also note
VOID_ENABLED_MODULESpassed through.native_builder(options)is not visible to build.cpp; it reads the env var of the same name. Leaving this open for the VBS-side fixes.The three VBS-side gaps noted here are fixed in VoidBuildSystem
4d51331:ProcessRequest::descendant_grace(default 5 s) bounds the post-leader group drain and the group is reaped until no children remain; a no-timeout regression case passes.vbs-installer-v1\n<sha256>\nmessage (digest streamed viasha256_file_hex,<archive>.msgwritten) instead of the archive bytes..native_builder({...})options reach the dependency's description asVBS_DEP_OPTION_<NAME>(andVBS_DEP_NAME), readable withVoid::Build::dependency_option(name).Full CTest: 8/8. The in-repo build.cpp remains the open item here.
A first in-repo build description is now on branch
build-vbs(pushed from a verified clone at0002e74):build.cpp- native VBS description covering all 57 modules (module closure inbuild-support/vl/), linking the external libraries (-lssl -lcrypto -lboost_url -ldl,-lsqlite3,-lsodium,-llua,-lboost_stacktrace_addr2line).build-support/vl/VoidLibraryModules.{hpp,cpp}- the module table + target declaration.tests/vl/smoke.cpp- a runtime smoke test linked against the built modules.Verified in that clone with
dev cpp-gcc -p openssl -p boost -p sqlite -p libsodium -p lua:vbs buildcompleted the whole library (134 actions, 37 module archives), andvbs test --target void_smokepassed.Open PR: https://git.faumaray.com/Void/Library/pulls/new/build-vbs - remaining work is CI, install/packaging rules, and profile definitions.
Acceptance is now met on
main(c085822):vbs build: all 57 modules build on GCC 16.vbs test -t VoidTests: PASSED, full suite (1,950 cases incl. the new regression test), 0 failures. The two process-group tests now pass becauseSystem: treat zombie-only process groups as dead(c085822) stopsis_process_group_alive()counting zombies held by a subreaper ancestor.vbs install --prefix ... --archive ... --signing-key ...: 333 files staged to a relocatable prefix, installer tar plus.sha256,.msg,.sig,.pubproduced (throwaway key).The
build-vbsbranch/PR #64 is superseded by this implementation; it is being closed with the smoke-test-only description.