bazelbuild / bazelbuild/rules_pkg
pkg_rpm cannot build packages targeting anything except the "exec" platform
Open
P3
rpm
- Dominant language
- Starlark
- Stars
- 253
- Forks
- 221
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
In experiments with rpmbuild, we have found that it generally assumes that it is building for the host system (in this case, the "exec" platform) or "noarch". This readily breaks down in the face of cross-compilation, which is supported and commonly used in Bazel.
Determine if there's some RPM macro that can be changed to support this. `_target_os`? It seems like there would need to be a way to map platform CPU names to what RPM expects them to be.
The `setarch` command, unfortunately, may not be adequate here, as it doesn't seem to be able to cross non-compatible architectures (e.g. intel <-> arm)
Contributor guide
Assessment
This issue has not been assessed yet.