Support ppc64le and fix cross architecture bootstrapping
Compare changes
- Jens Reidel authored
g++ is a subpackage of gcc, but cannot be detected as such easily by pmbootstrap. This is because g++ is not gcc-g++ or any other variant of such package names. Similarly, the detection for musl-dev-ppc64le and other architectures is broken, since the -dev suffix detection does not work if there is an architecture suffix. To fix it, add special case handling for cross toolchain and packages and have that fixup the -dev cases and hardcode g++ as a subpackage of gcc. To reproduce: - Generate ppc64le cross packages: pmbootstrap aportgen gcc-ppc64le musl-ppc64le - Build a package (to trigger building cross compilers): pmbootstrap build hello-world --arch=ppc64le Signed-off-by:
Jens Reidel <adrian@travitia.xyz>
+ 35
− 0
@@ -68,6 +68,35 @@ def guess_main_dev(subpkgname: str) -> Path | None:
@@ -90,6 +119,12 @@ def guess_main(subpkgname: str) -> Path | None: