From 45a764504e497ba0210fc6cc675f09ec2e6714b3 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Tue, 24 Mar 2026 16:57:59 -0300 Subject: [PATCH] build/linux: Fix third-party plug-ins not finding babl extensions Closes: #16038 This may be related to how our babl relocatable heuristics works on Linux: depending on the process path, which is tricky on Snap, specially for 3P plug-ins which have their own sandboxed processes. Ideally, we should fix it on babl but this workaround if good enough. --- build/linux/snap/snapcraft.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/linux/snap/snapcraft.yaml b/build/linux/snap/snapcraft.yaml index 319a01fabf..398b6d2734 100644 --- a/build/linux/snap/snapcraft.yaml +++ b/build/linux/snap/snapcraft.yaml @@ -48,6 +48,11 @@ layout: #Needed at runtime because etc is usually not on /usr prefix /etc/gimp: bind: $SNAP/etc/gimp + #Needed by 3P plug-ins. See: #16038 + /usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/babl-0.1: + bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/babl-0.1 + /usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gegl-0.4: + bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gegl-0.4 slots: dbus-gimp: @@ -108,7 +113,6 @@ parts: meson-parameters: - -Dprefix=/usr - -Dlibdir=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR - - -Drelocatable=enabled #meson.build forces non-relocatable .pc. See: https://github.com/mesonbuild/meson/issues/14346 - -Dpkgconfig.relocatable=true - -Dgi-docgen=disabled @@ -136,7 +140,6 @@ parts: meson-parameters: - -Dprefix=/usr - -Dlibdir=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR - - -Drelocatable-bundle=yes #meson.build forces non-relocatable .pc. See: https://github.com/mesonbuild/meson/issues/14346 - -Dpkgconfig.relocatable=true - -Dgi-docgen=disabled