Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1818: install.sh: use debian dist libffi

8675a2979c install.sh: use debian dist libffi (3np)

Pull request description:

  We can use `libffi-dev` and `libffi8` debian packages instead of downloading and building from source. Significantly reduces build time.

  - bookworm/oldstable: `3.4.4` (https://packages.debian.org/bookworm/libffi-dev)
  - trixie/stable: `3.4.8` (https://packages.debian.org/trixie/libffi-dev)

  fall back to installing libffi from source like before on non-debian targets

ACKs for top commit:
  AdamISZ:
    tACK 8675a2979c
  kristapsk:
    ACK 8675a2979c

Tree-SHA512: a88faff6452b4e75de6db095dff950667d5494045742a014150bd19187f34bc3f3c134ecb8bc6f3d1b03ff6fec091ecb270de0160efd9c892dfdbeed2a7a2210
master
merge-script 1 month ago
parent
commit
021e2e5437
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 10
      install.sh

10
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."

Loading…
Cancel
Save