From 6fe31ebf5644b860cdf531c725f282965da77140 Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sun, 6 Dec 2026 14:20:44 +0300 Subject: [PATCH] chore(deps): bump VoidLibrary to 1b194734 The new pin makes the dependency detection and pthread flags target-aware (Void/Library#67, #68), so cross-building for Windows no longer picks up host Boost/OpenSSL headers or -pthread. Link ws2_32 publicly in the VBS description: private link options of a static library never reach the final link. Verified: Linux suite 8/8; the self-hosted Windows-target install now succeeds in an Arch container (MinGW-w64 GCC 16). --- CMakeLists.txt | 2 +- build.cpp | 5 +++-- tests/DescribeContracts.cmake | 2 +- tests/ExampleContexts.cpp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6444a1..2d4330a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ endif() option(VBS_BUILD_TESTS "Build declaration SDK and native engine test suites" ON) option(VBS_BUILD_BENCHMARKS "Build reproducible VBS benchmark harness" ON) set(VBS_VOID_SOURCE_DIR "" CACHE PATH "Development-only VoidLibrary source override (bypasses pin)") -set(VBS_VOID_REVISION "de1fdcda72ddd6ac069fba433b13f643327efa3f") +set(VBS_VOID_REVISION "1b1947340f8080dbf457d4218cbbee1743f8438d") if(WIN32) # Target Windows 10 APIs: MinGW headers only declare e.g. DUPLICATE_EXTENTS_DATA # (used by VoidLibrary's reflink copy) at a modern _WIN32_WINNT/NTDDI_VERSION. diff --git a/build.cpp b/build.cpp index 45e0a7b..4713039 100644 --- a/build.cpp +++ b/build.cpp @@ -23,7 +23,7 @@ void build(Void::Build::Project &project) { auto library = project.dependency("VoidLibrary"); library .git("https://git.faumaray.com/Void/VoidLibrary.git", - Void::Build::Commit{"de1fdcda72ddd6ac069fba433b13f643327efa3f"}) + Void::Build::Commit{"1b1947340f8080dbf457d4218cbbee1743f8438d"}) .native_builder({{"VOID_ENABLED_MODULES", "Configuration;Text;Unicode;Async;Algorithms;Crypto;Archive;Testing;Log"}, // Only the Testing library is needed, not VoidLibrary's own test @@ -67,7 +67,8 @@ void build(Void::Build::Project &project) { .link(library.target("Void::Log"), Void::Build::Visibility::Public); if (targets_windows(ctx)) { // Winsock for the registry client and the native Windows HTTP fallbacks. - core.link_option("-lws2_32"); + // Public: link options of a static library do not reach the final link otherwise. + core.link_option("-lws2_32", Void::Build::Visibility::Public); } BuildSupport::compiler_warnings(core, ctx); diff --git a/tests/DescribeContracts.cmake b/tests/DescribeContracts.cmake index 706fafc..743f87e 100644 --- a/tests/DescribeContracts.cmake +++ b/tests/DescribeContracts.cmake @@ -76,7 +76,7 @@ foreach(profile IN ITEMS debug release) endif() endforeach() expect_json(git dependencies 0 source kind) - expect_json(de1fdcda72ddd6ac069fba433b13f643327efa3f dependencies 0 source revision) + expect_json(1b1947340f8080dbf457d4218cbbee1743f8438d dependencies 0 source revision) expect_json(native dependencies 0 builder) string(JSON option_type TYPE "${graph}" dependencies 0 options BUILD_SHARED_LIBS) if(NOT option_type STREQUAL "BOOLEAN") diff --git a/tests/ExampleContexts.cpp b/tests/ExampleContexts.cpp index ee23d43..b6905b9 100644 --- a/tests/ExampleContexts.cpp +++ b/tests/ExampleContexts.cpp @@ -77,6 +77,6 @@ VOID_TEST(ExampleContexts, example_records_sources_links_and_pin) { Void::Testing::expect_eq(project.targets().at(11).name, std::string{"vbs_v1_tests"}); Void::Testing::expect_eq(project.targets().at(12).name, std::string{"vbs_selfhost_tests"}); Void::Testing::expect_eq(project.dependencies().at(0).revision, - std::string{"de1fdcda72ddd6ac069fba433b13f643327efa3f"}); + std::string{"1b1947340f8080dbf457d4218cbbee1743f8438d"}); Void::Testing::expect_eq(project.dependencies().at(0).builder, std::string{"native"}); }