[Rpm-ecosystem] Rich deps syntax finalization

Michael Schroeder mls at suse.de
Tue Sep 1 11:19:44 UTC 2015


On Tue, Sep 01, 2015 at 08:54:03AM +0200, Florian Festi wrote:
> Libsolv - the currently only dependency solver with rich deps support -
> does not order the "or" terms but instead tries to pick the "best" of
> all packages - no matter of the order within the dependency.
> 
> While we have discussed about adding this there are several reasons not to:
> 
>  * We have Suggests and Enhances which can be used to state package
> preferences
>  * The semantic is not that clear if you have nested expressions
>  * Especially in combination with Suggests and Enhances
>  * The implementation may be tricky as the rules get normalized to
> conjunctive normal form before solving

Note that debian does use the "or" order to specify preferences,
so when at some point far far in the future debian uses libsolv as
their dependenct solver, I'll have to implement this feature...

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX GmbH,           GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-ecosystem mailing list