Skip to content

macOS: libcvc links cvcpkg's libcurl, which has WebSockets - #1145

Merged
transfix merged 2 commits into
masterfrom
fix/macos-curl-websockets
Nov 12, 2026
Merged

transfix merged 2 commits into
masterfrom
fix/macos-curl-websockets

Conversation

@transfix

Copy link
Copy Markdown
Owner

On macOS, libcvc linked the SDK's libcurl, /usr/lib/libcurl.4.dylib. The published 3.7.13 arm64 libcvc.3.7.13.dylib loads exactly that. Apple builds this libcurl without WebSockets, so on macOS:

  • cvc::net::have_ws_backend() is false;
  • Ariadne's ws-* verbs are never registered;
  • every WebSocket test skips (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's find_package(CURL) never searches, so FindCURL falls back to the SDK.

Changes

  • Recipe: cvcpkg/recipes/libcvc declares curl for 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 --protocols lists WS and WSS;
    • the dylib's id is @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 prints cvc::net: libcurl WebSocket client ENABLED (<lib>).

  • CI: package-macos fails without that line, as it already does without the terminal backends or SDL3.

Checked

  • Installed the published macOS curl bundles here and read curl-config and the Mach-O load commands of libcurl.4.dylib and libcvc.3.7.13.dylib.
  • Ran the configure check under cmake -P against an SDK .tbd, /usr/lib/libcurl.dylib and a prefix path: two warnings, one ENABLED.
  • What remains for macOS CI: the line is printed, and the NetWsClient real-server tests run there instead of skipping.

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
transfix merged commit 80b5e23 into master Nov 12, 2026
53 of 60 checks passed
@transfix
transfix deleted the fix/macos-curl-websockets branch November 12, 2026 01:11
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant