Skip to content

appimage: take libcurl 8.23.0 and OpenSSL 3.5.9 from the lock (#2774) - #2802

Merged
zackees merged 4 commits into
masterfrom
infra/2774-pinned-curl
Oct 28, 2026
Merged

zackees merged 4 commits into
masterfrom
infra/2774-pinned-curl

Conversation

@zackees

@zackees zackees commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Refs #2774 — this lands the curl + TLS half; the AppImage's remaining EOL library (the base's OpenSSL 1.1.1k, used by Qt Network, not libcurl) stays open on the issue. The brotli half landed in #2782/#2786.

Why

The glibc-2.28 AppImage inherited libcurl 7.61.1 (2018, EOL) and OpenSSL
1.1.1k (EOL) from the AlmaLinux 8 base. The image rebuilt curl from AlmaLinux's
source RPM only to get --with-ca-fallback (#1085). Both are now pinned,
obs-studio-libs artifacts in deps.lock.json, so the image compiles nothing but OBS.

What

  • /opt/obs-deps/curl — curl 8.23.0, built --with-ca-fallback
    (--without-ca-bundle --without-ca-path), so no RHEL
    /etc/pki/tls/certs/ca-bundle.crt is compiled in and the SSL_CERT_FILE AppRun
    points at the host bundle is honoured (the bug: AppImage (glibc 2.28 base): HTTPS requests fail on non-RHEL hosts because the bundled libcurl looks for /etc/pki/tls/certs/ca-bundle.crt #1085 contract); brotli is the pinned
    1.2.1, not the base's 1.0.6.
  • /opt/obs-deps/openssl — OpenSSL 3.5.9 (LTS line): curl 8.18+ refuses
    OpenSSL older than 3.0, so the base's 1.1.1k cannot back a pinned libcurl.
    Symbols are versioned (OPENSSL_3.0.0 / OPENSSL_1_1_0), so the base's 1.1.1k
    that Qt Network still links can be loaded in the same process.
  • Both prefixes go first on CMAKE_PREFIX_PATH/PKG_CONFIG_PATH (the OBS build's
    find_package(CURL) and the -lcurl link are the pinned build) and on
    LD_LIBRARY_PATH (so libssl.so.3/libcrypto.so.3/libbrotli* resolve to the
    prefixes and the AppDir bundling picks them up). The pinned curl tool goes
    first on PATH as well: with the library swapped, the base's 7.61.1 tool passes
    option numbers libcurl 8 refuses (curl: (48)), which silently broke the image's
    rustup install in the first run (40703033459).
  • The source-RPM rebuild is deleted; an in-image assertion replaces it:
    pkg-config --modversion libcurl is 8.23.0, ldd resolves both pinned
    prefixes, and the RHEL CA path is absent from libcurl.so.4. dnf still works
    against the pinned libcurl (soname-4 ABI), verified in the built image.

The soname is still libcurl.so.4, so the frontend's NEEDED entry and the
AppDir's existing lib handling are unchanged.

Recipes and artifacts: obs-rust/obs-studio-libs#23 (merged as 0c6b4401c), the
curl-8.23.0 / openssl-3.5.9 releases, and the assets index.

RED / GREEN

  • RED 9f7d13cc1 adds ci/test_appimage_curl_deps.py and reworks
    ci/test_appimage_brotli_deps.py; on master's Dockerfile/lock it fails 6 ways
    (no curl/openssl lock entries, prefixes absent from the image paths, the
    source-RPM rebuild still present).
  • GREEN 509274cb7 is the lock + Dockerfile change (cb5fff36f, b033e1b7b are
    the two follow-ups the app lane found: the ldd grep escaping, and the curl tool
    on PATH). uv run python -m unittest ci.test_appimage_curl_deps ci.test_appimage_brotli_deps ci.test_appimage_qsv_deps → 10 tests OK;
    ci/test_uv_run.py, ruff check, Format 🔍 / checks and Validate Data clean.

App lane evidence — appimage.yaml platform_tests=true, run 40704567551 ✅

job result
Build AppImage 🧱 (image, Configure, Build, Assemble AppDir, Create AppImage, host-library loader) success
Test on NixOS 🧪 success
Test on almalinux:8 🧪 success
Test on ubuntu:22.04 🧪 success
Test on ubuntu:24.04 🧪 success
Test on archlinux:latest 🧪 success

Out of scope / not attempted here: the base's OpenSSL 1.1.1k for consumers that
are not libcurl (Qt Network) — replacing that is a bigger unit and it is the last
EOL library left in the AppImage.

…use (#2774)

The manylinux image takes libcurl 7.61.1 and OpenSSL 1.1.1k (both EOL) from
the AlmaLinux 8 base; the pins for the replacement (deps.lock.json entries at
/opt/obs-deps/{curl,openssl}, those prefixes on the image's CMake, pkg-config
and loader paths, no source-RPM rebuild left, and the in-image assertions)
fail on current master. Refs #2774.
The glibc-2.28 image rebuilt libcurl from AlmaLinux's source RPM to get
`--with-ca-fallback` (#1085), which is why the shipped AppImage had curl
7.61.1 (2018, EOL) and OpenSSL 1.1.1k (EOL). Both are now pinned,
obs-studio-libs artifacts in deps.lock.json, so the image compiles nothing
but OBS:

- `/opt/obs-deps/curl` — curl 8.23.0, built `--with-ca-fallback` (no RHEL
  `/etc/pki/tls/certs/ca-bundle.crt` compiled in; honours the SSL_CERT_FILE
  AppRun points at) against the pinned brotli 1.2.1 and OpenSSL 3.5.9;
- `/opt/obs-deps/openssl` — OpenSSL 3.5.9 (LTS); curl 8.18+ refuses 1.1.1.

The prefix pair goes first on CMAKE_PREFIX_PATH/PKG_CONFIG_PATH (so the OBS
build's `find_package(CURL)` and the `-lcurl` link are the pinned build) and
on LD_LIBRARY_PATH (so `libssl.so.3`/`libcrypto.so.3` and libbrotli resolve
to the prefixes, and get bundled). The source-RPM rebuild is deleted; an
in-image assertion replaces it: pkg-config reports libcurl 8.23.0, the built
library resolves the pinned prefixes, and no RHEL CA path is compiled in.

Fixes the curl/OpenSSL half of #2774; the brotli half landed in #2782. The
remaining EOL library in the AppImage is the base's OpenSSL 1.1.1k for
consumers that are not libcurl (Qt Network), which is a separate unit.
The in-image check greps ldd's output for the pinned OpenSSL prefix, and the
pattern was written with doubled backslashes inside single quotes, so it
searched for a literal backslash and failed the image build on run 40702201374
(the pinned curl itself verified: libcurl/8.23.0 OpenSSL/3.5.9 brotli/1.2.1).
With libcurl.so.4 resolving to the pinned 8.23.0 through LD_LIBRARY_PATH, the
base's 7.61.1 curl tool passed option numbers the new library refuses
(`curl: (48) an unknown option was passed in to libcurl`). That silently broke
the image's rustup install — curl exited non-zero into a pipe, so the RUN
"succeeded" without cargo, and Configure then failed on
`Could not find ... cargo` (run 40703033459).
@zackees
zackees marked this pull request as ready for review October 28, 2026 14:40
@zackees
zackees added this pull request to the merge queue Oct 28, 2026
@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator.

  • PR CI on b033e1b7b: CI Gate ✅, Build 🧱 / Fast Gate ⚡, Format 🔍 / checks, Validate Data 🕵️, Event Data 🔎, CI Mode 🛂 all pass; the 27 build lanes are skipping (no Rust/C/CMake change, so ci_scope.py runs nothing else).
  • App-lane acceptance is green: appimage.yaml platform_tests=true run 40704567551 — image, Configure, Build, AppDir, AppImage, NixOS and all four stock containers (almalinux:8, ubuntu:22.04, ubuntu:24.04, archlinux:latest) pass, with probe-https … (libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.2.11 brotli/1.2.1) and check-glibc-floor: all 250 ELF files run on glibc 2.28.
  • No local gate stamp: I ran the affected ci/test_appimage_* modules and ci/test_uv_run.py directly, not the full ./lint + ./unittest gate, so HEAD carries no attestation trailers — Fast Gate ran for real here rather than being skipped by a stamp.
  • Already queued: gh pr merge --auto reported "already queued to merge".

The only follow-up I did not take is the AppImage's remaining EOL library: the base's OpenSSL 1.1.1k, which Qt Network links (libcurl now uses the pinned 3.5.9). That is a larger unit — Qt 6 would have to be rebuilt against a pinned OpenSSL 3 prefix — and it is recorded on #2774.

Merged via the queue into master with commit 5fd1c51 Oct 28, 2026
40 checks passed
@zackees
zackees deleted the infra/2774-pinned-curl branch October 28, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant