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

Panu Matilainen notifications at github.com
Fri Oct 27 08:45:21 UTC 2023


It should be more obvious once I rebase the autobuild thing on top of this all.

But shortly, in the autobuild context, we have these __foo_build, __bar_build, __zap_build etc macros defined for various different buildsystems. Those are all usable in standalone format by calling the explicit lengthy name, but when one uses Autobuild: tag, there should be a shortcut to the active build type, eg in the spec you only then need to use %autobuild_install if you manually need to invoke it for whatever reason. That should also simplify the rpm implementation side of the autobuild a bit. And you can't really achieve this (parametric macro semantics and all) with regular macro definitions. One could make a copy, but we don't have support for that either. 

In other words, maybe it helps to think of aliases as a means to achieve "alternatives" in the macro space.

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

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


More information about the Rpm-maint mailing list