[Rpm-maint] [rpm-software-management/rpm] Macro arguments do not support quoting (#222)

Jeff Johnson notifications at github.com
Thu Aug 2 23:02:15 UTC 2018


There are 2 issues that would need to be solved if you wish portability within versions of rpm macro expansion:

* adding -I to the Python interpreter in use
* handling a possible space in the file name

There are means to solve both of those issues by not using parameterized macros (because it's unclear whether -I is a parameterized macro or a Python option) and by elimininating the usage of position sensitive %1 (by expanding within single quotes before executing Python).

YMMV, everyone's does. Retrofitting macro context within single quotes (or the very ugly %{quote: ...}, or changing behavior to expand arguments before passing to a parameterized macro, is almost certainly going to have a legacy code behavior debt that cannot be solved adequately.

-- 
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/222#issuecomment-410094307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180802/57aa68ad/attachment.html>


More information about the Rpm-maint mailing list