Setting module-level is nice, but definitely not enough, especially if macro are clashing and you want to enable something for one package, but disable for other..
I remember @psabata saying that it's because koji is slow and you have to wait for repo to regenerate, but it seems that now MBS calls newRepo(), so probably it's not problem anymore..
I understand the desire for this feature but there are several downsides, too:
module-build-macros
buildorder
Imagine a module with three groups, 10 packages in each. One of the packages in the middle group uses this feature. What you do is:
You could switch the order of the second group packages to first build the one and then the nine on parallel. That would need to be defined. It also differs in the buildroot contents -- people would need to be aware of that. Anyway, compare it the current situation:
I'm still not convinced it's worth the hassle.
Given the grouping limitations, perhaps "per-group" macros would be feasible? That would make it more explicit that all the modules in a group shared their module-build-macros, and would be sufficient to cover most cases using the following model:
Yes, this would be possible and would work fine. However, you don't get the fine-grained per-package control with this. I see very little difference compared to module-wide macros.
Do you have a specific example of where defining a module-wide macro would be harmful or in conflict with something else and these per-group macros would help you avoid that?
Not currently, as python-maint's plan for handling the Python module bootstrapping is to have the module that sets the bootstrap macros be a separate module (so you can build and install that module once to bootstrap a pristine buildroot, and then switch to the regular Python module).
If there's no any real world use case for this feature, I'd rather not implement it then.
Technically, in Koji there can be multiple active repos per build tag, so you could do something like:
@psabata Is there any news on this? macros per package or macros per group would be a very useful feature when converting apps to flatpaks.
Ability to define macro per rpm built for flatpak would be really, really useful. I just spend whole day trying to build macros so they don't run in every application but only single one just to get through some dependency builds.
@jaydoubleu I don't think so, no. Although I'm not actively involved in this project anymore and might have missed something.
modulemd is processed by libmodulemd, hosted on Github. That repo also holds the current specs and v3 is under way. MBS (fm-orchestrator) is also still active.
libmodulemd
fm-orchestrator
I'm going to close this here as this implementation is dead.
Metadata Update from @psabata: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)