Am Dienstag, 7. September 2004 19.22 schrieb Mike FABIAN
Marc Waeckerlin
さんは書きました: Could you update the spec file so, that the dependency to the gtk2 is reflected in the rpm? Otherwise apt4rpm (or also YOU) install new releases of gtk2 without being able to detect that a dependency was broken. Obviously this dependency is a killer, so it should definitely be noted in the spec file.
Yes, but this is somewhat difficult. I use the same scim.spec file for different versions of SuSE Linux. 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. Is this really the reason, why scim does not work?
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
obviously would not solve the problem either. I really think this is a problem created by GTK2 because they didn't correctly bump the version of their library.
I agree.
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 (or twm or whatsoever)?
But I cannot tell now when I will find time for that.
Send a message to this list when you are finished. Thanks Regards Marc