eclass: fix gnome2_query_immodules_gtk{2,3} when ROOT != "/"
authorAlexandre Rostovtsev <tetromino@gentoo.org>
Sun, 23 Aug 2015 22:04:44 +0000 (18:04 -0400)
committerAlexandre Rostovtsev <tetromino@gentoo.org>
Sun, 23 Aug 2015 22:07:26 +0000 (18:07 -0400)
Thanks-to: Risimi
Gentoo-Bug: 558506

eclass/gnome2-utils.eclass

index 7d3fc386ce0cd8be073821cdf6112fe64cb35551..476fb28823707b1cd2296fb922604fb34a426819 100644 (file)
@@ -447,7 +447,10 @@ gnome2_query_immodules_gtk2() {
        local updater=${EPREFIX}/usr/bin/${CHOST}-gtk-query-immodules-2.0
        [[ ! -x ${updater} ]] && updater=${EPREFIX}/usr/bin/gtk-query-immodules-2.0
 
-       "${updater}" --update-cache
+       ebegin "Updating gtk2 input method module cache"
+       GTK_IM_MODULE_FILE="${EROOT}usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache" \
+               "${updater}" --update-cache
+       eend $?
 }
 
 # @FUNCTION: gnome2_query_immodules_gtk3
@@ -458,7 +461,10 @@ gnome2_query_immodules_gtk3() {
        local updater=${EPREFIX}/usr/bin/${CHOST}-gtk-query-immodules-3.0
        [[ ! -x ${updater} ]] && updater=${EPREFIX}/usr/bin/gtk-query-immodules-3.0
 
-       "${updater}" --update-cache
+       ebegin "Updating gtk3 input method module cache"
+       GTK_IM_MODULE_FILE="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" \
+               "${updater}" --update-cache
+       eend $?
 }
 
 # @FUNCTION: gnome2_disable_deprecation_warning