From 481e81ec99b09f3819ed159890ac3d09f3847d5c Mon Sep 17 00:00:00 2001 From: tadeasf Date: Mon, 17 Aug 2026 22:01:23 +0200 Subject: [PATCH] AppImage: bundle SDL2 wxPython's libwx_gtk3u_core has a hard DT_NEEDED on libSDL2-2.0.so.0, but the wheel is installed in after_bundle, after appimage-builder resolved apt dependencies, so SDL2 was never bundled and the host copy was used instead. On Debian testing that copy is sdl2-compat, whose library constructor aborts the process when it cannot dlopen libSDL3.so.0. It cannot, because the AppDir libraries come first on the search path and host SDL3 3.4.14 needs a newer libxkbcommon than the bundled one, so pyfa dies during 'import wx' with 'Failed loading SDL3 library.' Bundling SDL2 removes the dependency on whatever the host provides. --- dist_assets/linux/AppImageBuilder.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/dist_assets/linux/AppImageBuilder.yml b/dist_assets/linux/AppImageBuilder.yml index 5a5f64709..7757432b5 100644 --- a/dist_assets/linux/AppImageBuilder.yml +++ b/dist_assets/linux/AppImageBuilder.yml @@ -34,6 +34,7 @@ AppDir: - libpcre2-32-0 # https://github.com/pyfa-org/Pyfa/issues/2572 - libnotify4 # https://github.com/pyfa-org/Pyfa/issues/2598 - libwayland-client0 # https://github.com/pyfa-org/Pyfa/issues/2600 + - libsdl2-2.0-0 # wx core links against it, host copy is sdl2-compat on Debian testing and aborts on load # https://github.com/pyfa-org/Pyfa/issues/2740 exclude: - hicolor-icon-theme - humanity-icon-theme