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

Re: my package requires mysql OR MySQL, how do I state that in thespec file?



Ralf S. Engelschall wrote:

On Thu, Sep 25, 2003, Ron Arts wrote:



Subject says it all.
Couldn't find a searchable archive, sorry.



AFAIK you can't because RPM (still) does not support alternatives in
dependencies. But this is a feature I would like to see myself...



Don't hold you breath for alternation on Requires:, there are significant legacy
issues wired into the representation of a {N,EVR,Flags} tuples in arrays with
implict && on evaluation. Some fixes are worse than living with the problem.


rpm has always had alternation of Provides:, i.e. multiple packages can have identical
Provides:. So the basic trick is to add a virtual Provide: to the needed packages,
and then have a single, not alternating, Require:.


Another approach is to use a common file path that is in the packages which
will equivalently satisfy a requirement.

There are other approaches, the above 2 are easiest.

73 de Jeff





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