#869 Limit builds by arches given in modulemd.
Closed: Fixed 5 years ago Opened 6 years ago by ralph.

Each rpm component in the modulemd file can list its arches. The default is "all".

MBS currently doesn't read or do anything with this value if it is present.

Instead, if the arches value is present, MBS should submit the build for only the given arches.


This has a side-effect on component re-use. We need to make sure that we cannot re-use a component if it was previously built for a different set of arches than what we want in the current module build.


Regarding the last comment -- this means you need to remember the "expanded" version of arches, i.e. if it isn't defined, you should either fill it with what was available in koji at that time or make a note in xmd somewhere.

It would be really helpful to have this feature implemented.

My reasons are following:
I'm packaging mongodb module. Mongodb package is currently in Fedora built on more architectures than upstream officially supports (3 Fedora architectures are unsupported). But in world of modules where each rpm version is built on several Fedora releases I'm afraid that supporting all architectures isn't feasible. So I want to build module only on mongodb upstream supported arches (x86_64, ppc64le, aarch64 and s390x).

On the other hand I want use same sources as for non-modular fedora, so currently to be able to build module only on some arches all packages need to have %if condition with ExclusiveArch. In my case it's 3 packages and every package 3 branches (module versions). So at least 9 spec files have to be changed. And I'm not sure that more aren't needed.

Thanks,
Marek

Metadata Update from @vmaljulin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata