Hi
On Sat, Jan 15, 2022 at 4:36 PM Marc-André Lureau marcandre.lureau@redhat.com wrote:
Any comments? How to proceed next?
I wrote a Fedora change proposal: https://fedoraproject.org/wiki/Changes/F37MingwUCRT
Regarding update of the mingw-* libraries packages (to add or remove targets in the future), I have looked at various options to "templatize" the spec, to avoid having to add a third repetition of package definition. I think we can't really do it with the current RPM macro system (there are discussions in https://github.com/rpm-software-management/rpm/issues/1472 for example). Not only lua isn't the most convenient programming language for the task, but I don't see how you could give a multi-line string to a lua macro in a sane way.
What I would propose so far is to provide a mingw-tmpl program that will generate the .spec from a .tmpl.spec. Such template is optional and should be added to dist-git. Here is a gist https://gitlab.com/-/snippets/2243878 to give you an idea of what it looks like when templating mingw-zlib. The resulting .spec file is to be committed and packaged as usual.
Any feedback appreciated! Thanks