[Debian-med-packaging] How to specify a >= X < Y Depends (Was: Packaging GNU Health)

Emilien Klein emilien+debian at klein.st
Mon Nov 26 07:59:46 UTC 2012


Thanks Niels and Michael,

2012/11/26 Niels Thykier <niels at thykier.net>:
> On 2012-11-26 08:24, Michael Tautschnig wrote:
>> Hi all,
>>
>>> Hi Emilien,
>>>
>>> On Sat, Nov 24, 2012 at 11:54:59AM +0100, Emilien Klein wrote:
>>>> ...
>>>> As a general question:
>>>> If package A depends on a specific set of releases (like in this case
>>>> Tryton 2.4.X), how do we usually handle the case where the "libraries"
>>>> are updated before the package depending on the library?
>>>> Should I depend on Tryton >= 2.4 < 2.5? I assume that would generate
>>>> conflicts once 2.6 is made available, but GNU Health still depends on
>>>> an earlier version...
>>>
>>> I admit a quick search has not uncovered the answer how to express this
>>>
>>>      Tryton >= 2.4 < 2.5
>>>
>>> relation correctly.  So I ask on debian-mentors list for help.
>>>
>>
>> So what's wrong with using Conflicts: Tryton >= 2.5?
>>
>> Best,
>> Michael
>>
>
> I believe it is quite valid to use:
>
>   tryton (>= 2.4~), tryton (<< 2.5~)
>
> At least lintian4python uses this approach (rather than breaks/conflicts
> etc).
>
> ~Niels
>
> PS: The "~" is there to handle the case where tryton might be backported.

Just for my information, what happens when Tryton 2.6 is made
available in the repo, whith my package using either conflicts or <<
2.5~? Does that result in some kind of error/conflict message (in apt,
update manager, etc.) or is the new Tryton package ignored?

Thanks,
   +Emilien



More information about the Debian-med-packaging mailing list