From 2c8d1e6e18a405d74b5be631d9118e53a53c2b8a Mon Sep 17 00:00:00 2001 From: gal salomon Date: Thu, 13 Jan 2022 17:47:23 +0200 Subject: [PATCH] handling arm64(arrow installation) Signed-off-by: gal salomon --- install-deps.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 0fa7675ea35..717e478d600 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -356,9 +356,19 @@ else build_profiles+=",pkg.ceph.jaeger" fi - wget -qO - https://dist.apache.org/repos/dist/dev/arrow/KEYS | $SUDO apt-key add - - echo "deb [arch=amd64] https://apache.jfrog.io/artifactory/arrow/ubuntu $(lsb_release -sc) main" | $SUDO tee /etc/apt/sources.list.d/arrow.list - $SUDO apt update + if [ "$(arch)" == "x86_64" ]; then + ARCH="amd64" + elif [ "$(arch)" == "aarch64" ]; then + ARCH="arm64" + fi + + if [ -z ${ARCH+x} ]; then + echo "WARNING: $(arch) is not yet a supported architecture. Can't install arrow." + else + wget -qO - https://dist.apache.org/repos/dist/dev/arrow/KEYS | $SUDO apt-key add - + echo "deb [arch=$ARCH] https://apache.jfrog.io/artifactory/arrow/ubuntu $(lsb_release -sc) main" | $SUDO tee /etc/apt/sources.list.d/arrow.list + $SUDO apt update + fi $SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps \ --build-profiles "${build_profiles#,}" \ -- 2.47.3