GNOME Bugzilla – Bug 703789
gtk.immodules still referenced after switch to immodules.cache
Last modified: 2013-07-28 21:06:47 UTC
Version: 2.24.20 The name and location of the immodules cache file was changed in 2.24.20 [1] to bring it in line with what is used in gtk3 There are still references to the old location/name though: demos/gtk-demo/main.c: g_setenv ("GTK_IM_MODULE_FILE", "../../modules/input/gtk.immodules", TRUE); gtk/gtkimmodule.c: * location. The gtk.immodules file distributed in gtk/gtkimcontext.c: * the configuration file <filename>gtk.immodules</filename> needs to be gtk/Makefile.am:TEST_DEPS = $(DEPS) gtk.immodules gtk+.spec.in:%{_sysconfdir}/gtk-2.0/gtk.immodules gtk-zip.sh.in:etc/gtk-2.0/gtk.immodules modules/input/Makefile.am: echo "$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules" ; \ modules/input/Makefile.am: $(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules ; \ modules/input/Makefile.am: echo "*** Warning: gtk.immodules not built" ; \ modules/input/Makefile.am: rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules modules/input/Makefile.am:gtk.immodules: Makefile.am $(module_LTLIBRARIES) modules/input/Makefile.am: $(top_builddir)/gtk/gtk-query-immodules-2.0 $(module_LTLIBRARIES) > gtk.immodules modules/input/Makefile.am:CLEANFILES = gtk.immodules modules/input/Makefile.am:all-local: gtk.immodules tests/testdnd.c: g_setenv ("GTK_IM_MODULE_FILE", "../modules/input/gtk.immodules", TRUE); tests/testcombochange.c: g_setenv ("GTK_IM_MODULE_FILE", "../modules/input/gtk.immodules", TRUE); tests/testtext.c: g_setenv ("GTK_IM_MODULE_FILE", "../modules/input/gtk.immodules", TRUE); tests/testgtk.c: g_setenv ("GTK_IM_MODULE_FILE", "../modules/input/gtk.immodules", TRUE); [1] https://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=c8849046860a9b17fa943247d85ddadb29262b48
Created attachment 250014 [details] [review] Patch v1 I also met this bug. Here is the patch to fix it.
Comment on attachment 250014 [details] [review] Patch v1 Patch was incomplete -- it only addressed the installation of immodules.cache rather than all of the remaining references to gtk.immodules. Worse, the uninstalled gtk-query-immodules sometimes creates an empty immodules.cache.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. Fixed with commit 12fe6a9a1ad65a46de63d619925bd1e5e7f1f9b4