[Rpm-maint] [rpm-software-management/rpm] Implement support for literal and one-shot macro modifiers (PR #4129)
Panu Matilainen
notifications at github.com
Tue Mar 3 12:14:58 UTC 2026
pmatilai left a comment (rpm-software-management/rpm#4129)
There's no doubt some room for speculation around the exact semantics of various corner-cases:
A %global literal macro is never expanded, but a one-shot %global macro is expanded twice: once at the time of definition as a regular %global does, and then once on the first actual use.
The former seems obvious, the latter is more controversial, but I figured this could be useful in some of the intended %global use-cases: when defining a global macro inside a parametric macro, the body may need to be expanded once if it contains references to local macros. A normal global gets re-expanded afterwards on each use, and this is quite commonly relied on. And if there's a case for that, there could equally be a case for wanting to cache the time-of-use expansion as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4129#issuecomment-3990624960
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4129/c3990624960 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260303/10cab36d/attachment.htm>
More information about the Rpm-maint
mailing list