Skip to content

build: add a pinned brotli 1.2.1 recipe for the AppImage (#2774) - #22

Merged
zackees merged 1 commit into
mainfrom
build/2774-brotli-1.2.1
Oct 28, 2026
Merged

zackees merged 1 commit into
mainfrom
build/2774-brotli-1.2.1

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

Adds recipes/linux/brotli.sh, a pinned brotli 1.2.1 built into /opt/obs-deps/brotli by the manylinux_2_28 image. Refs obs-rust/obs-studio#2774: the AppImage's libcurl currently decodes with the AlmaLinux 8 base's brotli 1.0.6, inside CVE-2026-111497's vulnerable range (1.0.3–1.2.0), so #2211's outgoing-HTTP stop-gap cannot be reverted while that base is in use. 1.2.1 (published 2026-10-21) is the first release past the range.

Built and published

Built in the digest-pinned manylinux_2_28 image (quay.io/pypa/manylinux_2_28_x86_64@sha256:4131ddd7…), packed by recipes/linux/build.sh brotli:

  • dist/brotli-1.2.1-linux-x86_64-glibc2.28-release.tar.zst, 443,768 bytes, sha256 eb4f2214dbc91eb1529e4a61499fce26ae03c06dde10935cdc6e8cf0d1b0793d.
  • Contents: lib/libbrotli{common,dec,enc}.so.1.2.1 with the usual .so/.so.1 symlinks, lib/pkgconfig/libbrotli*.pc, headers and man pages.
  • Verified from the extracted artifact: BrotliDecoderVersion() returns 0x1002001 = 1.2.1 (the base's is 0x1000006 = 1.0.6), and the artifact's glibc floor is still 2.28.
  • Published: release brotli-1.2.1 with that asset (the uploaded asset's digest matches the packed sha256), and brotli/manifest.json + the root Index on the assets branch (dad22f7). The Index entry resolves over plain HTTPS.

Tests

tests/test_brotli_recipe.py (3 checks): the recipe's pinned VERSION is greater than 1.2.0; it builds shared libraries without the codec's own tests; and build.sh includes brotli in its default tool list. uv run --group dev pytest → 28 passed; uv run --group dev ruff check . and ruff format --check . → clean.

Not in this PR

The consumer half stays in obs-rust/obs-studio: add brotli to the AppImage image's deps.lock.json/CMAKE_PREFIX_PATH and make the libcurl SRPM rebuild link against the pinned prefix, then verify in the AppImage (curl_version() reports the pinned brotli, BrotliDecoderVersion() out of range) and run test-appimage.sh across the stock containers. That needs the appimage image rebuild, so it is a separate PR in that repository; this one only publishes the dependency it consumes. A pinned curl 8.x recipe is the other half of #2774's suggested scope and remains to be added.

The AppImage's libcurl decodes with the AlmaLinux 8 base's brotli 1.0.6,
which is inside CVE-2026-111497's range (1.0.3-1.2.0). Pin 1.2.1 (the first
release past it) as a recipe, build it into /opt/obs-deps/brotli, and add a
test that keeps the pin out of the vulnerable range.

Refs obs-rust/obs-studio#2774
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