| |
@@ -132,7 +132,9 @@
|
| |
return arches
|
| |
# Must be a subset of the input module arches
|
| |
unsupported_arches = set(buildopts_arches) - set(arches)
|
| |
- if unsupported_arches:
|
| |
+ # If there are unsupported architectures, and the local one is one of them,
|
| |
+ # then we should fail, otherwise continue.
|
| |
+ if unsupported_arches and set(arches) in unsupported_arches:
|
| |
raise ValidationError("The following buildopts arches are not supported with these "
|
| |
"buildrequires: %r" % unsupported_arches)
|
| |
if buildopts_arches:
|
| |
We use module builds as an intermediate build for building flatpaked
applications on Fedora. As Flatpaks in Fedora are officially supported
only on aarch64 and x86_64 we wanted to limit the builds just to these
architectures to save Fedora resources. We were able to do with commit
https://src.fedoraproject.org/modules/flatpak-common/c/65a01f which
works perfectly in koji/mbs, but doesn't work when run locally as the
build fails with following errors and exceptions:
The problem is that the code as it's now will fail to proceed if it will
detect any unsupported architecture - in this case the aarch64 even
tough the local x86_64 is supported. The check should be redone so if
there's an unsupported architecture detected, we should check that isn't
not the local one and proceed with the build, otherwise fail (the local
hardware doesn't support any of the specified architectures).