From 8675a2979ce10e38b14a1902b9b1b49b0e6344bf Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Thu, 30 Oct 2025 03:01:18 +0000 Subject: [PATCH] install.sh: use debian dist libffi only build libffi from source on non-debian targets --- install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 4bc0475..2e53081 100755 --- a/install.sh +++ b/install.sh @@ -74,6 +74,8 @@ deps_install () 'python3-pip' \ 'python3-setuptools' \ 'python3-venv' \ + 'libffi-dev' \ + 'libffi8' \ 'libltdl-dev' ) if [ "$with_sudo" == 1 ]; then debian_deps+=("sudo"); fi @@ -617,9 +619,11 @@ main () echo "libsecp256k1 was not built. Exiting." return 1 fi - if ! libffi_install; then - echo "Libffi was not built. Exiting." - return 1 + if [[ "${install_os}" != 'debian' ]]; then + if ! libffi_install; then + echo "Libffi was not built. Exiting." + return 1 + fi fi if ! libsodium_install; then echo "Libsodium was not built. Exiting."