]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
handling arm64(arrow installation) 40802/head
authorgal salomon <gal.salomon@gmail.com>
Thu, 13 Jan 2022 15:47:23 +0000 (17:47 +0200)
committergal salomon <gal.salomon@gmail.com>
Thu, 13 Jan 2022 15:47:23 +0000 (17:47 +0200)
Signed-off-by: gal salomon <gal.salomon@gmail.com>
install-deps.sh

index 0fa7675ea3576876fc3516a86e3a8cb2a19861c6..717e478d600c4bb2dec759e1c30596134bf47660 100755 (executable)
@@ -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#,}" \