Skip to content

appimage: use the host glibc when newer, never bundle the GPU driver stack (#621, #625) - #650

Merged
zackees merged 6 commits into
masterfrom
fix/621-appimage-host-gl
Oct 13, 2026
Merged

zackees merged 6 commits into
masterfrom
fix/621-appimage-host-gl

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Fixes #621
Fixes #625

Root cause

Design

  • The GPU driver stack is no longer bundled (libGL*, libEGL*, libGLX*, libOpenGL, libGLdispatch, libGLES*, libglapi, libgbm, libdrm*, libvulkan*, libwayland-client/-egl/-server, libgallium, libLLVM, NVIDIA).
  • glibc, libstdc++ and libgcc_s move to glibc/ (outside usr/lib). Every ELF's RPATH ends with /tmp/.obs-rust-appimage-<hash>/lib. AppRun compares the host's ld.so --version and libstdc++ GLIBCXX_3.4.N with 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=1 forces the bundle; the choice is recorded in /tmp/.obs-rust-appimage-<hash>/mode. In host mode GCONV_PATH is unset.
  • libva stays bundled (deviation from the appimage: Bundled GL/GBM/DRM/VA/Wayland libraries override the host driver stack #625 text): the bundled FFmpeg needs vaMapBuffer2, which Ubuntu 22.04's libva lacks, so excluding it made the AppImage fail to start there. AppRun points LIBVA_DRIVERS_PATH at the host's dri directories instead.

Tests (RED then GREEN)

…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.
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"}
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 13, 2026
@zackees
zackees merged commit 019bae1 into master Oct 13, 2026
24 of 25 checks passed
@zackees
zackees deleted the fix/621-appimage-host-gl branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

1 participant