public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flatpak-runtime-config] f45: Update gdk-pixbuf loaders.cache in /usr and /app
@ 2026-09-10 21:22 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-10 21:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/flatpak-runtime-config
            Branch : f45
            Commit : 633155b2bc82b4b58d9d27b29d52443373a0093e
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2025-05-04T23:29:59-04:00
            Stats  : +7/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/flatpak-runtime-config/c/633155b2bc82b4b58d9d27b29d52443373a0093e?branch=f45

            Log:
            Update gdk-pixbuf loaders.cache in /usr and /app

The XPM loader from gdk-pixbuf2-modules-extra is sometimes needed
at build time as well (e.g. openslide tests).  In that case, the
loaders.cache in /usr also needs to be updated for build time usage
in addition to that in /app for running the flatpak.

---
diff --git a/flatpak-runtime-config.spec b/flatpak-runtime-config.spec
index d18b31f..5a4e9ee 100644
--- a/flatpak-runtime-config.spec
+++ b/flatpak-runtime-config.spec
@@ -94,10 +94,13 @@ _EOF
 %transfiletriggerin -P 1999999 -- /app/lib /app/lib64 /app/etc/ld.so.conf.d
 /sbin/ldconfig
 
-%transfiletriggerin -- /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders
-GDK_PIXBUF_MODULEDIR=/app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders/ \
-    gdk-pixbuf-query-loaders-64 > /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache
-gdk-pixbuf-query-loaders-64 >> /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+%transfiletriggerin -P 99999 -- /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders
+gdk-pixbuf-query-loaders-%{__isa_bits} > /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+if [ -d /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders ]; then
+    GDK_PIXBUF_MODULEDIR=/app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders/ \
+        gdk-pixbuf-query-loaders-%{__isa_bits} >> /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+    cp /usr/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache /app/%{_lib}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+fi
 
 %transfiletriggerin -- /app/share/glib-2.0/schemas
 glib-compile-schemas /app/share/glib-2.0/schemas &> /dev/null || :

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-10 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10 21:22 [rpms/flatpak-runtime-config] f45: Update gdk-pixbuf loaders.cache in /usr and /app Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox