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

Panu Matilainen notifications at github.com
Thu Feb 19 12:21:49 UTC 2026


pmatilai left a comment (rpm-software-management/rpm#1155)

So combining the newer needs with the older stuff in this topic, we have something like:
- `c`onst: not overridable (issues #2314 and #4091)
- `e`xpand: expand macro right away
- `g`lobal: put macro in global namespace
- `l`iteral: do not expand the macro when using it
- `o`nce: cache expanded macro (this issue)

But "expand" can't be valid in macro files (reading a macro file must not execute macros), and "global" would seem odd as a macro modifier, it doesn't make sense in a macro file and elsewhere you could already use %global. So I'm going to leave those two out for now at least.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1155#issuecomment-3926923890
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1155/3926923890 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260219/191ac7ab/attachment.htm>


More information about the Rpm-maint mailing list