Repository navigation
infra: record the measured macOS system libcurl in the Brotli carve-out (#2907) - #2977
Merged
Merged
Conversation
The Apple branch of obs_curl_accept_encoding_for() exists because this repo neither pins nor measures the Brotli decoder of /usr/lib/libcurl.4.dylib. Measure it: on macOS 14.8.9 (23J631), 15.8.2 (24H232) and 26.6.2 (25G83) the loader resolves that dylib at 8.7.1 with features 0x514f039d, which does not set CURL_VERSION_BROTLI, links no libbrotlidec, and /usr/bin/curl reports the same feature list without brotli. So the carve-out is inert on every measured release: "gzip, deflate" is exactly what "" asks for when br is unavailable. It stays because the deployment target is 13.0 and that release is still unmeasured (GitHub retired its macos-13 runners); a real Ventura Mac decides whether the branch can go. Comment only, no behavior change. Refs #2907
zackees
enabled auto-merge
October 30, 2026 02:28
Member
Author
|
Handed off to the coordinator — comment-only change, Format and Fast Gate green, auto-merge on. Issue #2907 is commented with the measured values and stays open on the macOS 13 row. |
zackees
commented
Oct 30, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review — comment-only, claims check out.
Verified:
- Diff is comments only.
gh pr diffshows +13/−0 acrossCMakeLists.txtandshared/file-updater/file-updater/curl-accept-encoding.h; no code, no macro change, soOBS_CURL_ACCEPT_ENCODING_UNPINNED_BROTLI=1onOS_MACOSandmacos_libcurlstaying1remain correct, and no RED→GREEN test is owed for a comment (test/cmocka/test_curl_accept_encoding.cis untouched, as it should be). - The numbers are internally consistent.
0x514f039d & CURL_VERSION_BROTLI (1<<23 = 0x800000) == 0, so "BROTLI not set" matches the quoted features word, andLIBZis set, which is why the Apple branch'sgzip, deflateis the same string""would produce on 8.7.1 — the "inert on the measured hosts" claim is self-consistent. The-lcurl+otool -L→/usr/lib/libcurl.4.dylibroute means these are the system libcurl, not a Homebrew one, which is what #2907 asked for. - Recording happened where the issue asked. The table is in the #2907 comment and the same values, narrowed to the ones that matter, are now in the two places the carve-out is documented (top-level
CMakeLists.txtand the header doc block). - Deployment target checked:
cmake/common/soldr.cmake:218setsCMAKE_OSX_DEPLOYMENT_TARGET 13.0, so keeping the carve-out on the unmeasured 13.0 row is the right call rather than dropping the branch on arm64 14/15/26 evidence alone. - No
docs/features.mdline needed: comments in build files and a header are not user-visible behaviour, settings, UI, log output or platform support.
Nothing to fix. Tier 2 macOS/Windows and the remaining Linux serial lanes were still in progress at review time; auto-merge is on (MERGE, enabled by the maintainer) and the queue is the gate, so no further coordinator action unless a lane goes red.
4 of 7 tasks
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.
Records the measurement #2907 asks for in the two places the carve-out is documented, and says why the carve-out stays.
What was measured
A throwaway workflow (branch
infra/2907-macos-libcurl-probe, deleted) compiled a program against the SDK's-lcurl—otool -Lconfirms it binds/usr/lib/libcurl.4.dylib(compatibility 7.0.0, current 9.0.0) — and ran it on the GitHub macOS runners:sw_versfeaturesCURL_VERSION_BROTLIbrotli_versionmacos-14arm640x514f039dmacos-15arm640x514f039dmacos-26arm640x514f039d/usr/bin/curl --versionon each host agrees:libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 …, featuresalt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets— no brotli./usr/lib/libcurl.4.dylibhas no on-disk file on any of them (dyld shared cache), so the decoder cannot be examined withotool; the absence ofCURL_VERSION_BROTLIand oflibbrotlidecin itsotool -Loutput is the answer, andBrotliDecoderVersion()is not reachable because nothing links it.Consequence
On every measured release the Apple branch is a no-op: with no Brotli decoder,
""asks for exactlygzip, deflate, the string the branch returns. macOS 13.0 — the deployment target, so the oldest release we ship to — is still unmeasured: GitHub retired themacos-13runners (a job on that label stays queued), so it needs a real Ventura Mac before the branch can be dropped. Until then this PR only records the numbers.No behavior change
Comments only:
shared/file-updater/file-updater/curl-accept-encoding.hand theOS_MACOSblock inCMakeLists.txt. No test change;macos_libcurlstays1.Refs #2907