Re: SPEC-file: "Requires"-field with alternatives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, 07 November 2005, at 22:39:10 (+0100),
Toralf Lund wrote:

> >Requires: package_a, package_b OR package_c OR package_d
> >
> >Is it possible? If so - how is the exact syntax?
>
> Like someone else said, this is not possible. I've always wanted it, 
> too, though. The virtual package mechanism is useful in many cases, but 
> there are situations where you don't have (or don't want to have) any 
> control at all over the "provides" info of the base packages and can't 
> rely on a sensible virtual package setup being there already. Perhaps we 
> should add an RFE...

This is not strictly correct.  Please see the following:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=114338

This feature will be in rpm 4.4.3, so this would work:

Requires: package_a
Requires(hint): package_b, package_c, package_d

The technique is not identical to the logical OR, but it does provide
optional dependencies.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@xxxxxxxxx>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "There are times it seems to me I'm sharing you with memories.  I
  feel it in my heart, but I don't show it.  And then there's times
  when you look at me as though I'm all that you can see.  Those times
  I don't believe it's right; I know it."  -- O-Town, "All or Nothing"

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux