fix: close the VBS-side gaps noted on Void/Library#61
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 7s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 57s

This commit is contained in:
faumaray committed 2026-12-05 10:30:57 +03:00
1 parent 4f581d1b51
commit 4d51331777
13 files changed
+158 -14

No files matched your search

+4
View File
@@ -319,6 +319,10 @@ class Dependency {
std::size_t index_;
};
// Value of a `.native_builder({...})` option passed by the consuming project to this
// dependency's build.cpp (exposed as VBS_DEP_OPTION_<NAME>), or an empty string when unset.
[[nodiscard]] std::string dependency_option(std::string_view name);
class Project {
public:
explicit Project(ProfileContext context);
+3
View File
@@ -7,6 +7,7 @@
#include <chrono>
#include <filesystem>
#include <map>
#include <optional>
#include <string>
#include <vector>
@@ -23,6 +24,8 @@ struct FrontendOptions {
std::filesystem::path sdk_source_dir; // Fallback source dir if sdk_library_path absent
std::vector<std::filesystem::path> extra_build_sources; // Explicit --build-source inputs
std::optional<std::filesystem::path> host_compiler;
// Extra environment for the descriptor process (e.g. dependency options for a native dep).
std::map<std::string, std::string, std::less<>> extra_environment;
std::chrono::milliseconds eval_timeout{std::chrono::seconds{30}};
};
+3 -2
View File
@@ -28,8 +28,9 @@ struct InstallOptions {
std::string archive_format{"tar"};
std::string package_description; // Used by package metadata (deb).
std::string maintainer; // Used by package metadata (deb).
// Optional Ed25519 seed file: signs the generated archive and writes
// `<archive>.sha256`, `<archive>.sig` and `<archive>.pub`.
// Optional Ed25519 seed file: signs a canonical `vbs-installer-v1` digest message over the
// generated archive and writes `<archive>.sha256`, `<archive>.sig`, `<archive>.pub` and
// `<archive>.msg` (the exact signed message).
std::optional<std::filesystem::path> signing_seed_path;
};
@@ -35,6 +35,9 @@ struct ProcessRequest {
std::size_t max_stderr_bytes{8ULL * 1024ULL * 1024ULL};
bool fail_on_overflow{false};
std::chrono::milliseconds timeout{0}; // 0 = no timeout
// How long descendants of an exited leader may keep the process group alive before it is
// terminated and reaped. 0 waits indefinitely.
std::chrono::milliseconds descendant_grace{5000};
std::chrono::milliseconds kill_grace{200};
bool search_path{true};
std::function<void(std::string_view)> on_stdout_chunk;