You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
linux-aarch64: with get c.libcurl cannot get a TLS backend (openssl needs Perl from source) #2757
On linux-aarch64, with get c.libcurl does not work: Conan Center publishes no openssl binary for linux-aarch64, so openssl falls back to a from-source build whose Configure requires Perl, and D46 rules that a user never has to become the build system. This is the user-facing gap behind #1166 (whose UAT is being restricted to platforms with conan binaries; restricting the UAT must not read as the gap closing).
Evidence
From the #1166 triage (2026-10-25, debian bookworm arm64 container on the linux host): zlib, bzip2 and sqlite3 build from source through with get; libcurl stops at openssl — no matching binary, and the from-source recipe's Configure is Perl-driven, with generated headers and pkg-config side outputs to replicate.
Direction
libcurl with a TLS backend that builds with CMake on this platform (mbedtls) is probably the with-y answer: the TLS backend is a representation choice, not a meaning, so a default can pick it per platform (openssl where binaries exist, mbedtls where only a source build works). Needs a spike: conan libcurl with_mbedtls (or the recipe's TLS option spelling), mbedtls from-source build time on aarch64, and whether the facade surface is backend-independent.
Acceptance
with get c.libcurl works end-to-end on linux-aarch64 with no Perl and no system packages, verified there; the #1166 UAT restriction can then be lifted for linux-aarch64.
The spike this issue asks for (2026-11-24, linux-aarch64 container, compiler built from main b6aaf32)
question
result
Today, with Perl installed
with get c.libcurl still stops: "openssl/3.6.5 builds with its own Configure script, which needs Perl; with get builds CMake projects from source". It never tries the host's Perl. (The container has /usr/bin/perl, no make.)
Does mbedtls build from source there?
Yes: with get c.mbedtls builds mbedtls 3.6.8 in 27 s. No Perl.
Does libcurl build against it?
Yes. With the recipe's with_ssl option set to mbedtls (a throwaway override in a container-only build, never committed), with get c.libcurl builds zlib, mbedtls and libcurl 8.23.0 in 59 s.
Is the facade surface the same?
For what the release scenario uses, yes: a copy of uat/libcurl.uat (its own contract file and program, platforms line removed in the copy) passes with init, with get, and the build and link of the program.
Does the program run?
No, for an unrelated reason: the source-built libcurl calls memset_explicit (glibc 2.43) and the container has 2.39. Filed with its root cause as #3603. So the HTTPS transfer itself is not yet shown over mbedtls.
One thing to know: the recipe pinned mbedtls 3.5.0 under libcurl, where with get c.mbedtls alone took 3.6.8.
Brief for Eric: which TLS library does with get c.libcurl give where openssl has no binary?
mbedtls where openssl cannot be built (this issue's direction). The recipe's with_ssl default is openssl; where openssl has neither a binary nor a CMake build, with get picks mbedtls and says so in its output.
The host's Perl and make, when present (your 2026-10-28 ruling allows a user action to use them), and today's refusal when they are not. This needs with get to drive openssl's Configure and make, which it does not do today.
Both: (2) when the tools exist, else (1).
What the others do (from memory, not re-checked today). Cargo's curl-sys builds against the system openssl by default and offers vendored openssl (needs Perl and make) or rustls as opt-in features; vcpkg builds openssl from source and needs Perl to do it.
What the spec says. Nothing on TLS backends. D171 (uat/README.md): a package whose chain needs a host tool on a platform is not a scenario there, and "never port, migrate or substitute the user's C dependency to make it fit": that sentence is about scenarios, but it is the nearest stated rule.
Mission fit. "with get c.<lib> just works" and "the programmer never has to become the build system" say (1). Against it: the TLS library decides certificate stores, protocol versions and which CVEs apply, so two platforms silently linking different TLS stacks is closer to a meaning than a representation. If (1), the choice must be printed and recorded in the lock.
Prediction: (1), with the chosen backend printed and written to the lock, 60%.
Labelling human attn needed: which TLS library a user's program links by default is yours. #3603 must be fixed either way before the linux-aarch64 scenario can run.
Update: #3603 is fixed (#3604). With it, the spike's last row changes: the libcurl release scenario (a copy, TLS option set to mbedtls by a throwaway override) now passes all seven steps on linux-aarch64, including the HTTPS transfer. So the only thing between this issue and a working with get c.libcurl there is the choice of default TLS library in the brief above.
Activity
fix 1166 (#2766)
D171 in the scaffolding; a build stops its lanes on an early return; …
ehartford commentedon Nov 25, 2026
The spike this issue asks for (2026-11-24, linux-aarch64 container, compiler built from main b6aaf32)
with get c.libcurlstill stops: "openssl/3.6.5 builds with its own Configure script, which needs Perl;with getbuilds CMake projects from source". It never tries the host's Perl. (The container has/usr/bin/perl, nomake.)with get c.mbedtlsbuilds mbedtls 3.6.8 in 27 s. No Perl.with_ssloption set tombedtls(a throwaway override in a container-only build, never committed),with get c.libcurlbuilds zlib, mbedtls and libcurl 8.23.0 in 59 s.uat/libcurl.uat(its own contract file and program, platforms line removed in the copy) passeswith init,with get, and the build and link of the program.memset_explicit(glibc 2.43) and the container has 2.39. Filed with its root cause as #3603. So the HTTPS transfer itself is not yet shown over mbedtls.One thing to know: the recipe pinned mbedtls 3.5.0 under libcurl, where
with get c.mbedtlsalone took 3.6.8.Brief for Eric: which TLS library does
with get c.libcurlgive where openssl has no binary?with_ssldefault isopenssl; where openssl has neither a binary nor a CMake build,with getpicksmbedtlsand says so in its output.with getto drive openssl'sConfigureandmake, which it does not do today.curl-sysbuilds against the system openssl by default and offers vendored openssl (needs Perl and make) or rustls as opt-in features; vcpkg builds openssl from source and needs Perl to do it.with get c.<lib>just works" and "the programmer never has to become the build system" say (1). Against it: the TLS library decides certificate stores, protocol versions and which CVEs apply, so two platforms silently linking different TLS stacks is closer to a meaning than a representation. If (1), the choice must be printed and recorded in the lock.Labelling
human attn needed: which TLS library a user's program links by default is yours. #3603 must be fixed either way before the linux-aarch64 scenario can run.ehartford commentedon Nov 25, 2026
Update: #3603 is fixed (#3604). With it, the spike's last row changes: the libcurl release scenario (a copy, TLS option set to mbedtls by a throwaway override) now passes all seven steps on linux-aarch64, including the HTTPS transfer. So the only thing between this issue and a working
with get c.libcurlthere is the choice of default TLS library in the brief above.ehartford commentedon Nov 25, 2026
Ruled by Eric, 2026-11-25 (answers to briefs.md).
Option 1: mbedtls where openssl cannot be built, with three conditions:
with get c.mbedtlsalready takes.Option 3 rejected: the result would depend on whether Perl happens to be installed. Label removed; this is mine.
with get: mbedtls 3.6 fallback, option pins, and per-platform lock (#…
with get: mbedtls 3.6 fallback, option pins, and per-platform lock (#…