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

Michal Domonkos notifications at github.com
Mon Apr 20 08:11:13 UTC 2026


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

> We can't allow expand-on-define in the modifier syntax because reading macro files must not execute code.

Oh indeed, good point. I forgot about that...

> While it would be possible to make the literalness of the one-shot expansion optional, the _default_ needs to be literal because that's the only sane thing, see the last few comments.

Yep, my suggestion was just about making it possible, not the default 😄 

> The %global behavior is a weird historical artifact that continues to confuse packagers to this day, new things should do what makes most sense to their users.

True, no point in reaffirming that use case then 😅 

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

Message ID: <rpm-software-management/rpm/issues/1155/4278913428 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260420/4e104c36/attachment-0001.htm>


More information about the Rpm-maint mailing list