Repository navigation
appimage: use the host glibc when newer, never bundle the GPU driver stack (#621, #625) - #650
Merged
Merged
Conversation
…from the host (RED) The AppImage bundles glibc 2.43 and the GL/GBM/DRM/VA/Wayland libraries. On Arch, host Mesa's libLLVM cannot load against the bundled glibc (#621) and the bundled libraries shadow the host driver stack (#625). Add archlinux:latest to the distribution matrix, assert that no driver stack library is bundled, that the C library is the host's when it is newer, and that video initialisation succeeds with host Mesa.
…river stack (GREEN) Fixes #621 Fixes #625 - glibc, libstdc++ and libgcc_s move to glibc/; AppRun installs the host's loader and leaves the RPATH directory empty when the host's glibc and libstdc++ are at least as new, so host Mesa/LLVM load; otherwise it installs the bundled ones. - libGL*/libEGL*/libGLX*/libOpenGL/libgbm/libdrm/libva*/libvulkan/ libwayland-client/-egl/libgallium/libLLVM are excluded from the bundle.
…st containers; ignore Qt plugin names
…d hosts have), keep its drivers on the host
Local-Gate: v1 tree=7dfa03f131fcee76a4a21ec784dc24572cd185da secs=373 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791930426,"gate":"rust/all/fmt","host":"linux-x86_64","key":"490be82295510c7013f963898b8dc3b5fec4952f85f3aa1abd3267c75ea8b9fa","lane":"lint","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":16,"stamp":"2444029bddaab91feb7c61af4dee29e8","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"490be82295510c7013f963898b8dc3b5fec4952f85f3aa1abd3267c75ea8b9fa","lane":"lint","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":16,"stamp":"dc2689f094a49cc3d325f9d9321dc3b7","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"c357bb53235bdf8d3b882b9dfef176701180f55fd6b5180eecd4b1f4eb0e73d5","lane":"rust-test","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":117,"stamp":"aafb9ec769952243c7af3ce1fd006e0b","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"f19f2a2f38b286a1ee8abbb5fcb0d47d","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"4ff363456bf61d0aae0b003ad881aad8","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"b129d51ee1bfbe38c90f7174c926f78a","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"12a867089739597a8fd13ccccda24c01","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"23d95d525bbddfd270363f5126186470","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"f91ebee176312e6fe115ecee1af8894a9695a70d0ec668244e60aa99489a6008","lane":"cross","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":91,"stamp":"1a473bb564ad6520b88cfb0f316167bc","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
Ci-Attestation: {"at":1791930426,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"79e1d54d03b7ba11a490f46c800976d354cbf87bb3a01bd6c1c0640f6f78260a","lane":"tier2-linux","parents":["bb2b8602cb194779eff8ea734a3d9deee89518ad"],"secs":148,"stamp":"3907d1f408c0dcb88b73074d7cd4c8e3","tree":"7dfa03f131fcee76a4a21ec784dc24572cd185da","v":1,"via":"run"}
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #621
Fixes #625
Root cause
libEGL_mesa->libgallium-> hostlibLLVM) cannot load against it (libm.so.6: version GLIBC_2.44 not found), soeglGetDisplayfailed and video init failed (root cause of bug: graphics: video initialization fails on AMD Radeon RX 9060 XT Copy title #617).libEGL,libGLX,libOpenGL,libGLdispatch,libgbm,libdrm,libvulkan,libwayland-client/-eglwere bundled and, through the relative RPATH, shadowed the host driver stack.Design
libGL*,libEGL*,libGLX*,libOpenGL,libGLdispatch,libGLES*,libglapi,libgbm,libdrm*,libvulkan*,libwayland-client/-egl/-server,libgallium,libLLVM, NVIDIA).glibc/(outsideusr/lib). Every ELF's RPATH ends with/tmp/.obs-rust-appimage-<hash>/lib.AppRuncompares the host'sld.so --versionand libstdc++GLIBCXX_3.4.Nwith the bundled ones. If the host's are at least as new it installs the host's loader at the fixed interpreter path and leaves that directory empty (host libc is found, host Mesa/LLVM load); otherwise it installs the bundled loader and copies the bundled libs there. Older hosts (Ubuntu 22.04) keep working.OBS_APPIMAGE_BUNDLED_LIBC=1forces the bundle; the choice is recorded in/tmp/.obs-rust-appimage-<hash>/mode. In host modeGCONV_PATHis unset.libvastays bundled (deviation from the appimage: Bundled GL/GBM/DRM/VA/Wayland libraries override the host driver stack #625 text): the bundled FFmpeg needsvaMapBuffer2, which Ubuntu 22.04's libva lacks, so excluding it made the AppImage fail to start there.AppRunpointsLIBVA_DRIVERS_PATHat the host'sdridirectories instead.Tests (RED then GREEN)
test-appimage.sh+appimage.yaml: newarchlinux:latestlane (all four scenarios); host driver-stack libs installed in the Debian/Fedora containers; bundle scenario fails if any driver-stack lib is bundled; first-start checks AppRun's runtime mode (host when the host glibc is newer), that libc/libstdc++ are not from the AppImage then, that no driver-stack lib is mapped from the AppImage, and that OBS reports noeglGetDisplay/video init failure.Failed to get EGL display using eglGetDisplay/Failed to initialize video, bundle scenario fails on the bundled stack): https://github.com/obs-rust/obs-studio/actions/runs/38471602600libwayland-serverin the test allowlist, fixed in the last commit).