Help to solve a possible circular Requires:

Fabio M. Di Nitto fdinitto at redhat.com
Wed Dec 8 05:24:12 UTC 2010


On 12/03/2010 05:20 PM, James Antill wrote:
> On Fri, 2010-12-03 at 10:24 +0100, Fabio M. Di Nitto wrote:
>> Hi all,
>>
>> I am seeking some help here to solve a possible $subject. I have been
>> trying to find a simple alternate solution, but I just can´t see it or
>> it´s not obvious to me.
>>
>> This is the situation:
>>
>> srpm foo 1.0 ships 2 rpm´s bar and baz. bar has a daemon inside.
>>
>> due to upstream split:
>>
>> srpm foo 1.1 now ships only bar rpm without the daemon.
>>
>> srpm baz 1.1 now ships 2 rpm´s, baz (exactly as in version 1.0) and
>> baz-something that contains the bar´s daemon from 1.0.
>>
>> In order to avoid upgrade issues, we need to make sure that bar 1.1 will
>> pull in baz-something 1.1 (to retain functionality), at the same time
>> baz-something requires bar 1.1 to operate at all.
>>
>> There is no requirement for a strictly versioned Requires: on both
>> sides. baz-something Requires: bar >= 1.1, and bar Requires:
>> baz-something (no version need since it´s a new rpm).
> 
>  The above reads more complicated than I think it is. I assume you have
> two problems:
> 
> 1. When moving from foo-1.0 => foo-1.1 and baz-1.1, you have a package
> split ... this implies using versioned Obsoletes (<= 1.0) on bar from
> baz-something.
> 
> 2. In baz-something-1.1 you have a normal requires on bar-1.1 ... so
> just add a versioned (>= 1.1) require.
> 

Hey guys,

thanks for the hint in the right direction!

Fabio


More information about the devel mailing list