Repository navigation
appimage: take libcurl 8.23.0 and OpenSSL 3.5.9 from the lock (#2774) - #2802
Merged
Merged
Conversation
…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
marked this pull request as ready for review
October 28, 2026 14:40
Member
Author
|
Handed off to the coordinator.
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. |
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.
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
libcurl7.61.1 (2018, EOL) andOpenSSL1.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-libsartifacts indeps.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.crtis compiled in and theSSL_CERT_FILEAppRunpoints 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+ refusesOpenSSL 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.1kthat Qt Network still links can be loaded in the same process.
CMAKE_PREFIX_PATH/PKG_CONFIG_PATH(the OBS build'sfind_package(CURL)and the-lcurllink are the pinned build) and onLD_LIBRARY_PATH(solibssl.so.3/libcrypto.so.3/libbrotli*resolve to theprefixes and the AppDir bundling picks them up). The pinned curl tool goes
first on
PATHas well: with the library swapped, the base's 7.61.1 tool passesoption numbers libcurl 8 refuses (
curl: (48)), which silently broke the image'srustup install in the first run (40703033459).
pkg-config --modversion libcurlis 8.23.0,lddresolves both pinnedprefixes, and the RHEL CA path is absent from
libcurl.so.4.dnfstill worksagainst the pinned libcurl (soname-4 ABI), verified in the built image.
The soname is still
libcurl.so.4, so the frontend'sNEEDEDentry and theAppDir's existing lib handling are unchanged.
Recipes and artifacts: obs-rust/obs-studio-libs#23 (merged as
0c6b4401c), thecurl-8.23.0/openssl-3.5.9releases, and theassetsindex.RED / GREEN
9f7d13cc1addsci/test_appimage_curl_deps.pyand reworksci/test_appimage_brotli_deps.py; on master's Dockerfile/lock it fails 6 ways(no
curl/openssllock entries, prefixes absent from the image paths, thesource-RPM rebuild still present).
509274cb7is the lock + Dockerfile change (cb5fff36f,b033e1b7barethe 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 🔍 / checksandValidate Dataclean.App lane evidence —
appimage.yamlplatform_tests=true, run 40704567551 ✅pkg-config --modversion libcurl=8.23.0, andcurl 8.23.0 (x86_64-pc-linux-gnu) libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.2.11 brotli/1.2.1.ubuntu:22.04, withverification on and the host's CA bundle (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's contract):
probe-https: fetched 5179 bytes from https://localhost:18443/ with verification on (libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.2.11 brotli/1.2.1)check-glibc-floor: all 250 ELF files run on glibc 2.28 with GLIBCXX_3.4.25.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.