[Rpm-maint] [rpm-software-management/rpm] Fix rpm --undefine and Lua rpm.undefine() bypassing sanity checks (PR #4135)

Panu Matilainen notifications at github.com
Thu Mar 5 13:09:21 UTC 2026


Add a new sanity-checked API for undefining macros, use it for --undefine and Lua rpm.undefine()

Fixes: #2314
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/4135

-- Commit Summary --

  * Fix/clarify rpmDefineMacro() documentation
  * Add rpmUndefineMacro() for %undefine API counterpart
  * Fix rpm --undefine and Lua rpm.undefine() bypassing sanity checks

-- File Changes --

    M include/rpm/rpmmacro.h (12)
    M lib/poptALL.cc (3)
    M rpmio/macro.cc (29)
    M rpmio/rpmlua.cc (3)
    M rpmio/rpmmacro_internal.hh (1)
    M tests/rpmmacro.at (17)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4135.patch
https://github.com/rpm-software-management/rpm/pull/4135.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4135
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4135 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260305/07c3a45d/attachment-0001.htm>


More information about the Rpm-maint mailing list