[neon/snap-packaging/kf6-core-sdk/work.core24] /: Need pixbuf... both theme issues and symbol errors on startup.
Scarlett Moore
null at kde.org
Thu May 1 12:09:39 BST 2025
Git commit 54b155e4cc5e26ec30afb10c315efdd568bd7776 by Scarlett Moore.
Committed on 01/05/2025 at 11:08.
Pushed by scarlettmoore into branch 'work.core24'.
Need pixbuf... both theme issues and symbol errors on startup.
M +35 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kf6-core-sdk/-/commit/54b155e4cc5e26ec30afb10c315efdd568bd7776
diff --git a/snapcraft.yaml b/snapcraft.yaml
index a2e6eeb..5af5655 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -17,6 +17,7 @@ platforms:
build-for: [arm64]
environment:
LD_LIBRARY_PATH: "/snap/kde-qt6-core24-sdk/current/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}:/snap/kde-qt6-core24-sdk/current/usr/lib:$SNAP/usr/lib:$SNAP/lib/:$SNAP/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}:/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}:/usr/lib:/lib"
+ GDK_PIXBUF_MODULE_FILE: $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders.cache
slots: {}
package-repositories:
- type: apt
@@ -110,6 +111,40 @@ parts:
build-packages:
- python3-pip
+ gdk-pixbuf:
+ after: [ meson-deps ]
+ source: https://gitlab.gnome.org/GNOME/gdk-pixbuf.git
+ source-tag: '2.42.10'
+ source-depth: 1
+ plugin: meson
+ meson-parameters:
+ - --prefix=/usr
+ - -Doptimization=3
+ - -Ddebug=true
+ - -Dinstalled_tests=false
+ - -Dgtk_doc=false
+ - -Ddocs=false
+ - -Dintrospection=enabled
+ - -Dman=false
+ - -Dtests=false
+ - -Dinstalled_tests=false
+ build-environment: *buildenvironment
+ override-build: |
+ set -eux
+ craftctl default
+ cp $CRAFT_PART_INSTALL/usr/bin/gdk-pixbuf-query-loaders $CRAFT_STAGE/usr/bin/
+ LOADERS_PATH=$CRAFT_PART_INSTALL/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/2.10.0/loaders
+ $CRAFT_PART_INSTALL/usr/bin/gdk-pixbuf-query-loaders $LOADERS_PATH/*.so > $LOADERS_PATH.cache
+ # workaround for thumbnailer being in a different directory in the snap env
+ sed -i 's#/usr/bin/##' $CRAFT_PART_INSTALL/usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
+ organize:
+ usr/bin/gdk-pixbuf-query-loaders: usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
+ build-packages:
+ - libpng-dev
+ - libjpeg-dev
+ - libtiff-dev
+ - libpango1.0-dev
+
gsettings-desktop-schemas:
after:
- meson-deps
More information about the Neon-commits
mailing list