[Rpm-maint] [rpm-software-management/rpm] Triple operator for conditional shortcut (#115)
notifications at github.com
Thu Aug 22 08:33:56 UTC 2019
I thought the potential gains from ability of testing arbitrary expressions instead of simple macro existence would be obvious enough not to need explanations.
The most basic case is that there's tonne of functionality in rpm which uses macro existence test to determine whether something is enabled or disabled, because that's all that's available. When people see something like "%_include_minidebuginfo 1", they tend to assume defining it to 0 disables it, and get confused and annoyed when it doesn't. It gets worse because, as you know, macros stack so undefining doesn't guarantee said macro actually goes away. So in practise, there's no guaranteed way to disable such a feature from a spec or otherwise.
There are countless other examples, such as defining a macro depending on the string value of another, etc.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint