From: gal salomon Date: Thu, 13 Jan 2022 15:47:23 +0000 (+0200) Subject: handling arm64(arrow installation) X-Git-Tag: v17.1.0~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2c8d1e6e18a405d74b5be631d9118e53a53c2b8a;p=ceph.git handling arm64(arrow installation) Signed-off-by: gal salomon --- 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#,}" \