On 2012-03-12 23:17, Dirk Eddelbuettel wrote:
> | Selecting previously unselected package libquantlib-1.2.
> | Unpacking libquantlib-1.2 (from .../libquantlib-1.2_1.2-1_amd64.deb) ...
> | dpkg: error processing
> /var/cache/apt/archives/libquantlib-1.2_1.2-1_amd64.deb (--unpack):
> | trying to overwrite '/usr/lib/libQuantLib.so.0.0.0', which is also in
> package libquantlib-1.0.0 1.0.1-1+b1
>
> There is not a lot I can do here -- I didn't use package as
> libquantilib-a.b.c.
>
> Best solution, which still sucks, is to use conflicts / replaces I suppose.
> Upstream, as you can see, doesn't really use somajor / minors.
ABI/API changes incompatibly from release to release, but
libQuantLib.so.{0,0.0.0} keep its name?
Until you convince upstream to do things properly you'll have to add
Replaces: libquantlib-1.1, libquantlib-1.0.0
Breaks: libquantlib-1.1, libquantlib-1.0.0
to libquantlib-X.Y
I see there is already
Replaces: libquantlib0
Conflicts: libquantlib0
If you add
Provides: libquantlib0
you can stop adding future package names to the above list as it will
ensure only one package providing the virtual package libquantlib0 can
be installed at a time.
The short Description: seems to be swapped, too:
libquantlib-1.2 - Quantitative Finance Library -- development package
libquantlib0-dev - Quantitative Finance Library -- library package
quantlib-examples - Quantitative Finance Library -- example binaries
Andreas
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]