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

Panu Matilainen notifications at github.com
Thu Feb 26 08:59:16 UTC 2026


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

Now that we have the basic syntax figured out (https://github.com/rpm-software-management/rpm/issues/1155#issuecomment-3926835775) we can try hashing out the actual semantics. I'll use the term "const" for now because it's nice and short to type, whether that's the term to actually use remains to be seen.

My first instinct is something like this:
- a const macro cannot be stacked (aka redefined)
- a const macro cannot be undefined by other macros

But clearly it needs to be possible to undefine them *somehow* for rpm's own purposes (so through the API), but then this opens up all sorts of questions about where and how to draw the line.

Another possible line of thought is just preventing redefinition, this is kinda enough to tell the user that this macro shouldn't be messed with, but if it just makes everybody grumblingly replace their %define's with %undefine + %define pairs, we achieved exactly nothing.

Thoughts? (@mlschroe and whoever else might be interested)


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

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


More information about the Rpm-maint mailing list