Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317445 - app-i18n/scim-1.4.9-r1 creates gtk.immodules in / instead of /etc/gtk-2.0
Summary: app-i18n/scim-1.4.9-r1 creates gtk.immodules in / instead of /etc/gtk-2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 306035
  Show dependency tree
 
Reported: 2010-04-27 10:25 UTC by Faustus
Modified: 2010-04-28 11:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...