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

Re: dependency mess: i'd like boolean operators



On Thu, Feb 08, 2001 at 03:39:33PM +0100, Domenico Andreoli wrote:
> 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)

If you Depend on curl >= 7.4.2-2, then you don't need to also Conflict
with older curl.

> 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?

Using Boolean logic this transforms to:

Depends: curl (= 7.4.2-2) | curl (>= 7.5-1), libcurl0-ssl (= 7.4.2-2) | curl (>= 7.5-1), curl (= 7.4.2-2) | libcurl1-ssl (>= 7.5-1), libcurl0-ssl (= 7.4.2-2) | libcurl1-ssl (>= 7.5-1)

The first clause can be simplified to "curl (>= 7.4.2-2)" if there were
no versions in between.

Doesn't each version of curl Depend on the library it needs?  In that
case it simplifies to:

Depends: curl (>= 7.4.2-2)

> 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".

Then I don't think it's worth the complication.

Richard Braakman



Reply to: