[Rpm-maint] OR'ed dependency check
pmatilai at redhat.com
Thu Feb 28 14:21:09 UTC 2008
On Thu, 28 Feb 2008, Alex Lobanovsky wrote:
> Thank you!
> The link to the manual is great!
> I understood the idea of these "virtual provides". It works fine unless you
> have no sources of the packages you would require.
> Then I'm completely dependent on sanity and common sense of other developers
> - if they add _common_ "provides" strings.
> In my case, I need to
> Requires: wine OR wine-core AND wine-ldap
> Unfortunately, wine, wine-core and wine-ldap do no share same provide
> strings (except for huge list of various .so's, but I don't think it's a
> good idea to rely on list of libraries).
If we're talking about wine as packaged in Fedora, you just need to depend
on wine-ldap. wine-ldap will bring in wine-core through it's dependencies
if not installed already, and if you have wine (which is just a
metapackage requiring all the subpackages) then you already have wine-ldap
and wine-core installed.
BTW using common filenames as "virtual provides" is perfectly valid
approach too - obviously doesn't work if the OR-packages don't share
common paths, but it's not rare that they do.
- Panu -
More information about the Rpm-maint