Like it happened with gtk-pixbuf-query-loaders, gtk-query-immodules is used in an unsafe way as well. There are several reasons that could make gtk-query-immodules fail at runtime (SIG*, missing sonames, etc).
Using it this way is really wrong (and you know why ;-) ): gtk-query-immodules > "${ROOT}/.../gtk.immodules" The affected pkgs are: app-emulation/emul-linux-x86-gtklibs app-i18n/atokx2 app-i18n/atokx3 app-i18n/fcitx app-i18n/gtkimprime app-i18n/ibus app-i18n/im-canna app-i18n/im-freewnn app-i18n/imhangul app-i18n/im-ja app-i18n/scim app-i18n/scim-bridge app-i18n/uim app-i18n/x-unikey x11-libs/gtk+ and should be fixed. -- Fabio Erculiani http://lxnay.com