[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dependency mess: i'd like boolean operators



i know that this topic has been already discussed in this list but
i'm not finding the messages i need, so please help me.

my curl package has been uploaded with the following version numbers:
...[some older]...
7.4.2-1
7.4.2-2
7.5-1
...[some newer]...

until 7.4.2-1 included, curl and curl-ssl were two completely separated
source and binary packages. each of them had its own set of libraries
and developing files etc.

on 7.4.2-2 i realized that the curl binararies were completely identical
and that the SSL functionality was achieved thanks to the different
version of libcurl they were installed with (libcurl is the library
which each of them is linked to). so i made a curl binary package (the
one in main) depending on either libcurl or libcurl-ssl and removed
curl-ssl from the archives.

starting from 7.5-1 libcurl (which in reality was in libcurl0 package)
started having a serious versioning upstream and i packaged it in
libcurl1 (its major version number is 1, so it is ok).

now i need a curl-ssl dummy package depending on curl and libcurl{0|1}
in order to smoothend the upgrade from potato.

the question is which dependencies should curl-ssl have?

i'm thinking something like:
  Conflicts: curl(<7.4.2-2)
  Depends: curl(>=7.4.2-2), libcurl0-ssl(=7.4.2-2) | libcurl1-ssl(>=7.5-1)

in fact curl-ssl should conflict only with curl(<7.4.2-2) (ence my
previous post) and depend on curl(>=7.4.2-2), that's ok. what about
the libraries? if the release we are upgrading from is (7.4.2-2),
we should depend on libcurl0-ssl, if it is (>=7.5-1) we should depend
on libcurl1-ssl(>=7.5-1).

the correct relation should be this:
( curl(=7.4.2-2) AND libcurl0-ssl(=7.4.2-2) ) OR ( curl(>=7.5-1) AND libcurl1-ssl(>=7.5-1) )

can be this relation achieved someway?

another point. potato has a 6.0-xxx series of curl packages, at that time
libcurl was not even a separate package so the upgrade from potato shouldn't
have all this mess. all this work could be a waste of time, since some
upgrade problems in woody are ok since it is "testing".

let me know what do you think about this story.

thanks in advance

ps: sorry for the long message and the long lines

-----[ Domenico Andreoli, aka cavok
 --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50

Attachment: pgp7xV6mACJMS.pgp
Description: PGP signature


Reply to: