[Rpm-maint] [rpm-software-management/rpm] Implement one-shot macro modifier <o> (PR #4169)
Panu Matilainen
notifications at github.com
Mon Mar 30 08:01:51 UTC 2026
A one-shot macro is expanded once on the first use, and the result of that expansion is pushed on the stack as a literal macro so it wont be expanded again. Using the stack this way allows one-shot macros to be re-armed by just undefining it once.
Things get a bit stranger with %global which expands the body once at the time of definition, and then once at the first use.
The first commit is basically just something forgotten from #4129.
Fixes: #1155
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/4169?email_source=notifications&email_token=ADLPZU62ZDVOK345GPNLVID4TISW7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRUHEZTSNZYGOTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3POBSW4X3DNRUWG2Y
-- Commit Summary --
* Render macro modifiers in --showrc output
* Implement one-shot macro modifier <o>
-- File Changes --
M docs/man/rpm-macros.7.scd (32)
M rpmio/macro.cc (33)
M tests/rpmmacro.at (67)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/4169.patch?email_source=notifications&email_token=ADLPZU7YHYKQHBJBYN574RD4TISW7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRUHEZTSNZYGOTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZYHEX3QMF2GG2C7MNWGSY3Lhttps://github.com/rpm-software-management/rpm/pull/4169.diff?email_source=notifications&email_token=ADLPZU3G3WEQ65YRAL7EKND4TISW7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRUHEZTSNZYGOTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3ENFTGMX3DNRUWG2Y
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4169
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4169 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260330/165e1f06/attachment.htm>
More information about the Rpm-maint
mailing list