Marc Waeckerlin <Marc.Waeckerlin@siemens.com> さんは書きました:
Am Dienstag, 7. September 2004 16.00 schrieb Mike FABIAN <Mike FABIAN <mfabian@suse.de>> unter "Re: [m17n] And the winner is... (or not?) SCIM is better, but buggy [Re: chinput vs. scim [Re: Problem with .xim on SuSE 9.1, Chinese zh_CN.UTF-8, miniChinput]]":
But I built it for SuSE 9.1/SLES9. I.e. this package is compiled against *exactly* the libraries as they were on SuSE Linux 9.1. For gtk2 this means gtk2-2.2.4-121.i586.rpm was used.
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. Now the question is what would be a good workaround. I could add a hack to insert a Requires: gtk2-<exact-version-number-used-when-building> into the scim.spec file automatically when building. But that has the problem that we would get something like Requires: gtk2 = 2.2.4 for example and then the tools like apt4rpm and YOU would complain that that a dependency was broken if there is a minor version upgrade to gtk2 for example to gtk2-2.2.5. And this complaint would be useless and only disturbing. A Requires: gtk2 >= 2.2.4 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. 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. But I cannot tell now when I will find time for that. Note that the packages from that supplementary directory are always to be regarded as somewhat experimental and risky. Read ftp://ftp.suse.com/pub/suse/i386/supplementary/README.txt for details. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。