From c5ca06d5028a05e225432cabba4b2a0e2bd653c1 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Tue, 6 Feb 2024 16:13:14 +0100 Subject: [PATCH] pmb: only enable abuild-apk wrapper for buildroot (MR 2246) Some packages like kernels are cross compiled from the native chroot. the apk_wrapper won't work here! So only enable it for buildroot chroots Signed-off-by: Caleb Connolly --- 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 4c6f28c0..6c90b7ea 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -61,7 +61,7 @@ def init(args, suffix="native"): apk_arch = pmb.parse.arch.from_chroot_suffix(args, suffix) # Add apk wrapper that runs native apk and lies about arch - if not os.path.exists(chroot + "/usr/local/bin/abuild-apk"): + if suffix.startswith("buildroot_") and not os.path.exists(chroot + "/usr/local/bin/abuild-apk"): with open(chroot + "/tmp/apk_wrapper.sh", "w") as handle: content = f""" #!/bin/sh