[Bug 16230] gucharmap: postinst blows away system immodules configuration
bugzilla-daemon at bugzilla.ubuntu.com
bugzilla-daemon at bugzilla.ubuntu.com
Sun Sep 25 15:16:34 UTC 2005
Please do not reply to this email. You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=16230
Ubuntu | gucharmap
------- Additional Comments From debzilla at ubuntu.com 2005-09-25 16:16 UTC -------
Message-ID: <20050925134142.GA14772 at bugs.debian.org>
Date: Sun, 25 Sep 2005 15:41:42 +0200
From: =?iso-8859-1?Q?Lo=EFc?= Minier <lool at dooz.org>
To: Roger Leigh <rleigh at debian.org>, Steve Langasek <vorlon at debian.org>,
329929 at bugs.debian.org, control at bugs.debian.org
Subject: Re: gucharmap: postinst blows away system immodules configuration
clone 329929 -1
severity -1 important
reassign -1 gtk+2.0
retitle -1 [FHS] Gtk IM modules registry shouldn't be stored under /etc
tags 329929 + pending
thanks
Hi,
On Sat, Sep 24, 2005, Roger Leigh wrote:
> Justification: Replaces conffile from another package, wiping any
> customisation
I'm not sure the file should be edited by end-users. It probably
shouldn't be in /etc either.
> The postinst contains this line:
> # Hopefully GTK+ upstream will do something about this sillyness
> gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
I think this is very old and forgotten cruft, it was already present
2 years ago, and I couldn't trace exactly who did the change nor why
from the changelog, but I think it was a fix from Colin Walters a long
while ago, in prehistoric ages.
Right now, libgtk2.0-bin's postinst calls
/usr/sbin/update-gtk-immodules which is a shell script wrapping
gtk-query-immodules-2.0. It's quite ugly.
I tried installing libgtk2.0-0 in a pbuilder, saved
/etc/gtk-2.0/gtk.immodules, installed gucharmap, compared
/etc/gtk-2.0/gtk.immodules with the saved one, and they were almost
identical:
--- gtk.immodules 2005-09-25 13:20:10.000000000 +0000
+++ /etc/gtk-2.0/gtk.immodules 2005-09-25 13:25:06.000000000 +0000
@@ -1,6 +1,8 @@
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
-# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.6.10
+# Created by gtk-query-immodules-2.0 from gtk+-2.6.10
+#
+# ModulesPath =3D /root/.gtk-2.0/2.4.0/i486-pc-linux-gnu/immodules:/root=
/.gtk-2.0/2.4.0/immodules:/root/.gtk-2.0/i486-pc-linux-gnu/immodules:/roo=
t/.gtk-2.0/immodules:/usr/lib/gtk-2.0/2.4.0/i486-pc-linux-gnu/immodules:/=
usr/lib/gtk-2.0/2.4.0/immodules:/usr/lib/gtk-2.0/i486-pc-linux-gnu/immodu=
les:/usr/lib/gtk-2.0/immodules
#
"/usr/lib/gtk-2.0/2.4.0/immodules/im-cedilla.so"=20
"cedilla" "Cedilla" "gtk+" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:=
tr:wa"=20
(Note however that they did not search for modules in the same PATH.)
On my system, dpkg -S /usr/lib/gtk-2.0/2.4.0/immodules has files from
libgtk2.0-0, and libgtk2.0-dev only, and not from gucharmap.
Hence, I think it's safe to remove this snipset, but I think gtk and
other gtk im modules packages should switch to a different location,
such as /var/lib/gtk-2.0/2.4.0/immodules, to be FHS compliant.
Bye,
--=20
Lo=EFc Minier <lool at dooz.org>
--
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the desktop-bugs
mailing list