]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: install libzbd-dev when WITH_ZBD is set 39051/head
authorKefu Chai <kchai@redhat.com>
Mon, 25 Jan 2021 06:11:46 +0000 (14:11 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 25 Jan 2021 06:13:15 +0000 (14:13 +0800)
to avoid zbd backend bitrot, and for build test it in our "make check"
builds.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 04bfdafba5a6a6bb84ded648be9bfc81abe05bd5..44e404bff49c5376aeccd2b72524338adc93c942 100755 (executable)
@@ -205,6 +205,18 @@ function install_boost_on_ubuntu {
        ceph-libboost-timer$ver-dev
 }
 
+function install_libzbd_on_ubuntu {
+    local project=libzbd
+    local sha1=44ffc287bf57e17afafec0af4d39b62d4f6c0dac
+    install_pkg_on_ubuntu \
+        $project \
+        $sha1 \
+        $codename \
+        check \
+        libzbd \
+        libzbd-dev
+}
+
 function version_lt {
     test $1 != $(echo -e "$1\n$2" | sort -rV | head -n 1)
 }
@@ -291,6 +303,7 @@ else
             *Bionic*)
                 ensure_decent_gcc_on_ubuntu 9 bionic
                 [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
+                $with_zbd && install_libzbd_on_ubuntu bionic
                 ;;
             *)
                 $SUDO apt-get install -y gcc