scripts/pkgdep: add RBD support

Adds "--rbd" option to install build dependencies for the rbd bdev.

This will be used by the Ceph NVMe-oF gateway.

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
Change-Id: I7926433aaa398873133dfffea3c401ce3c1f7813
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11134
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
This commit is contained in:
Mykola Golub 2022-01-16 17:09:19 +00:00 committed by Tomasz Zawadzki
parent 17538bdc67
commit 8a5d487d7e
10 changed files with 31 additions and 4 deletions

View File

@ -14,6 +14,7 @@ function usage() {
echo " -d --developer-tools Install tools for developers (code styling, code coverage, etc.)"
echo " -p --pmem Additional dependencies for reduce, pmdk and pmdkobj"
echo " -f --fuse Additional dependencies for FUSE and NVMe-CUSE"
echo " -R --rbd Additional dependencies for RBD"
echo " -r --rdma Additional dependencies for RDMA transport in NVMe over Fabrics"
echo " -b --docs Additional dependencies for building docs"
echo " -u --uring Additional dependencies for io_uring"
@ -26,6 +27,7 @@ function install_all_dependencies() {
INSTALL_DEV_TOOLS=true
INSTALL_PMEM=true
INSTALL_FUSE=true
INSTALL_RBD=true
INSTALL_RDMA=true
INSTALL_DOCS=true
INSTALL_LIBURING=true
@ -36,12 +38,13 @@ INSTALL_CRYPTO=false
INSTALL_DEV_TOOLS=false
INSTALL_PMEM=false
INSTALL_FUSE=false
INSTALL_RBD=false
INSTALL_RDMA=false
INSTALL_DOCS=false
INSTALL_LIBURING=false
INSTALL_DAOS=false
while getopts 'abdfhipruD-:' optchar; do
while getopts 'abdfhipruDR-:' optchar; do
case "$optchar" in
-)
case "$OPTARG" in
@ -50,6 +53,7 @@ while getopts 'abdfhipruD-:' optchar; do
developer-tools) INSTALL_DEV_TOOLS=true ;;
pmem) INSTALL_PMEM=true ;;
fuse) INSTALL_FUSE=true ;;
rbd) INSTALL_RBD=true ;;
rdma) INSTALL_RDMA=true ;;
docs) INSTALL_DOCS=true ;;
uring) INSTALL_LIBURING=true ;;
@ -65,6 +69,7 @@ while getopts 'abdfhipruD-:' optchar; do
d) INSTALL_DEV_TOOLS=true ;;
p) INSTALL_PMEM=true ;;
f) INSTALL_FUSE=true ;;
R) INSTALL_RBD=true ;;
r) INSTALL_RDMA=true ;;
b) INSTALL_DOCS=true ;;
u) INSTALL_LIBURING=true ;;

View File

@ -53,6 +53,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
# Additional dependencies for FUSE and NVMe-CUSE
pacman -Sy --needed --noconfirm fuse3
fi
if [[ $INSTALL_RBD == "true" ]]; then
echo "Arch Linux does not have librados-devel and librbd-devel in mainline repositories."
echo "You can install them manually"
fi
if [[ $INSTALL_RDMA == "true" ]]; then
# Additional dependencies for RDMA transport in NVMe over Fabrics
if [[ -n "$http_proxy" ]]; then

View File

@ -23,6 +23,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
# Additional dependencies for FUSE and NVMe-CUSE
swupd bundle-add -y devpkg-fuse
fi
if [[ $INSTALL_RBD == "true" ]]; then
# Additional dependencies for RBD bdev in NVMe over Fabrics
swupd bundle-add -y librados-devel librbd-devel
fi
if [[ $INSTALL_RDMA == "true" ]]; then
# Additional dependencies for RDMA transport in NVMe over Fabrics
swupd bundle-add -y devpkg-rdma-core network-basic-dev

View File

@ -66,6 +66,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
apt-get install -y libfuse3-dev
fi
fi
if [[ $INSTALL_RBD == "true" ]]; then
# Additional dependencies for RBD bdev in NVMe over Fabrics
apt-get install -y librados-dev librbd-dev
fi
if [[ $INSTALL_RDMA == "true" ]]; then
# Additional dependencies for RDMA transport in NVMe over Fabrics
apt-get install -y libibverbs-dev librdmacm-dev

View File

@ -26,3 +26,8 @@ if [[ $INSTALL_LIBURING == "true" ]]; then
"$(freebsd-version)"
INSTALL_LIBURING=false
fi
if [[ $INSTALL_RBD == "true" ]]; then
# Additional dependencies for RBD bdev in NVMe over Fabrics
pkg install -y ceph
fi

View File

@ -146,6 +146,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
# Additional dependencies for FUSE and NVMe-CUSE
yum install -y fuse3-devel
fi
if [[ $INSTALL_RBD == "true" ]]; then
# Additional dependencies for RBD bdev in NVMe over Fabrics
yum install -y librados-devel librbd-devel
fi
if [[ $INSTALL_RDMA == "true" ]]; then
# Additional dependencies for RDMA transport in NVMe over Fabrics
yum install -y libibverbs-devel librdmacm-devel

View File

@ -22,6 +22,10 @@ if [[ $INSTALL_FUSE == "true" ]]; then
# Additional dependencies for FUSE and NVMe-CUSE
zypper install -y fuse3-devel
fi
if [[ $INSTALL_RBD == "true" ]]; then
# Additional dependencies for RBD bdev in NVMe over Fabrics
zypper install -y librados-devel librbd-devel
fi
if [[ $INSTALL_RDMA == "true" ]]; then
# Additional dependencies for RDMA transport in NVMe over Fabrics
zypper install -y rdma-core-devel

View File

@ -44,7 +44,6 @@ packages=(
gdb
fio
libaio-dev
librbd-dev
linux-headers-generic
libgflags-dev
autoconf

View File

@ -18,7 +18,6 @@ packages=(
gdb
fio
libaio-devel
librbd-devel
kernel-devel
gflags-devel
libasan

View File

@ -18,7 +18,6 @@ packages=(
gdb
fio
libaio-devel
librbd-devel
kernel-devel
gflags-devel
libasan