Flatpak apps fail to load libgallium-devel

Multiple flatpak apps including Liferea and Evolution fail to start, with the error

error while loading shared libraries: libgallium-24.3.0-devel.so: cannot open shared object file: No such file or directory

Both of these use org.gnome.Platform version 46 (but so does e.g. Rhythmbox which doesn’t have this problem).
The library libgallium-24.3.0-devel.so is provided by the asahi mesa flatpak package. It is accessible from the flatpak sandbox so I’m not sure why it can’t be loaded.
I have found a workaround:

flatpak run --command=env net.sourceforge.liferea LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/GL/host/lib/ /app/bin/liferea

(substitute liferea and net.sourceforge.liferea with your app)
Setting LD_LIBRARY_PATH in flatseal doesn’t work, apparently flatpak clears that.

Updates for mesa-asahi-23.08-flatpak1 and mesa-asahi-24.08-flatpak(version 24.3.0~asahipre20240930-1) with a baked in workaround (adding aDT_RUNPATH` for select mesa libraries) are available since a couple of minutes ago. After system upgrade the issue should be fixed for all apps without manual intervention.

The issue was that flatpak caches ld.so.cache (a list of all available libraries). 24.3.0~asahipre20240925-1 added a new library in the flatpak extension (libgallium-24.3.0-devel.so) but flatpak did not notice that and there is no mechanism to allow the extension to trigger an updated.

1 Like