From: Kefu Chai Date: Tue, 20 Nov 2018 04:43:34 +0000 (+0800) Subject: install-deps.sh: install prebuilt libboost dependencies for bionic also X-Git-Tag: v14.1.0~872^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98d774157928d89c6b0060fd6630ccc1fb6bc1f8;p=ceph.git install-deps.sh: install prebuilt libboost dependencies for bionic also * extract boost install function into a helper, so we don't need to repeat it when adding support for new distros. * install ceph-libboost-* for bionic build also. we check for the existence in run-make-check.sh, so there is no need to update the build script elsewhere. Signed-off-by: Kefu Chai --- diff --git a/install-deps.sh b/install-deps.sh index 0ffe8bc2b8db..82bce59efe6b 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -127,6 +127,29 @@ function install_pkg_on_ubuntu { fi } +function install_boost_on_ubuntu { + local codename=$1 + install_pkg_on_ubuntu \ + ceph-libboost1.67 \ + dd38c27740c1f9a9e6719a07eef84a1369dc168b \ + $codename \ + ceph-libboost-atomic1.67-dev \ + ceph-libboost-chrono1.67-dev \ + ceph-libboost-container1.67-dev \ + ceph-libboost-context1.67-dev \ + ceph-libboost-coroutine1.67-dev \ + ceph-libboost-date-time1.67-dev \ + ceph-libboost-filesystem1.67-dev \ + ceph-libboost-iostreams1.67-dev \ + ceph-libboost-program-options1.67-dev \ + ceph-libboost-python1.67-dev \ + ceph-libboost-random1.67-dev \ + ceph-libboost-regex1.67-dev \ + ceph-libboost-system1.67-dev \ + ceph-libboost-thread1.67-dev \ + ceph-libboost-timer1.67-dev +} + function version_lt { test $1 != $(echo -e "$1\n$2" | sort -rV | head -n 1) } @@ -223,25 +246,10 @@ else ;; *Xenial*) ensure_decent_gcc_on_ubuntu 7 xenial - install_pkg_on_ubuntu \ - ceph-libboost1.67 \ - dd38c27740c1f9a9e6719a07eef84a1369dc168b \ - xenial \ - ceph-libboost-atomic1.67-dev \ - ceph-libboost-chrono1.67-dev \ - ceph-libboost-container1.67-dev \ - ceph-libboost-context1.67-dev \ - ceph-libboost-coroutine1.67-dev \ - ceph-libboost-date-time1.67-dev \ - ceph-libboost-filesystem1.67-dev \ - ceph-libboost-iostreams1.67-dev \ - ceph-libboost-program-options1.67-dev \ - ceph-libboost-python1.67-dev \ - ceph-libboost-random1.67-dev \ - ceph-libboost-regex1.67-dev \ - ceph-libboost-system1.67-dev \ - ceph-libboost-thread1.67-dev \ - ceph-libboost-timer1.67-dev + install_boost_on_ubuntu xenial + ;; + *Bionic*) + install_boost_on_ubuntu bionic ;; *) $SUDO apt-get install -y gcc