[Rpm-maint] [rpm-software-management/rpm] BuildRequires does not support boolean operators (#1216)

Jeremy Siadal notifications at github.com
Wed May 13 19:19:51 UTC 2020


When using the following tag:
BuildRequires: (pkgA or pkgB)
rpmbuild will flag "(PkgA," "pkgB)", and "or" as not found. Removing the parenthesis doesn't resolve the issue. Tested with rpmbuild 4.13 and 4.15.1.

It doesn't seem logical to support the use of boolean operators on installation dependencies at run time, but not to support them at build time. If not supporting this is by design, then rpmlint is failing to flag the use of conditionals in BuildRequires as an error.

I discovered this while building an RPM with a dependency met by either an OS package or the package provided by the product vendor using a different name. Neither RPM "Provides" anything other than their own package names. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1216
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200513/36d03090/attachment.html>


More information about the Rpm-maint mailing list