[Rpm-maint] [rpm-software-management/rpm] Parametric macro arguments are not expanded (#127)
Panu Matilainen
notifications at github.com
Thu Aug 17 11:49:19 UTC 2017
Yes this will force changes to some existing macros, that is unavoidable.
There are basically two ways to deal with it, which:
a) escape macros in the arguments to prevent expansion, eg %%{nil}
b) adjust the parametrized macro itself, eg in some situations it would be more natural to test for the argument existence instead (eg %{?1} instead of assuming it always exists)
b) is actually the one that allows some level of compatibility between former and new behavior, as %{?1} will do the right thing in both cases if you just drop the "placeholder" %{nil} argument from the caller.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/127#issuecomment-323048510
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170817/a0e06608/attachment-0001.html>
More information about the Rpm-maint
mailing list