Marc Waeckerlin
Am Dienstag, 7. September 2004 19.22 schrieb Mike FABIAN
Usually the automatic dependencies created by
Autoreqprov: on
should be enough. The dependency you see with
mfabian@magellan:~$ rpm -qR scim | grep gtk libgtk-x11-2.0.so.0()(64bit) libscim-gtkutils-1.0.so.0()(64bit) mfabian@magellan:~$
is created automatically. I believe it is a bug in GTK2 if gtk-2.2.x and gtk-2.4.x are incompatible but the version number of the library libgtk-x11 is the same.
Yes, perhaps. It is quite strange that this kind of incompatibility is not detected by rpm.
This cannot be detected by rpm if the version number of the library is the same.
Is this really the reason, why scim does not work?
Yes.
Now the question is what would be a good workaround. I could add a hack to insert a Requires: gtk2 = 2.2.4
I don't know RPM too deep. Is it possible to write two requirements:
Requires: gtk2 >= 2.2.0 Requires: gtk2 < 2.4.0
or:
Requires: 2.2.0 <= gtk2 < 2.4.0
Yes, something like this is possible the following works Requires: gtk2 >= 2.2.0, gtk2 < 2.4.0 and your first suggestion also works. But this quite ugly as well because this range has to be edited manually. It would be much better if the automatic dependencies were already correct. If such a hack is needed, something went already wrong. I have uploaded scim packages with that dependency to ftp://ftp.suse.com/pub/projects/m17n/9.1 now.
Maybe I build another set of scim and related packages for SuSE Linux 9.1-i386+kde (that SuSE Linux 9.1 plus the updates from ftp://ftp.suse.com/pub/suse/i386/supplementary/ which include gtk2-2.4.x, therefore such packages should work for you.
That's a possibility.
In my opinion, the best solution is to provide three packages: scim scim-gtk (or scim-gnome) scim-qt (or scim-kde)
where scim contains no gtk at all. Why should my scim be linked to gtk, if I don't need it, because e.g. I use KDE
You can of course use the gtk frontend of SCIM even when using KDE and this will be the default for SuSE 9.2 because the gtk gui of SCIM is currently more reliable.
(or twm or whatsoever)?
You need some graphical frontend for SCIM even if you use twm or another simple windowmanager (I use fvwm by the way). So you need either the gtk or the qt gui for SCIM. There is no qt support in the scim packages, this is already in a separate package "skim". It might make sense to split the gtk support out of the main SCIM package.
But I cannot tell now when I will find time for that.
Send a message to this list when you are finished.
Of course. But I'm not sure whether I will be able to do it.
Don't hold your breath.
--
Mike FABIAN