[Rpm-maint] [rpm-software-management/rpm] RFE OptionalBuildRequires (#577)

Tom de Vries notifications at github.com
Fri Oct 19 12:22:03 UTC 2018


Say I have a package A build with optional feature B, which depends on package B:
`BuildRequires:  B-devel
`

Now I find out that A doesn't work with B version >= x.

The simplest way to express this is to use:
`BuildRequires:  B-devel < x
`
but that makes the build fail for distros that have B >= x.

What I want is to enable B for distros where it works, and to disable it for distros where it doesn't work.

I have the option of mapping B version x to distro version y, and use:
```
%if 0%{distro_version} < y
BuildRequires:  B-devel
%endif
```
but I'd like to have an option to make this work without distro mapping.

So something along the lines of:
`OptionalBuildRequires:  B-devel < x
`
which works as BuildRequires but doesn't make the build fail if the package is not present.

-- 
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/577
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181019/b7edfac6/attachment.html>


More information about the Rpm-maint mailing list