Skip to content

infra: link the pinned brotli 1.2.1 into the AppImage's libcurl build and bundle it (#2774 slice 2) #2782

Closed

Description

@zackees

Slice 2 of #2774, split out so it does not block on the rest of that issue. The brotli artifact is published: obs-rust/obs-studio-libs#22 adds recipes/linux/brotli.sh (brotli 1.2.1) and release brotli-1.2.1 carries brotli-1.2.1-linux-x86_64-glibc2.28-release.tar.zst (sha256 eb4f2214dbc91eb1529e4a61499fce26ae03c06dde10935cdc6e8cf0d1b0793d), with brotli/manifest.json and the root Index on the assets branch.

Why

The AppImage's libcurl is rebuilt from AlmaLinux's curl source RPM inside build-aux/appimage/manylinux/Dockerfile, and that build picks up the base's brotli 1.0.6 — inside CVE-2026-111497's range. Until the shipped libbrotlidec is past 1.2.0, #2211's outgoing-HTTP stop-gap cannot be reverted. The base stays glibc 2.28 (#926); this is a dependency substitution, not a base bump.

Work

  1. Add the brotli artifact to the image's dependency set: pin its sha256 in build-aux/appimage/manylinux/deps.lock.json, fetch it into /opt/obs-deps/brotli (the same obs-studio-libs fetch --lock step the other tools use), and add /opt/obs-deps/brotli to the image's CMAKE_PREFIX_PATH/PKG_CONFIG_PATH.
  2. Make the libcurl RPM rebuild link the pinned brotli. The fetch step currently runs after the RPM build; move the fetch (and the uv install it needs) ahead of it, and give rpmbuild a PKG_CONFIG_PATH/CMAKE_PREFIX_PATH/LD_LIBRARY_PATH that resolves /opt/obs-deps/brotli, so curl.spec's --with-brotli links 1.2.1 instead of 1.0.6. Keep --with-ca-fallback and the /etc/pki/tls/certs/ca-bundle.crt absence check as they are.
  3. Make sure the AppImage actually bundles the pinned libbrotli{common,dec,enc}.so.1 (the curl link resolves from the prefix, not /usr/lib64); extend whatever dependency walker already collects the AppImage's libraries, and keep the glibc-floor check green.
  4. Verify on the rebuilt artifact, not on source: usr/lib/libcurl.so.4 reports the pinned brotli and BrotliDecoderVersion() is past 1.2.0; check-glibc-floor.py passes; test-appimage.sh passes across AlmaLinux 8, Ubuntu 22.04/24.04 and Arch. Paste the version output in the PR.

The pinned curl 8.x recipe (#2774's other half) is independent of this and can land in either order, as long as this image build links whichever brotli it ships.

Refs #2774, #2211, #926.

Activity

  1. added
    infra
    ready
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: #2782 (slice 2 of #2774).

    Plan, one PR:

    1. RED: ci/test_appimage_brotli_deps.py pinning the three invariants — brotli 1.2.1 in deps.lock.json at /opt/obs-deps/brotli, that prefix on the image's CMake/pkg-config/loader paths, and the dependency fetch ordered before the libcurl RPM rebuild so curl.spec's --with-brotli resolves 1.2.1. Fails on master.
    2. GREEN: add the locked entry (sha256 eb4f2214…b0793d, from the published brotli-1.2.1 release manifest, which I re-read from the assets branch before pinning), move the uv + fetch steps above the RPM block, and pass the brotli prefix to rpmbuild.
    3. Verify on the rebuilt image and AppImage, not on source: pkg-config --modversion libbrotlidec in the image, usr/lib/libcurl.so.4's DT_NEEDED + BrotliDecoderVersion() past 1.2.0 on the artifact, the glibc floor check, and test-appimage.sh. Evidence goes in the PR.

    Expected first PR: this tick's push.

  3. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Fixed by #2786, merged as e86118b06.

    What changed: build-aux/appimage/manylinux/deps.lock.json now pins the published brotli-1.2.1 artifact (/opt/obs-deps/brotli, sha256 eb4f2214…b0793d), and the Dockerfile fetches it before the libcurl source-RPM rebuild with that prefix first on PKG_CONFIG_PATH/CMAKE_PREFIX_PATH/LD_LIBRARY_PATH, so curl.spec's --with-brotli resolves 1.2.1. The rebuild now asserts its own result instead of failing silently: it prints pkg-config --modversion libbrotlidec and checks ldd /usr/lib64/libcurl.so.4 resolves the brotli libraries under the prefix.

    Verified on the artifact, not the source: the image's libcurl reports brotli/1.2.1, the built AppImage's usr/lib carries libbrotli{common,dec}.so.1 at BrotliDecoderVersion=1.2.1 (not the base's 1.0.6 from /usr/lib64), check-glibc-floor.py reports all 257 ELF files still run on glibc 2.28, and ci/test_appimage_brotli_deps.py pins all three invariants offline. Acceptance run 40686948715 (platform_tests=true) is green: full app build plus test-appimage.sh on AlmaLinux 8, Ubuntu 22.04, Ubuntu 24.04, Arch and the NixOS wrap.

    What's left (all outside this slice, tracked by #2774):

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

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions