Repository navigation
macOS: libcvc links cvcpkg's libcurl, which has WebSockets - #1145
Merged
Merged
Conversation
On macOS libcvc linked the SDK's libcurl (/usr/lib/libcurl.4.dylib, as the
published 3.7.13 dylib's load commands show). Apple builds it without
WebSockets, so cvc::net's WebSocket client had no transport, Ariadne's ws-*
verbs were never registered, and every WebSocket test skipped there. The libcvc
recipe left curl out on macOS on purpose ("part of the OS"), and the curl the
macOS jobs install is cmake's, in the build-tools prefix, which libcvc's
find_package never searches.
- The libcvc recipe declares curl for macOS too. cvcpkg's macOS curl lists WS
and WSS (curl-config --protocols), and its dylib is @rpath/libcurl.4.dylib
with OpenSSL by @rpath, relocatable like the other deps.
- On macOS the configure names the libcurl it found: a WARNING when it is the
SDK's, else "cvc::net: libcurl WebSocket client ENABLED (<lib>)".
- package-macos fails without that line, as it does without the terminal
backends or SDL3.
transfix
added a commit
that referenced
this pull request
Nov 12, 2026
Only job_intrinsics_test.cpp conflicted. Master's #1150 fixed the same pre-#1137 calls this branch fixed in 600c144, but kept a ProviderGuard that clears the app's providers on the way out; this takes master's version, so the file matches master. The rest merged cleanly: #1151's spawn points (world_spawns.cpp, the world rules' spawns, the loader and scene-world tests), #1145's macOS libcurl with WebSockets (CMake and a ci.yml configure assertion), #1148's wasmtime in the arix and ariglx recipes, and #1149's ocean band. None of them registers an action-intrinsic provider, and none adds writable process-wide state: their only new statics are vehicle_view.cpp's constant colour tables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS, libcvc linked the SDK's libcurl,
/usr/lib/libcurl.4.dylib. The published 3.7.13 arm64libcvc.3.7.13.dylibloads exactly that. Apple builds this libcurl without WebSockets, so on macOS:cvc::net::have_ws_backend()is false;ws-*verbs are never registered;NetWsClient.*,AriadneNetIntrinsics.Ws*).This is also why #925's two L4 tests failed there.
Why: the libcvc recipe left curl out on macOS on purpose ("libcvc links the system libcurl there, which is part of the OS"). The curl that the macOS jobs do install is cmake's dependency. It goes into
cvcpkg-tools-prefix, which libcvc'sfind_package(CURL)never searches, so FindCURL falls back to the SDK.Changes
Recipe:
cvcpkg/recipes/libcvcdeclarescurlfor macOS too. cvcpkg's macOS curl (8.13.0+cvc.10 arm64; cvc.9 is the newest x86_64 build) has the protocol:curl-config --protocolslists WS and WSS;@rpath/libcurl.4.dylib, and it loads OpenSSL by@rpath, so it relocates like the other deps.The macOS dependency prefix (fetch-cvcpkg, from this recipe) now gets curl, and the published macOS libcvc pulls it in.
Configure: on macOS it names the libcurl it found. It warns when that is the SDK's (
/usr/lib/...or*.sdk/...), and otherwise printscvc::net: libcurl WebSocket client ENABLED (<lib>).CI:
package-macosfails without that line, as it already does without the terminal backends or SDL3.Checked
curl-configand the Mach-O load commands oflibcurl.4.dylibandlibcvc.3.7.13.dylib.cmake -Pagainst an SDK.tbd,/usr/lib/libcurl.dyliband a prefix path: two warnings, one ENABLED.NetWsClientreal-server tests run there instead of skipping.