[Rpm-maint] [rpm-software-management/rpm] RFE: handle lists/tuples within macro expansions (#503)
Jeff Johnson
notifications at github.com
Wed Aug 8 19:39:04 UTC 2018
There are three archetypal forms in computer languages: scalars, lists/tuples/arrays, and maps.
RPM macros only implement scalar key:value assignments. This RFE is a suggested extension to permit macro values to add syntax to expand a stack into a list with a common separator.
The suggested syntax uses a form like %{@F:S} where F is a stack of items created using %define, and S is a separator (like space or comma) to be used between items.
The expansion output should be FIFO (I.e. reversed stack pop order) like (digits represent the order of definition)
1S2S3S...N
Code supplied on request.
--
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/503
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180808/81573ec8/attachment-0001.html>
More information about the Rpm-maint
mailing list