Merge pull request #39051 from tchaikov/wip-install-deps-libzbd

install-deps.sh: install libzbd-dev when WITH_ZBD is set

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Kefu Chai 2021-01-26 01:00:52 +08:00 committed by GitHub
commit 7a5d0ecb1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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