]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: add option to skip prebuilt boost-* pkgs installation 27776/head
authorJun He <jun.he@arm.com>
Wed, 24 Apr 2019 01:14:51 +0000 (09:14 +0800)
committerJun He <jun.he@arm.com>
Thu, 25 Apr 2019 08:57:31 +0000 (16:57 +0800)
Prebuilt boost-1.67 packages are only available for limited arch on Ubuntu
(x86_64 for bionic, x86_64 and arm64 for xenial). This will cause install
failure on missing platforms.
Add a new env variable to allow user to build and install from source
while the default option is to install pkgs from ceph repo.

Change-Id: I4259733dd40a638d1bd5d1578a64ecaaa6490121
Signed-off-by: Jun He <jun.he@arm.com>
install-deps.sh

index dedf973d134f553d869d0e860dec267d42212df4..108ef3dc1ff8963665932a663f829cfc8d79d00b 100755 (executable)
@@ -278,10 +278,10 @@ else
                 ;;
             *Xenial*)
                 ensure_decent_gcc_on_ubuntu 7 xenial
-                install_boost_on_ubuntu xenial
+                [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu xenial
                 ;;
             *Bionic*)
-                install_boost_on_ubuntu bionic
+                [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
                 ;;
             *)
                 $SUDO apt-get install -y gcc