[Yum-devel] rpm --requires and primary.xml <requires>

Seth Vidal skvidal at fedoraproject.org
Thu Apr 30 15:06:14 UTC 2009



On Thu, 30 Apr 2009, Florian Festi wrote:

> Seth Vidal wrote:
>> the parser omits them b/c they aren't REAL dependencies. They are added by 
>> rpm to note whether or not the running version of rpm can interact with the 
>> pkgs at all.
>> 
>> But they are not deps that are 'satisfied' in anyway.
>> 
>> either the running version of rpm can do those things or you cannot 
>> continue the transaction.
>> 
>> You can't provide an rpm that can do those things in the transaction you're 
>> attempting to run and have it work.
>> 
>> Since there is no point in looking at them for purposes of depsolving, then 
>> adding those N items to every pkg reqs in the primary.xml was just a waste 
>> of space.
>
> Sorry, I have to disagree. Yum should check these requirement against the rpm 
> version on the system. IIRC James Antil asked me how to do that some 
> weeks/months ago. Not sure what happened to that project but without the 
> requires in the primary.xml/.sqlite it is unlikely to already work...

We've discussed putting them in the repomd.xml so you know that "this 
repo" needs this set of rpm capabilities. just to avoid dumping a lot of 
mindless metadata here.

but, again, the BEST CASE is that you have to stop what the user wants to 
do, see if you can find an rpm update to satisfy it, run that transaction 
w/all of its deps, and then come back to what the user wanted to do.

-sv



More information about the Yum-devel mailing list