Merge 'install-dependencies.sh: add more dependencies for debian' from Kefu Chai

in this changeset, we install `libxxhash-dev` and `cargo` for debian, and install cxxbridge for all distros, so that at least debian can be built without further preparations after running `install-dependencies.sh`.

Closes scylladb/scylladb#18335

* github.com:scylladb/scylladb:
  install-dependencies.sh: move cargo out of fedora branch
  install-dependencies: install cargo and wabt for debian
  install-dependencies.sh: add libxxhash-dev for debian
This commit is contained in:
Pavel Emelyanov
2024-04-23 12:04:47 +03:00

View File

@@ -30,6 +30,8 @@ fi
debian_base_packages=(
clang
gdb
cargo
wabt
liblua5.3-dev
python3-aiohttp
python3-pyparsing
@@ -49,6 +51,7 @@ debian_base_packages=(
libabsl-dev
librapidxml-dev
libcrypto++-dev
libxxhash-dev
)
fedora_packages=(
@@ -334,7 +337,6 @@ elif [ "$ID" = "fedora" ]; then
done
pip3 install "$PIP_DEFAULT_ARGS" $pip_constrained_packages
cargo --config net.git-fetch-with-cli=true install cxxbridge-cmd --root /usr/local
if [ -f "$(node_exporter_fullpath)" ] && node_exporter_checksum; then
echo "$(node_exporter_filename) already exists, skipping download"
else
@@ -386,6 +388,8 @@ elif [ "$ID" == "arch" ]; then
echo -e "Configure example:\n\t./configure.py\n\tninja release"
fi
cargo --config net.git-fetch-with-cli=true install cxxbridge-cmd --root /usr/local
CURL_ARGS=$(minio_download_jobs)
if [ ! -z "${CURL_ARGS}" ]; then
curl -fSL --remove-on-error --parallel --parallel-immediate ${CURL_ARGS}