[Rpm-maint] [rpm-software-management/rpm] The behavior of `%{?builtin_macro:foo}` is unclear from documentation (Issue #1866)
Panu Matilainen
notifications at github.com
Fri Dec 17 08:27:51 UTC 2021
> From the beginning, this was not about "file existence" but about the load builtin existence. The problem is that load is not available in RHEL 7 while it is available in RHEL8+.
Well, good to have that cleared because it wasn't clear to me *at all* what this is about.
So what you're asking for is backwards compatible way of figuring out whether X is supported or not. There isn't, see #717.
Okay, argument checking differs with builtins in the `%{?foo}` test, maybe there's something that can be done about that. You can work around that with using `%{defined foo}` instead, which in case of a builtin "foo" will give you a hint whether you're on >= 4.17 or older but not whether you're on 4.11 or 4.14.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1866#issuecomment-996528269
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1866/996528269 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211217/5ed603f7/attachment-0001.html>
More information about the Rpm-maint
mailing list