|
|
@@ -109,6 +109,14 @@ if(SVAPI_VENDOR_CURL)
|
|
|
set(USE_NGTCP2 OFF CACHE BOOL "" FORCE)
|
|
|
set(USE_QUICHE OFF CACHE BOOL "" FORCE)
|
|
|
set(CURL_DISABLE_NTLM ON CACHE BOOL "" FORCE)
|
|
|
+ # zlib, zstd and brotli are HTTP CONTENT ENCODINGS. With HTTP compiled out
|
|
|
+ # they can never be reached, and left enabled they are found on the build
|
|
|
+ # host and become real shared-library dependencies of the .deb for no
|
|
|
+ # benefit. Turned off so the package's dependency list matches what the
|
|
|
+ # code can actually use.
|
|
|
+ set(CURL_ZLIB OFF CACHE STRING "" FORCE)
|
|
|
+ set(CURL_ZSTD OFF CACHE STRING "" FORCE)
|
|
|
+ set(CURL_BROTLI OFF CACHE STRING "" FORCE)
|
|
|
# HTTP is compiled OUT on purpose. ctx.fetch is cpp-httplib, with its own
|
|
|
# SSRF guard, its own address pinning and its own outbound defaults; two
|
|
|
# HTTP clients with two sets of defaults is exactly how the two drift.
|
|
|
@@ -150,6 +158,12 @@ if(SVAPI_VENDOR_CURL)
|
|
|
GIT_SHALLOW TRUE)
|
|
|
endif()
|
|
|
FetchContent_MakeAvailable(curl)
|
|
|
+ # curl detects the CA bundle AT CONFIGURE TIME and bakes the path in
|
|
|
+ # (/etc/ssl/certs/ca-certificates.crt on Debian, which is the release build
|
|
|
+ # host and the target both). TLS verification is on and never relaxed, so
|
|
|
+ # without that file EVERY mail connection fails as mail_tls_untrusted - a
|
|
|
+ # failure that looks like a broken server rather than a missing package.
|
|
|
+ # That is why the runner package depends on ca-certificates.
|
|
|
set(SVAPI_CURL_TARGET CURL::libcurl)
|
|
|
else()
|
|
|
# The escape hatch, and what the dev loop uses: a system libcurl builds in
|