Skip to content

appimage: test that OBS starts on a host without libva (#959) - #1981

Merged
zackees merged 1 commit into
masterfrom
fix/959-libva-shims
Oct 23, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/959-libva-shims

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Refs #959.

The loader #959 asks for already shipped inside #927 (build-aux/appimage/hostlib/: Implib.so shims libobs-va*.so.2, patchelf --replace-needed, and the obs-hostlib-check preflight in AppRun). The issue stayed open because no packaged-artifact test covers it, which the packaging rule (#426) requires. This PR adds lane 1.

Change: a new test-appimage.sh scenario, first-start-no-libva, run on AlmaLinux 8 and Ubuntu 22.04 in appimage.yaml. It deletes every libva*.so* from the container, then runs the full first-start checks (window, rendering, mapped libraries) and also requires:

  • no error while loading shared libraries;
  • no libva mapped into OBS;
  • at most one hostlib: va line, and if there is one it says unavailable. The shim resolves lazily, so it logs only when something calls into VA-API.

Evidence (packaged AppImage, the way users run it):

Still open on #959: lane 2 (libva present: the host's libva is mapped), lane 3 (a required library removed: exit 127 and the message), and lane 4 (NixOS-shaped /run/opengl-driver/lib; test-appimage-nixos.sh partly covers it). hostlib/test-hostlib.sh covers those paths on a small AppDir but is not run in CI.

New test-appimage.sh scenario first-start-no-libva: deletes libva from the
container, then runs the first-start checks and requires that OBS maps no
libva and that the hostlib shim reports it unavailable at most once. Runs on
AlmaLinux 8 and Ubuntu 22.04.
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit a6a1c09 Oct 23, 2026
30 checks passed
@zackees
zackees deleted the fix/959-libva-shims 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

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant