[Rpm-maint] [rpm-software-management/rpm] The behavior of `%{?builtin_macro:foo}` is unclear from documentation (Issue #1866)

Panu Matilainen notifications at github.com
Thu Dec 16 10:25:44 UTC 2021


No no, you really need to forget about using ? to perform additional logic. In >= 4.17 it only ever tests whether said macro is defined or not, so there's nothing further to explain wrt builtins. They are now just like any other macros in almost every way.

As I pointed out in #1669, conditional actions can be achieved via expressions in a far more generic way:

%[%{exists:/some/file}?"%{load:/some/file}":""]

-- 
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/1866#issuecomment-995638461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211216/d00bfb0e/attachment-0001.html>


More information about the Rpm-maint mailing list