Repository navigation
many: cross-arch bootstrapping from packages (HMS-11277) - #2676
Conversation
We recently grew support for passing on ignore arch to the RPM stage; this allows RPM to ignore the architecture when installing an RPM. Signed-off-by: Simon de Vlieger <[email protected]>
Make it possible to set ignorearch on the buildroot pipeline generator. Signed-off-by: Simon de Vlieger <[email protected]>
Instead of bootstrapping from a pre-built container allow bootstrapping from RPMs. This uses the recently added ignorearch option from our osbuild stage. *If* a distribution defines packages for an architecture then it is preferred over using containers. Signed-off-by: Simon de Vlieger <[email protected]>
The `manifest` subcommand didn't pass on bootstrap if needed so it didn't honor `--arch` correctly when bootstraps *were* being used. This is probably debatable (do we want bootstraps in the manifest subcommand?). Signed-off-by: Simon de Vlieger <[email protected]>
Instead of pulling a container that is no longer under our control build the buildroot cross-arch with the RPM stage. Signed-off-by: Simon de Vlieger <[email protected]>
e1e3be9 to
9066e73
Compare
Yes. In my mind, My first instinct is to make things explicit. In this case that means that calling build with a foreign arch fails unless another option is provided to explicitly turn on the cross-arch bootstrap pipeline. That same option generates the same manifest when added to the This is less helpful than the alternative though, which is implicitly generating the correct manifest and building it when calling @supakeen What do you think? |
|
The more I think about it, the more I prefer the explicit option. I think on principle |
|
I'm not sure; either one is fine with me but now adding an additional argument to say 'no actually generate a cross-arch' manifest is bound to break some pipelines. I guess the support is experimental. |
How? I assume there's some decision point somewhere that chooses to add a cross-arch pipeline or not and instead of making it implicit on the host-vs-target arch mismatch we make it explicit on a CLI option. If that decision is being made in multiple places, we should fix that. |
How I'm reading this is that |
We had a call and decided that the manifest subcommand will include the cross-arch parts (either container or packages) when needed and in a follow-up we will add a special option for the manifest subcommand to generate manifests for a target architecture without the cross-arch bootstrap parts. |
Historically we've used pre-built containers for cross-arch bootstrapping. This PR allows for cross-arch bootstrapping through RPMs instead. When a distribution definitions defines a set of packages for a given arch it is preferred over the container.
Initially this only swaps over the riscv64 bootstrap as they're the most problematic and a good area to test this. If you want to test properly it's best to rebase this PR on top of #2614a and cross-building an
everything-network-installerfor example.