how to have yum prefer one dependency over others

Michael Schroeder mls at suse.de
Mon Sep 19 09:59:13 UTC 2011


On Mon, Sep 19, 2011 at 02:40:30AM +0200, Kevin Kofler wrote:
> The use case I have in mind, which is a real-world case, is this:
> phonon Requires: phonon-backend
> phonon-backend-* Provides: phonon-backend
> phonon-backend-* Requires: phonon
> I want any random phonon-backend-* to satisfy the dependency, HOWEVER, I 
> want installing phonon when it previously wasn't installed to always drag in 
> phonon-backend-gstreamer, our default backend and the one working the best, 
> not some random backend which happens to have fewer dependencies. Yum's 
> convoluted logic is making it basically impossible to do that, and in fact, 
> on the RPM Fusion builders, phonon-backend-vlc is selected instead, which is 
> always fun because it means vlc's regular broken dependencies can break 
> builds of anything KDE-related in RPM Fusion. (I had a k3b-extras-freeworld 
> build break because of this very issue.) I guess users installing KDE with 
> RPM Fusion Free enabled will also get the VLC backend by default, which is 
> not what we want.

Sounds like you want weak dependencies (i.e. "Suggests" et al).

Cheers,
  Michael.

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


More information about the devel mailing list