Re: New uim.spec and some notes for Japanese

Mike FABIAN <[email protected]>
Newsgroups gmane.linux.suse.m17n
Message-ID <[email protected]>
UTUMI Hirosi <[email protected]> :

> I tested OpenSUSE 10.0 beta2.
> Most things are OK, but uim-anthy doesn't work for me.
> uim.spec doesn't register uim to gtk2-immodule properly.
>
> Try them:
> # rpm -e uim-gtk2
> $ gedit
> Right click on gedit -> Choose "Input Method" ->
> Still you can find "uim".

You need to run

    SuSEconfig --module gtk2

after installing or deleting uim-gtk2.

When using YaST2 to install, this is done automatically.

You removed the following from the .spec file:

     %post
    -# trigger run of SuSEconfig.gtk2 to register/unregister this input module
    -# by calling gtk-query-immodules-2.0:
    -touch var/adm/SuSEconfig/run-gtk

and added:

    +%post gtk2
    +%run_ldconfig
    +if [ -x $r/opt/gnome/bin/gtk-query-immodules-2.0 ] ; then
    +    /opt/gnome/bin/gtk-query-immodules-2.0 > /etc/opt/gnome/gtk-2.0/gtk.immodules
    +fi
    +
    +if [ -x $r/opt/gnome/bin/gtk-query-immodules-2.0-64 ] ; then
    +    /opt/gnome/bin/gtk-query-immodules-2.0-64 > /etc/opt/gnome/gtk-2.0/gtk64.immodules
    +fi

I think the gtk2 module doesn't need ldconfig.

You are right that updating of the gtk.immodules file should be moved
to the "%post gtk2 section". But one should not call
gtk-query-immodules-2.0 directly, one should just touch
/var/adm/SuSEconfig/run-gtk to tell SuSEconfig.gtk2 that an update is
needed.

-- 
Mike FABIAN   <[email protected]>   http://www.suse.de/~mfabian



-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.