summaryrefslogtreecommitdiffstats
path: root/poky/scripts/postinst-intercepts/update_pixbuf_cache
diff options
context:
space:
mode:
Diffstat (limited to 'poky/scripts/postinst-intercepts/update_pixbuf_cache')
-rw-r--r--poky/scripts/postinst-intercepts/update_pixbuf_cache11
1 files changed, 11 insertions, 0 deletions
diff --git a/poky/scripts/postinst-intercepts/update_pixbuf_cache b/poky/scripts/postinst-intercepts/update_pixbuf_cache
new file mode 100644
index 000000000..5d44075fb
--- /dev/null
+++ b/poky/scripts/postinst-intercepts/update_pixbuf_cache
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders
+export GDK_PIXBUF_FATAL_LOADER=1
+
+PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir}\
+ $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \
+ >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \
+ sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache
OpenPOWER on IntegriCloud