[Rpm-maint] [rpm-software-management/rpm] Add support for macro aliases (PR #2722)

Panu Matilainen notifications at github.com
Mon Oct 16 11:29:47 UTC 2023


Implement support for multi-level macro aliases, useful for the kind of thing aliases are: shortcuts, added level of indirection here and there for eg choosing between alternatives without copying and so on.

The new %alias macro primitive can be used to define an alias and get the alias definition. The dual functionality is necessary because all other references to the alias get routed to the aliased macro. With the exception of undefine which undefines the alias itself.

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

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

-- Commit Summary --

  * Make macro name first character check more obvious
  * Validate the entire macro name in validName()
  * Add support for macro aliases

-- File Changes --

    M docs/manual/macros.md (1)
    M rpmio/macro.c (79)
    M tests/rpmmacro.at (82)

-- Patch Links --

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

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

Message ID: <rpm-software-management/rpm/pull/2722 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231016/e8f1a370/attachment-0001.html>


More information about the Rpm-maint mailing list