[Rpm-maint] [rpm-software-management/rpm] RFE: read-only / non-stackable macros (Issue #2314)

Panu Matilainen notifications at github.com
Thu Mar 5 09:49:08 UTC 2026


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

More thoughts: this requires us to refine the various APIs a bit in terms of what checks are performed etc: we have the push and pop APIs where the name already suggests they are low-level "I know what I'm doing" APIs, and then we have stuff like rpmDefineMacro() which goes through the same restrictions as %define. Which is fine, but we miss the undefine counterpart, and eg --undefine and lua rpm.undefine() bypasses all restrictions .. allowing one to undefine even builtin macros currently. Oops.

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

Message ID: <rpm-software-management/rpm/issues/2314/4003791327 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260305/b0693100/attachment.htm>


More information about the Rpm-maint mailing list