summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/gtk-immodules-cache.bbclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/gtk-immodules-cache.bbclass b/meta/classes/gtk-immodules-cache.bbclass
index 9ffb03b9da..a8855af60d 100644
--- a/meta/classes/gtk-immodules-cache.bbclass
+++ b/meta/classes/gtk-immodules-cache.bbclass
@@ -31,7 +31,18 @@ fi
gtk_immodule_cache_postrm() {
if [ "x$D" != "x" ]; then
- exit 1
+ for maj_ver in 2 3; do
+ if [ -x $D${bindir}/gtk-query-immodules-$maj_ver.0 ]; then
+ IMFILES=$(ls $D${libdir}/gtk-$maj_ver.0/*/immodules/*.so)
+ ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-$maj_ver.0')} \
+ $IMFILES > $D/etc/gtk-$maj_ver.0/gtk.immodules 2>/dev/null &&
+ sed -i -e "s:$D::" $D/etc/gtk-$maj_ver.0/gtk.immodules
+
+ [ $? -ne 0 ] && exit 1
+ fi
+ done
+
+ exit 0
fi
if [ ! -z `which gtk-query-immodules-2.0` ]; then
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules