# AppImage library excludelist for AfterAPro, taken from Fissure.
#
# packaging/linux/bundle-libs.sh copies the binary's shared library dependency
# closure into the AppDir, EXCEPT the libraries named here, which must come
# from the host. Everything not listed (the Allegro family, sqlite, libjpeg,
# libpng, libwebp, lensfun, libxml2) is bundled, so the AppImage runs on a
# system where those are not installed.
#
# One basename per line. '#' starts a comment; blank lines are ignored.
#
# The first block is the canonical AppImage excludelist
# (https://github.com/AppImageCommunity/pkg2appimage, excludelist): the glibc
# core, the C++ runtime, and the GL/driver stack must match the running
# kernel/driver and can never be safely bundled.

ld-linux.so.2
ld-linux-x86-64.so.2
libanl.so.1
libBrokenLocale.so.1
libcidn.so.1
libc.so.6
libdl.so.2
libm.so.6
libmvec.so.1
libnss_compat.so.2
libnss_dns.so.2
libnss_files.so.2
libnss_hesiod.so.2
libnss_nisplus.so.2
libnss_nis.so.2
libpthread.so.0
libresolv.so.2
librt.so.1
libthread_db.so.1
libutil.so.1
libstdc++.so.6
libGL.so.1
libEGL.so.1
libGLdispatch.so.0
libGLX.so.0
libOpenGL.so.0
libdrm.so.2
libglapi.so.0
libgbm.so.1
libxcb.so.1
libX11.so.6
libX11-xcb.so.1
libwayland-client.so.0
libxcb-dri3.so.0
libxcb-dri2.so.0
libcom_err.so.2
libexpat.so.1
libgcc_s.so.1
libgpg-error.so.0
libICE.so.6
libSM.so.6
libusb-1.0.so.0
libuuid.so.1
libz.so.1
libasound.so.2
libjack.so.0
libpipewire-0.3.so.0
libfontconfig.so.1
libfreetype.so.6
libharfbuzz.so.0
libfribidi.so.0
libgmp.so.10

# Additions from Hook: the desktop runtime that Allegro pulls in only for native
# file dialogs and message boxes (allegro_dialog -> GTK 3). Any host able to
# show this GUI already provides GTK/GLib/Pango/Cairo, and bundling them would
# break GTK's module/loader lookups (gdk-pixbuf loaders, gio modules, theme
# engines bake host-specific absolute paths). Relying on the host is both
# smaller and more reliable than shipping a half-wired GTK stack. The X11
# extension libraries and the desktop integration libs are excluded for the
# same reason: they pair with the host's libX11 / session services.

libglib-2.0.so.0
libgobject-2.0.so.0
libgio-2.0.so.0
libgmodule-2.0.so.0
libgthread-2.0.so.0
# GLib's own dependencies. GLib is the host's, so these must be too: a copy
# from an older build distribution is loaded ahead of the host's by
# LD_LIBRARY_PATH, and the host GLib then runs against a libpcre2 older than
# the one it was linked with ("no version information available").
libpcre2-8.so.0
libffi.so.8
libgtk-3.so.0
libgdk-3.so.0
libgdk_pixbuf-2.0.so.0
libpango-1.0.so.0
libpangocairo-1.0.so.0
libpangoft2-1.0.so.0
libcairo.so.2
libcairo-gobject.so.2
libatk-1.0.so.0
libatk-bridge-2.0.so.0
libatspi.so.0
libepoxy.so.0
libpixman-1.so.0
libgraphite2.so.3
libthai.so.0
libdatrie.so.1
libxkbcommon.so.0
libwayland-cursor.so.0
libwayland-egl.so.1
libcloudproviders.so.0
libdbus-1.so.3
libselinux.so.1
libsystemd.so.0
libmount.so.1
libblkid.so.1
libseccomp.so.2
liblcms2.so.2
libglycin-2.so.0
libXext.so.6
libXcursor.so.1
libXi.so.6
libXinerama.so.1
libXrandr.so.2
libXrender.so.1
libXfixes.so.3
libXdamage.so.1
libXcomposite.so.1
libXau.so.6
libXdmcp.so.6
libXRes.so.1
libxcb-render.so.0
libxcb-shm.so.0
