[Mono-dev] dependency conflicts on rpm based distros
vogt at itwm.fraunhofer.de
Wed Jul 22 11:24:31 EDT 2009
I think the current way of defining dependencies in rpm files for
mono is broken. The scripts, which actually do it is part of the
mono distribution and affects every rpm based distro.
(This is for mono 2.0 but the script is the same for 2.4)
I don't find any good resources about library versioning and
compatibility only these:
But in Section 3.2.1:
>Each of the libraries in the GAC has an assembly version number that
>consists of 4 parts (major, minor, build and revision number)
>It is general practice and recommended by Microsoft that a library is
>ABI compatible when only the build and revision number change and
>the major and minor number stay the same.
The automatic generated provides/requires during rpmbuild
do _not_ follow this "general practice" an this leads to
ugly dependency problems. (On rpm updates)
(See the example)
Its not easy to describe, but it has to do with the scripts:
which are called during rpmbuild time.
I think these scripts work too strict.
The interaction on the package banshee-1 and taglib-sharp.
In OpenSuSE 11.1 is an update from taglib-sharp from 220.127.116.11 to 18.104.22.168.
If I start rpm "update" I get:
mono(taglib-sharp) = 22.214.171.124 for package:
mono(taglib-sharp) = 126.96.36.199 is needed by package
The requirements for banshee-1 are computed during an rpm build with the
The script outputs for "requires" mono(taglib-sharp) = 188.8.131.52.
(During the rpmbuild process)
This binds rpm to _this_ _exact_ version, but according to "guidline"
184.108.40.206 should be compatible. (rpm does not know about this
guideline, it simply compares the strings)
Normal libs in LINUX
For example: under unix you have libfoo-<major>.<midi>.<mini> versions
and every change in a mini version is expected to be binary
compatible. Everything else is an error.
I dont know if taglib 220.127.116.11 is binary compatible to 18.104.22.168
but according to the "general practice" it should be.
But rpm think they are incompatible.
I dont know if this is a solution and any change to the scripts
(mono-find-provide/requieres) should be considered carefully,
because it affects everey rpm based distro.
But what about this:
could be left as it is but the
should return different values.
mono-find-provides returns mono(taglib-share) = 22.214.171.124
mono(taglib-share) >= 126.96.36.199
mono(taglib-share) <= 188.8.131.52
I don't have tested this but it may work.
More information about the Mono-devel-list