From be805653bb94e2db569470b0e8354a71c4fc9b14 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 19 Apr 2020 13:54:02 +0200 Subject: [PATCH] helpers/envkernel.sh: Fix "Unable to deduce build architecture" (MR 1921) After an abuild update in Alpine envkernel.sh now throws an error when activating envkernel: ash: to: not found Run 'pmbootstrap log' for details. This happens because functions.sh fails with: Unable to deduce build architecture. Install apk-tools, or set CBUILD. For now it seems to be enough to set CBUILD appropriately to make it work again. --- helpers/envkernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/envkernel.sh b/helpers/envkernel.sh index bad80625..49f25855 100644 --- a/helpers/envkernel.sh +++ b/helpers/envkernel.sh @@ -189,7 +189,7 @@ create_output_folder() { set_alias_make() { # Cross compiler prefix # shellcheck disable=SC1090 - prefix="$(. "$chroot/usr/share/abuild/functions.sh"; + prefix="$(CBUILD="$deviceinfo_arch" . "$chroot/usr/share/abuild/functions.sh"; arch_to_hostspec "$deviceinfo_arch")" if [ "$gcc6_arg" = "1" ]; then