Repository navigation
Description
Summary
The Linux AppImage is built on Ubuntu 26.04 and requires glibc 2.43. Lower the floor to glibc 2.28 (RHEL/Alma/Rocky 8, Debian 10, Ubuntu 20.04 and newer, every current NixOS) by building on a manylinux_2_28 (AlmaLinux 8) base. Then stop bundling glibc, because every supported host would have a newer one.
Measured today
Measured on a local build of master plus #901 (bosn run --task appimage). For every ELF file in the AppDir, this is the highest GLIBC_2.x version in its objdump -T output:
| Highest glibc needed | Number of ELF files |
|---|---|
| ≤ 2.35 | 57 |
| 2.36 to 2.39 | 138 |
| 2.42 to 2.43 | 13 |
The 2.43 group includes bin/obs-studio-rust-gui, lib/obs-studio-rust/libobs.so.30, obs-websocket.so, libQt6Gui.so.6, libglib-2.0.so.0, libgnutls.so.30 and libasound.so.2. obs-outputs.so needs 2.42.
Nothing here needs features from 2.43. The versions are this high only because the code was compiled against 2.43 headers, which redirect calls to the newest symbol versions (the C23 __isoc23_strtol* family accounts for most of the 2.38 group). The same sources built against 2.28 would need only 2.28.
Why 2.28 and not lower
- 2.17 (CentOS 7) is out. Qt 6 dropped it. Current PipeWire, libwayland, FFmpeg 8 and their dependencies expect functions that came later. CentOS 7 build images are EOL and unmaintained. (Rust's own std minimum is 2.17, so the Rust side is fine; Qt and the C dependencies are what blocks.)
- 2.28 has the functions the stack calls:
getrandom(2.25),reallocarray(2.26),memfd_createandcopy_file_range(2.27),statxand C11 threads (2.28). Below that, callers fall back to raw syscalls or slower paths. - 2.28 is roughly Qt 6's documented Linux floor (RHEL 8). This needs to be confirmed for Qt 6.10, and it's the first task below.
manylinux_2_28images are maintained and come with a gcc-toolset recent enough for C++20.
Performance
The floor we build against doesn't set runtime performance. The glibc that actually runs does. AppRun already prefers the host glibc when it's newer (#621). With a 2.28 build, OBS would run on the host's glibc nearly everywhere, which means the host's newest CPU-tuned string and memcpy routines, its malloc, rseq and so on. Today it runs on the bundled 2.43. This change must not make anything slower: see the acceptance criteria below.
Simplification it allows
Once the floor is 2.28, every supported host is newer than the build, so the AppImage can stop bundling glibc. That removes:
- the
/tmp/.obs-rust-appimage-*/ld-linux-x86-64.so.2loader copy; - the ELF interpreter patching in
set-runpaths.shand AppRun; - the bundled
gconvand locale data; - the glibc half of AppRun's host-versus-bundled selection.
libstdc++ and libgcc_s from the newer gcc-toolset still have to be bundled, and the host's copy used when it's newer. AppRun already handles that.
Cost
Ubuntu 26.04's apt packages can't be bundled any more, because they're all built against 2.43. Qt 6.10, FFmpeg/libavutil (including the host-VA compatibility build), and the other bundled libraries (gnutls, glib, libaom, libjxl, lame, lcms2 and so on) have to be built from source on the 2.28 base. The obs-deps tooling already does this for macOS and Windows.
Plan
- Spike: build Qt 6.10 (qtbase plus the modules OBS ships, with the Wayland and xcb platform plugins) on
quay.io/pypa/manylinux_2_28_x86_64using its gcc-toolset. Report any blockers. - Add a guard first (RED): a check in
build-aux/appimage/check-appdir.sh(ortest-appimage.sh) that fails when any ELF file in the AppDir requires aGLIBC_version above 2.28. On today's build it fails, listing the 13 files above plus the 2.36 to 2.39 group. - Build the bundled dependencies on the 2.28 base (extend
obs-depsor add a Linux recipe), and cache them like the other prebuilt dependencies (see design: obs-nvenc Rust CUDA/NVENC loader; defer obs-studio-libs prebuilt cache to build deps only #520 and infra: obs-studio-libs prebuilt build-dependency cache (phase 2 of #520), gated on CI-time measurement #525). - Move
build-aux/appimage/build.pyand theappimage.yamlbuild job onto the 2.28 base. ci: Move the AppImage build into build-aux/appimage/build.py; add bosn task #901 turns the build into a script with abosn run --task appimagetask. Add a pinned 2.28 stack Dockerfile for it. - Remove the bundled glibc and the loader patching from
assemble-appdir.sh,set-runpaths.shandAppRun. - Extend
test-appimage.sh(packaging rule, bug: AppImage: releases crash on launch when a scene has a PipeWire screen capture #426) to run the AppImage on the oldest hosts it supports: AlmaLinux 8, Debian 10/11, Ubuntu 20.04/22.04, plus the existing newer ones. Use a saved profile with screen capture, camera and microphone sources.
Acceptance
- The step 2 guard passes: no ELF file in the AppDir requires a glibc newer than 2.28.
- The AppImage starts and records on the oldest supported containers, and on current distros including NixOS.
- No performance regression: compare against today's build on the same machine. That means obs-websocket
GetStats(averageFrameRenderTime, skipped frames) and the profiler'sobs_graphics_threadmedian for a fixed scene with a camera, a 4K screen capture and an x264/NVENC recording. - The AppImage contains no glibc, and the
/tmploader isn't needed any more.
Related
- appimage: Bundled glibc 2.43 can't load host Mesa's LLVM on glibc 2.44 hosts (root cause of #617) #621: AppRun's choice between host and bundled glibc and libstdc++
- appimage: use host VA drivers with audited FFmpeg compatibility and GPU checks #722: the AppImage uses the host's GPU, VA and EGL stack
- research: NixOS / non-FHS hardware acceleration dependency gaps #891: NixOS and non-FHS dependency gaps
- ci: Move the AppImage build into build-aux/appimage/build.py; add bosn task #901: the AppImage build moved into
build.pywith abosntask - design: obs-nvenc Rust CUDA/NVENC loader; defer obs-studio-libs prebuilt cache to build deps only #520 and infra: obs-studio-libs prebuilt build-dependency cache (phase 2 of #520), gated on CI-time measurement #525: prebuilt dependency cache
- bug: AppImage: releases crash on launch when a scene has a PipeWire screen capture #426: packaging changes must be tested on the packaged artifact
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 15, 2026
Claiming. Working on branch
appimage/glibc-2.28: RED guard first, then the manylinux_2_28 spike for Qt 6.10.github-actions commentedon Oct 15, 2026
Claim bot: claimed by @zackees. It expires after 48 h (8 h on
criticalissues) without a progress comment here or a push, comment or review on a linked PR.appimage: Build on manylinux_2_28 (glibc 2.28) without bundling glibc
appimage: Wire in the host-library loader; typed host-libs.json; no-d…
appimage: GREEN on the glibc 2.28 base, dependencies from obs-studio-…
ci: Build the AppImage in the glibc 2.28 image
zackees commentedon Oct 16, 2026
GREEN on #927 (
5343db3b9, CI switcha76c1ebd5).Floor:
check-glibc-floor.sh: all 239 ELF files run on glibc 2.28 with GLIBCXX_3.4.25 (243 failed in the RED commit). No bundled glibc, no/tmploader; executables use/lib64/ld-linux-x86-64.so.2and are PIE. 97.5 MB / 143 bundled libraries (was 139 MB / 273). Every bundled .so is PIC (0 text relocations).Dependencies: built once in manylinux_2_28 and fetched from https://github.com/obs-rust/obs-studio-libs (root https://raw.githubusercontent.com/obs-rust/obs-studio-libs/assets/manifest.json): qt6 6.11.1, ffmpeg 8.1.2 (+codecs), pipewire 1.2.7, glib 2.80.5, fdk-aac 2.0.3, qrcodegen 1.8.0, headers. The build image compiles only OBS.
Runs on NixOS 26.05 (RTX 3060, Wayland, plain appimageTools wrapper, no driver-path workaround): Qt 6.11.1, NVIDIA GL adapter, VA-API reported unavailable by the #959 shim (no libva on the host) instead of failing to start.
Performance, same scene (1080p YUYV camera + 4K PipeWire screen capture, 1080p→720p, 30 fps), 30 s each, same load:
No regression (one pair of runs on a loaded machine, load avg ~50, so the render-time difference is within noise).
Found along the way: a non-PIE (or
-fPIE, including at the LTO link) OBS executable gets copy relocations of Qt's data with this Qt (reduce-relocations):signal not found, thenqGuiApp == nullptrat startup. Fixed incmake/linux/compilerconfig.cmake(-fPIC, linked as PIE).appimage: Track deps.lock.json; fetch uv, Implib.so and appimagetool …
appimage: Build on a glibc 2.28 base and stop bundling glibc (obs-rus…
zackees commentedon Oct 16, 2026
Acceptance, in CI: the release-gate lanes from #1063 pass on the AppImage built once in the glibc 2.28 image (run https://github.com/obs-rust/obs-studio/actions/runs/38886456013):
#1063's PR checks: 27 passed, 0 failed. The lanes run only from the release gate (release-rust.yaml / tag pushes), not in PR CI.
Fixed on the way: libva shim version names (loader warning), ffmpeg 8.1.2 r2 (libtheoraenc links libtheoradec), test-appimage.sh for an AppImage without bundled glibc. Performance (no regression) is in the comment above. #927 was admin-merged before its AppImage CI finished; #1063 is the CI-gated proof.
appimage: Release-gate platform tests on AlmaLinux 8, Ubuntu 22.04, A…
zackees commentedon Oct 16, 2026
Performance, three alternating pairs (60 s each, same scene: 1080p YUYV camera + 4K PipeWire capture → 720p30, same machine and load, load avg 37–43 from other jobs; 16 cores):
No regression: same frame rate, slightly fewer skipped frames, render medians equal or lower and steadier; the p90s overlap within this machine's run-to-run noise.
#1063 (release-gate lanes, CI-proven) merged 2026-10-16T10:33Z. The glibc 2.28 AppImage ships with the next release-rust.yaml run.
zackees commentedon Oct 17, 2026
In the real release run (scheduled release-rust.yaml, https://github.com/obs-rust/obs-studio/actions/runs/38911188146, after #927 and #1063): AppImage built in the glibc 2.28 image, and the release-gate lanes passed: AlmaLinux 8 ✅, Ubuntu 22.04 ✅, Arch ✅, NixOS ✅. The pre-release was not published because of an unrelated Windows packaging failure (vcruntime140.dll missing from the zip), filed separately. The glibc 2.28 AppImage ships with the first beta after that is fixed.
frontend: Name the logged D3D11 adapter when enumeration skips it (WA…
release-rust: Look for Rust code in libobs-with-rust, not the shipped…
build: macOS OBS-Studio-Rust builds also build libobs-with-rust (obs-…
ci: Assemble the AppImage AppDir from Python (#962)
ci: Assemble the AppImage AppDir from Python (#962)
build(appimage): link the pinned brotli 1.2.1 into the AppImage's lib…
ci: Assemble the AppImage AppDir from Python (obs-rust#962) (obs-rust…
appimage: link the pinned brotli 1.2.1 into the AppImage's libcurl (o…