[Mono-dev] dependency conflicts on rpm based distros
Martin Vogt
vogt at itwm.fraunhofer.de
Wed Jul 22 11:24:31 EDT 2009
Hello,
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:
http://mono-project.com/Mono:Versioning
http://pkg-mono.alioth.debian.org/cli-policy/ch-packaging.html
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)
Background
==========
Its not easy to describe, but it has to do with the scripts:
* mono-find-provides
* mono-find-requires
which are called during rpmbuild time.
I think these scripts work too strict.
read on.
For example:
============
The interaction on the package banshee-1 and taglib-sharp.
In OpenSuSE 11.1 is an update from taglib-sharp from 2.0.3.0 to 2.0.3.2.
If I start rpm "update" I get:
Processing Dependency:
mono(taglib-sharp) = 2.0.3.0 for package:
banshee-1-1.4.1-12.8.x86_64
Error:
Missing Dependency:
mono(taglib-sharp) = 2.0.3.0 is needed by package
banshee-1-1.4.1-12.8.x86_64
The requirements for banshee-1 are computed during an rpm build with the
script:
/usr/bin/mono-find-requires
The script outputs for "requires" mono(taglib-sharp) = 2.0.3.0.
(During the rpmbuild process)
This binds rpm to _this_ _exact_ version, but according to "guidline"
2.0.3.2 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 2.0.3.0 is binary compatible to 2.0.3.2
but according to the "general practice" it should be.
But rpm think they are incompatible.
Solution?
=========
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:
- mono-find-provides
could be left as it is but the
- mono-find-requires
should return different values.
Example:
mono-find-provides returns mono(taglib-share) = 2.0.3.0
and
mono-find-requires returns
mono(taglib-share) >= 2.0.3.0
mono(taglib-share) <= 2.1.0.0
I don't have tested this but it may work.
regards,
Martin
More information about the Mono-devel-list
mailing list