Repository navigation
appimage: link the pinned brotli 1.2.1 into the AppImage's libcurl (#2782) - #2786
Conversation
|
Status from the worker: RED and GREEN are in, the image and AppImage are verified locally, and the PR is a draft only for the cross-distro packaged run. Dispatching AppImage run 40686948715 on this branch with Local evidence on the artifact, not the source: the image's |
The manylinux image rebuilds libcurl from AlmaLinux's curl source RPM, so curl.spec's --with-brotli resolves whatever brotli the base ships: 1.0.6, inside CVE-2026-111497's range. The pinned obs-studio-libs brotli 1.2.1 is published (brotli-1.2.1, sha256 eb4f2214...) but the image does not use it. This test pins the three things that make curl link it, and fails on master: the locked entry at /opt/obs-deps/brotli, that prefix on the image's CMake, pkg-config and loader paths, and the dependency fetch ordered before the RPM rebuild (rpmbuild only sees the prefix through its environment). uv run python -m unittest ci.test_appimage_brotli_deps -> 4 failures on this commit, OK with the next one.
…curl (#2782) The libcurl RPM rebuild now sees the pinned brotli prefix explicitly, and the dependency fetch runs before it — fetched after, curl.spec's --with-brotli silently resolved the base's 1.0.6 again, which is inside CVE-2026-111497's range. The image carries brotli 1.2.1 from obs-studio-libs at /opt/obs-deps/brotli (sha256 eb4f2214...), on the CMake, pkg-config and loader paths, so the AppDir closure bundles libbrotli{common,dec,enc}.so.1 from the prefix instead of /usr/lib64. The base stays glibc 2.28 (#926): a dependency substitution, not a base bump. Verified on the rebuilt image, not on source: $ pkg-config --modversion libbrotlidec 1.2.1 $ ldd /usr/lib64/libcurl.so.4 | grep brotli libbrotlidec.so.1 => /opt/obs-deps/brotli/lib/libbrotlidec.so.1 libbrotlicommon.so.1 => /opt/obs-deps/brotli/lib/libbrotlicommon.so.1 $ BrotliDecoderVersion() / curl_version() BrotliDecoderVersion=1.2.1 curl=libcurl/7.61.1 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.2.1 ... Local-Gate: v1 tree=ad4d7727da9cd5ac5380d01d0b1c5173ba639627 secs=2311 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a Ci-Attestation: {"at":1793193003,"gate":"rust/all/fmt","host":"linux-x86_64","key":"8d266b05e4e12df5d9f0db01026faf3ceac8fd394653ec5c31827775a539fc39","lane":"lint","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":43,"stamp":"8dcb3684d2103b6b69705e4c796facca","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"8d266b05e4e12df5d9f0db01026faf3ceac8fd394653ec5c31827775a539fc39","lane":"lint","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":43,"stamp":"267601b3fa4969f8b96113a5b1d6f0ae","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"b449b5b93019ad35e0933269cd4f90b335136f1ce02e069109447f023fdc87a5","lane":"rust-test","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":492,"stamp":"273307b93dea657b06ae2ed79cf844d7","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"428265f990e35cd7c9f248632cdb1e570266051f705346bd506abd45aeb3b94f","lane":"cross","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":220,"stamp":"fe25ad743d9a046325dd50bd614d6cf3","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"428265f990e35cd7c9f248632cdb1e570266051f705346bd506abd45aeb3b94f","lane":"cross","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":220,"stamp":"24d9c48b4a7dc9f1408f4578e2867014","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"428265f990e35cd7c9f248632cdb1e570266051f705346bd506abd45aeb3b94f","lane":"cross","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":220,"stamp":"c12e39bd0254e11f13b9ea5113427423","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"428265f990e35cd7c9f248632cdb1e570266051f705346bd506abd45aeb3b94f","lane":"cross","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":220,"stamp":"035adc10ae253b733ba7a4a3a0968721","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"} Ci-Attestation: {"at":1793193003,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"edb144899746ea80d646d7426f3cd46bb6bb7d9fa6f2db4674da6751501732ae","lane":"tier2-linux","parents":["526b65ecf8c17d26d9beb4fabf3dbd62fe599c6c"],"secs":2311,"stamp":"d5d3eaad31b356b8413a9c60546d40eb","tree":"ad4d7727da9cd5ac5380d01d0b1c5173ba639627","v":1,"via":"run"}
aeecfcd to
bff6041
Compare
|
Handed off to the coordinator. Ready state:
Nothing outstanding on my side unless the queue ejects it. |
The AppImage's libcurl is now built against the pinned brotli 1.2.1 instead of the AlmaLinux 8 base's 1.0.6, so the shipped
libbrotlidecis out of CVE-2026-111497's range. Fixes #2782. Refs #2774, Refs #2211, Refs #926.RED
9a67806d7addsci/test_appimage_brotli_deps.py, which fails on master (4 failures):The test pins the three things that decide what
curl.spec's--with-brotlilinks: a lockedbrotlientry installed at/opt/obs-deps/brotli, that prefix first on the image'sPKG_CONFIG_PATH/CMAKE_PREFIX_PATH/LD_LIBRARY_PATH, and the dependency fetch ordered before the RPM rebuild —rpmbuildonly sees the prefix through the environment it is given, so fetching afterwards silently links the base's 1.0.6 again.GREEN
aeecfcded:deps.lock.jsongainsbrotli 1.2.1at/opt/obs-deps/brotli,sha256 eb4f2214dbc91eb1529e4a61499fce26ae03c06dde10935cdc6e8cf0d1b0793d— read back from thebrotli/manifest.jsonon obs-rust/obs-studio-libs'assetsbranch (releasebrotli-1.2.1, 443768 bytes) before pinning, not copied from the issue text.PKG_CONFIG_PATH/CMAKE_PREFIX_PATH/LD_LIBRARY_PATHwith the brotli prefix first, so--with-brotliresolves 1.2.1.pkg-config --modversion libbrotlidecand assertsldd /usr/lib64/libcurl.so.4resolveslibbrotli*under/opt/obs-deps/brotli/lib. Before, an unlinked brotli was invisible.--with-ca-fallbackand the/etc/pki/tls/certs/ca-bundle.crtabsence check are untouched. The base stays glibc 2.28 (appimage: target glibc 2.28 (manylinux_2_28 base) and stop bundling glibc #926): this is a dependency substitution, not a base bump.Verification on the rebuilt artifact (not on source)
Image built from this Dockerfile (
docker build -f build-aux/appimage/manylinux/Dockerfile), then the AppImage built with it end to end (build.py --base manylinux --steps version,configure,build,appdir,appimage):Inside the produced
OBS-Studio-Rust-0.1.0-linux-x86_64.AppImage(--appimage-extract):./lintclean (== lane lint: ok (48.4s)).Cross-distro packaged run (the acceptance run)
AppImage run 40686948715 on this branch with
platform_tests=true— full app build (obs-browser included), thentest-appimage.shon the target distros:Build AppImage— success (glibc 2.28 image built from this Dockerfile, configure, build, AppDir, AppImage, host-library loader)Test on almalinux:8— successTest on ubuntu:22.04— successTest on ubuntu:24.04— successTest on archlinux:latest— successTest on NixOS— successPublish to GitHub Releases— skipped (expected for a non-master dispatch)The run was dispatched from
aeecfcded; after the rebase onto master the branch head isbff6041d2andgit diff aeecfcded bff6041d2touches only master'sdocs/coordinatorcommit — the three files this PR changes are byte-identical, so the run's artifact is this tree's artifact.Local gate
ci-lint local-gate runonbff6041d2(rebased onto40d717db7):passed in 2311s [lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a], stamped (treead4d7727da9c). HEAD carries the attestation trailers and was pushed unchanged.The #2211 restore stays a separate change; this PR only makes the shipped brotli safe to restore it against.
Build tooling only: no
docs/features.mdline.