diff options
Diffstat (limited to 'scripts/postinst-intercepts/update_pixbuf_cache')
-rw-r--r-- | scripts/postinst-intercepts/update_pixbuf_cache | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache new file mode 100644 index 0000000000..64033dc48a --- /dev/null +++ b/scripts/postinst-intercepts/update_pixbuf_cache | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders | ||
4 | |||
5 | PSEUDO_UNLOAD=1 qemuwrapper $D$(readelf -l $D${bindir}/gdk-pixbuf-query-loaders|grep "Requesting program interpreter"|sed -e 's/^.*\[.*: \(.*\)\]/\1/') \ | ||
6 | --library-path $D/lib:$D/usr/lib $D${bindir}/gdk-pixbuf-query-loaders \ | ||
7 | >$GDK_PIXBUF_MODULEDIR/../loaders.cache 2>/dev/null && \ | ||
8 | sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache | ||
9 | |||
10 | |||