From e7e3b86762ff3fccdae21e713c64215ab3bb7bb4 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 25 Jan 2021 14:11:46 +0800 Subject: [PATCH] install-deps.sh: install libzbd-dev when WITH_ZBD is set to avoid zbd backend bitrot, and for build test it in our "make check" builds. Signed-off-by: Kefu Chai --- install-deps.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install-deps.sh b/install-deps.sh index 04bfdafba5a6..44e404bff49c 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -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 -- 2.47.3