[Rpm-maint] [rpm-software-management/rpm] RFE: optional one-shot/cached macro expansion (#1155)

Michael Schroeder notifications at github.com
Wed Apr 15 12:38:43 UTC 2020


Crazy thought: we could allow to use %define/%global in the macro file, as those are illegal macro names. I.e. we could allow this:
```
%foo hello
%define bar world
```
(rpm internally somewhat rewrites the %foo to %define foo anyway)

Then we could also allow
```
%undefine foo
```
which is something I wanted to have since quite some time.

The downside is of course that people will start to try to use %if statements, because the macro file looks too much like a spec 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/1155#issuecomment-614012836
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200415/d8e5accc/attachment.html>


More information about the Rpm-maint mailing list