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.
This commit is contained in:
Minecrell 2020-04-19 13:54:02 +02:00 committed by Alexey Min
parent 77a6ad03cb
commit be805653bb
No known key found for this signature in database
GPG Key ID: EBF5ECFFFEE34DED
1 changed files with 1 additions and 1 deletions

View File

@ -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