Skip to content

build: add pinned curl 8.23.0 + OpenSSL 3.5.9 recipes for the AppImage (#2774) - #23

Merged
zackees merged 1 commit into
mainfrom
build/2774-curl-8
Oct 28, 2026
Merged

zackees merged 1 commit into
mainfrom
build/2774-curl-8

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

Part 1 of obs-rust/obs-studio#2774 (the obs-studio half follows in its own PR).

Why

The glibc-2.28 AppImage inherits libcurl 7.61.1 (2018, EOL) and OpenSSL
1.1.1k (EOL) from the AlmaLinux 8 base — build-aux/appimage/manylinux/Dockerfile
rebuilds curl from AlmaLinux's source RPM, which is how it got the pinned brotli
1.2.1 (#22) but not a supported curl. Both become pinned, locked artifacts here,
the same way Qt/FFmpeg/PipeWire arrive.

What

  • recipes/linux/openssl.sh — OpenSSL 3.5.9 (the LTS line, supported
    past 2030). curl 8.18+ refuses OpenSSL older than 3.0, so the base's 1.1.1k
    cannot back a pinned libcurl. Deliberately not put on the image's
    CMake/pkg-config path: the rest of the tree still consumes the base's 1.1.1k,
    and re-pointing all of it is a separate unit. OpenSSL symbols are versioned
    (OPENSSL_3.0.0 / OPENSSL_1_1_0), so both libraries can be loaded in one
    process.
  • recipes/linux/curl.sh — curl 8.23.0 (2026-10-14), keeping the two
    properties the SRPM rebuild it replaces carried (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 obs-studio#1085):
    --with-ca-fallback with --without-ca-bundle --without-ca-path (no RHEL
    /etc/pki/tls/certs/ca-bundle.crt compiled in; honours the SSL_CERT_FILE
    AppRun points at the host bundle), and brotli decoded by the pinned 1.2.1
    (--with-brotli=/opt/obs-deps/brotli), not the base's 1.0.6.
  • Both recipes assert their own output at build time: the RHEL CA path absent
    from libcurl.so.4, ldd resolving brotli/OpenSSL to the pinned prefixes,
    and curl_version() printing the pinned build.
  • Build order: brotli openssl before curl in build.sh's default list;
    summaries.json gains both tools.

Measured

Built in the manylinux_2_28 image (glibc 2.28), packed by this repo's own CLI:

curl 8.23.0 (x86_64-pc-linux-gnu) libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.3.2 brotli/1.2.1
Release-Date: 2026-10-14
Protocols: file ftp ftps http https ipfs ipns ws wss
SONAME libcurl.so.4
NEEDED libssl.so.3, libcrypto.so.3, libbrotlidec.so.1, libbrotlicommon.so.1, libz.so.1
artifact size sha256
curl-8.23.0-linux-x86_64-glibc2.28-release.tar.zst 864045 a4f803b5e569ca5e707779583a646f22929438c5e025ef3ab97b0b09181335b1
openssl-3.5.9-linux-x86_64-glibc2.28-release.tar.zst 6438715 d8fe8a82a4417f0374ad40af2e6581146e0a2fe9ccc6895363c716d13b41958f

The soname is still libcurl.so.4, so the frontend's existing NEEDED entry is
unchanged. The archives are published to curl-8.23.0 / openssl-3.5.9
releases after this merges (they are already built and sha-pinned above).

Tests

tests/test_curl_recipe.py and tests/test_openssl_recipe.py pin the version
floors, the sha256-pinned sources, the CA contract, the prefix wiring and the
build order. uv run --group dev pytest 40 passed; ruff check / ruff format --check clean. This repo has no PR CI beyond lint.

The image gains perl-IPC-Cmd/perl-Time-Piece: OpenSSL's Configure needs
them and manylinux's minimal perl does not ship them.

…e (#2774)

The glibc-2.28 AppImage inherits libcurl 7.61.1 (2018, EOL) and OpenSSL
1.1.1k (EOL) from the AlmaLinux 8 base: both are rebuilt here as pinned,
locked artifacts, the same way Qt/FFmpeg/PipeWire arrive
(obs-rust/obs-studio#2774).

- `recipes/linux/openssl.sh` pins 3.5.9 (the LTS line). curl 8.18+ refuses
  OpenSSL older than 3.0, so the base's 1.1.1k cannot back a pinned libcurl.
- `recipes/linux/curl.sh` pins 8.23.0 and keeps the two properties the SRPM
  rebuild it replaces carried (obs-rust/obs-studio#1085):
  `--with-ca-fallback` (no RHEL `/etc/pki/tls/certs/ca-bundle.crt` compiled
  in; honours SSL_CERT_FILE on Debian/Ubuntu/Arch hosts) and brotli decoded by
  the pinned 1.2.1 rather than the base's 1.0.6.
- Both recipes assert their own output at build time: the RHEL CA path is
  absent from `libcurl.so.4`, brotli/OpenSSL resolve to the pinned prefixes,
  and `curl_version()` reports the pinned build.

Measured in the manylinux_2_28 image (glibc 2.28):

    curl 8.23.0 (x86_64-pc-linux-gnu) libcurl/8.23.0 OpenSSL/3.5.9 zlib/1.3.2 brotli/1.2.1
    soname libcurl.so.4; NEEDED libssl.so.3, libcrypto.so.3, libbrotlidec.so.1

The image only needs perl-IPC-Cmd/perl-Time-Piece, which OpenSSL's Configure
requires and manylinux's minimal perl does not ship.

Packed artifacts (built and asserted locally, published after this merges):

    curl-8.23.0-linux-x86_64-glibc2.28-release.tar.zst
      sha256 a4f803b5e569ca5e707779583a646f22929438c5e025ef3ab97b0b09181335b1
    openssl-3.5.9-linux-x86_64-glibc2.28-release.tar.zst
      sha256 d8fe8a82a4417f0374ad40af2e6581146e0a2fe9ccc6895363c716d13b41958f

The obs-studio half (replace the Dockerfile's SRPM rebuild with these locked
prefixes) follows in its own PR on obs-rust/obs-studio.
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