Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 317445

Summary: app-i18n/scim-1.4.9-r1 creates gtk.immodules in / instead of /etc/gtk-2.0
Product: Gentoo Linux Reporter: Faustus <orlovm>
Component: New packagesAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: major CC: galtgendo
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 306035    

Description Faustus 2010-04-27 10:25:04 UTC
In the ebuild:

get_gtk_confdir() {
    # An arch specific config directory is used on multilib systems
    has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
    GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
}

Then in pkg_postinst():
[ -x /usr/bin/gtk-query-immodules-2.0 ] && gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"

But who calls get_gtk_confdir()? No one, it seems, at least in my setup. So gtk.immodules is created in /.

Suggest adding
  get_gtk_confdir
to the beginning of
  pkg_postinst
  pkg_postrm
similarly to gtk+ ebuild.

Reproducible: Always

Steps to Reproduce:
emerge -1 scim
Actual Results:  
/ has gtk.immodules

Expected Results:  
/etc/gtk-2.0/[*-pc-linux-gnu/ on amd64] has gtk.immodules
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2010-04-28 10:03:14 UTC
I'm sorry. Fixed it.
Comment 2 Faustus 2010-04-28 11:58:46 UTC
Thank you!
Worked for me when I checked.

The first time gtk.immodules is still created in / though, because unmerge uses the previous ebuild from /var/db/pkg. Nothing to do about that...