From 122b90005f160695d2c06159330a75f0dd98cb30 Mon Sep 17 00:00:00 2001 From: Affe Null Date: Mon, 10 Jul 2023 15:50:02 +0200 Subject: [PATCH] Install makedepends in native chroot for packages using Rust The changes in pmaports!4234 cause cargo build scripts to be built for and run on the host (native) architecture, so their dependencies must be present in the native chroot. pmbootstrap can't tell which of the dependencies specified in makedepends are actually needed by build scripts, so just duplicate all of them in the native chroot. Acked-by: Caleb Connolly Reviewed-by: Oliver Smith Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230710135001.184769-1-otto.pflueger@abscue.de%3E --- pmb/build/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/build/init.py b/pmb/build/init.py index 3847e7b7..b56c6c2c 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -108,6 +108,6 @@ def init_compiler(args, depends, cross, arch): if cross == "crossdirect": cross_pkgs += ["crossdirect"] if "rust" in depends or "cargo" in depends: - cross_pkgs += ["rust"] + cross_pkgs += depends pmb.chroot.apk.install(args, cross_pkgs)