From cd0820a0d540b18e14ba8acdf661e187c10dcf58 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sun, 3 Mar 2024 01:08:13 +0100 Subject: [PATCH] prepare-host: add libffi-dev host dependency, needed for Python3 setuptools (when prebuilt wheel not found) - fixes errors that show up only when building on non-arm64/amd64, when there's no prebuilt wheel (eg on riscv64) --- lib/functions/host/prepare-host.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/host/prepare-host.sh b/lib/functions/host/prepare-host.sh index 293e63731c..a3ae23372a 100644 --- a/lib/functions/host/prepare-host.sh +++ b/lib/functions/host/prepare-host.sh @@ -289,8 +289,8 @@ function adaptative_prepare_host_dependencies() { ### Python host_deps_add_extra_python # See python-tools.sh::host_deps_add_extra_python() - # Python3 -- required for Armbian's Python tooling, and also for more recent u-boot builds. Needs 3.9+ - host_dependencies+=("python3-dev" "python3-distutils" "python3-setuptools" "python3-pip") + # Python3 -- required for Armbian's Python tooling, and also for more recent u-boot builds. Needs 3.9+; ffi-dev is needed for some Python packages when the wheel is not prebuilt + host_dependencies+=("python3-dev" "python3-distutils" "python3-setuptools" "python3-pip" "libffi-dev") # Python2 -- required for some older u-boot builds # Debian 'sid'/'bookworm' and Ubuntu 'lunar' does not carry python2 anymore; in this case some u-boot's might fail to build.