Skip to content

linux-aarch64: with get c.libcurl cannot get a TLS backend (openssl needs Perl from source) #2757

Done

Description

@ehartford

Summary

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.

Activity

  1. added a commit that references this issue on Oct 28, 2026
  2. added this to the post-v0.16.0 milestone on Oct 28, 2026
  3. ehartford commented on Nov 25, 2026

    @ehartford
    ContributorAuthor

    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?

    1. 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.
    2. 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.
    3. 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.

  4. ehartford commented on Nov 25, 2026

    @ehartford
    ContributorAuthor

    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.

  5. ehartford commented on Nov 25, 2026

    @ehartford
    ContributorAuthor

    Ruled by Eric, 2026-11-25 (answers to briefs.md).

    Option 1: mbedtls where openssl cannot be built, with three conditions:

    • the lock records the backend per platform, so a project locked with openssl on macOS shows the difference on linux-aarch64;
    • a user can pin the backend, and a pin to openssl gives today's refusal, not a substitution;
    • the recipe moves off mbedtls 3.5.0 to the 3.6 line that with get c.mbedtls already takes.

    Option 3 rejected: the result would depend on whether Perl happens to be installed. Label removed; this is mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions