Re: [Rpm-maint] [rpm-software-management/rpm] Macro documentation does not mention `{body}` syntax for macro definitions (Issue #2976)

2024-04-02 Thread Michael Schroeder
I think the original intend was to make the macro definitions look like bash function definitions. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2976#issuecomment-2031386866 You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Macro documentation does not mention `{body}` syntax for macro definitions (Issue #2976)

2024-04-02 Thread Michael Schroeder
The code in doDefine() supports multiline macros, it's that nasty rdcl() function that is to blame here. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2976#issuecomment-2031383183 You are receiving this because you are subscribed to

Re: [Rpm-maint] [rpm-software-management/rpm] Macro documentation does not mention `{body}` syntax for macro definitions (Issue #2976)

2024-03-28 Thread Panu Matilainen
I certainly remember seeing that code, but never quite got what it actually refers to. I doubt anybody knows of it, really. It'd be a lot more useful if it permitted multiline macros. People seem to be widely abusing %{expand:...} (probably without fully realizing the consequences) to get the

Re: [Rpm-maint] [rpm-software-management/rpm] Macro documentation does not mention `{body}` syntax for macro definitions (Issue #2976)

2024-03-26 Thread Michal Domonkos
Relevant piece of code: https://github.com/rpm-software-management/rpm/blob/c4665da3b6f9adc1e689e77fdf83c91b264be40f/rpmio/macro.c#L722 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2976#issuecomment-2020965004 You are receiving this

[Rpm-maint] [rpm-software-management/rpm] Macro documentation does not mention `{body}` syntax for macro definitions (Issue #2976)

2024-03-15 Thread Michael Schroeder
I noticed that there is no documentation for this construct ``` $ rpm --define 'foo { bar }' --eval '>%{foo}<' > bar < ``` Should we document it? Or is that feature deprecated? Does anybody use it at all? -- Reply to this email directly or view it on GitHub: