scripts/pkgdep.sh: Add flag for FUSE and NVMe-CUSE dependencies
Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I2cfdd33b7d0e655d80e28958aa0f12c465592cb7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/600 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
f035937dd5
commit
2fc1ed76af
@ -14,6 +14,7 @@ function usage()
|
|||||||
echo " -a --all"
|
echo " -a --all"
|
||||||
echo " -d --developer-tools Install tools for developers (code styling, code coverage, etc.)"
|
echo " -d --developer-tools Install tools for developers (code styling, code coverage, etc.)"
|
||||||
echo " -p --pmem Additional dependencies for reduce and pmdk"
|
echo " -p --pmem Additional dependencies for reduce and pmdk"
|
||||||
|
echo " -f --fuse Additional dependencies for FUSE and NVMe-CUSE"
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@ -22,13 +23,15 @@ function install_all_dependencies ()
|
|||||||
{
|
{
|
||||||
INSTALL_DEV_TOOLS=true
|
INSTALL_DEV_TOOLS=true
|
||||||
INSTALL_PMEM=true
|
INSTALL_PMEM=true
|
||||||
|
INSTALL_FUSE=true
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL_CRYPTO=false
|
INSTALL_CRYPTO=false
|
||||||
INSTALL_DEV_TOOLS=false
|
INSTALL_DEV_TOOLS=false
|
||||||
INSTALL_PMEM=false
|
INSTALL_PMEM=false
|
||||||
|
INSTALL_FUSE=false
|
||||||
|
|
||||||
while getopts 'adhip-:' optchar; do
|
while getopts 'adfhip-:' optchar; do
|
||||||
case "$optchar" in
|
case "$optchar" in
|
||||||
-)
|
-)
|
||||||
case "$OPTARG" in
|
case "$OPTARG" in
|
||||||
@ -36,6 +39,7 @@ while getopts 'adhip-:' optchar; do
|
|||||||
all) install_all_dependencies;;
|
all) install_all_dependencies;;
|
||||||
developer-tools) INSTALL_DEV_TOOLS=true;;
|
developer-tools) INSTALL_DEV_TOOLS=true;;
|
||||||
pmem) INSTALL_PMEM=true;;
|
pmem) INSTALL_PMEM=true;;
|
||||||
|
fuse) INSTALL_FUSE=true;;
|
||||||
*) echo "Invalid argument '$OPTARG'"
|
*) echo "Invalid argument '$OPTARG'"
|
||||||
usage;;
|
usage;;
|
||||||
esac
|
esac
|
||||||
@ -44,6 +48,7 @@ while getopts 'adhip-:' optchar; do
|
|||||||
a) install_all_dependencies;;
|
a) install_all_dependencies;;
|
||||||
d) INSTALL_DEV_TOOLS=true;;
|
d) INSTALL_DEV_TOOLS=true;;
|
||||||
p) INSTALL_PMEM=true;;
|
p) INSTALL_PMEM=true;;
|
||||||
|
f) INSTALL_FUSE=true;;
|
||||||
*) echo "Invalid argument '$OPTARG'"
|
*) echo "Invalid argument '$OPTARG'"
|
||||||
usage;;
|
usage;;
|
||||||
esac
|
esac
|
||||||
@ -91,12 +96,14 @@ if [ -s /etc/redhat-release ]; then
|
|||||||
# Additional dependencies for building pmem based backends
|
# Additional dependencies for building pmem based backends
|
||||||
yum install -y libpmemblk-devel || true
|
yum install -y libpmemblk-devel || true
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
||||||
|
# Additional dependencies for FUSE and NVMe-CUSE
|
||||||
|
yum install -y fuse3-devel
|
||||||
|
fi
|
||||||
# Additional dependencies for NVMe over Fabrics
|
# Additional dependencies for NVMe over Fabrics
|
||||||
yum install -y libibverbs-devel librdmacm-devel
|
yum install -y libibverbs-devel librdmacm-devel
|
||||||
# Additional dependencies for building docs
|
# Additional dependencies for building docs
|
||||||
yum install -y doxygen mscgen graphviz
|
yum install -y doxygen mscgen graphviz
|
||||||
# Additional dependencies for FUSE and CUSE
|
|
||||||
yum install -y fuse3-devel
|
|
||||||
elif [ -f /etc/debian_version ]; then
|
elif [ -f /etc/debian_version ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID)
|
VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID)
|
||||||
@ -134,17 +141,19 @@ elif [ -f /etc/debian_version ]; then
|
|||||||
apt-get install -y libpmem-dev
|
apt-get install -y libpmem-dev
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Additional dependencies for NVMe over Fabrics
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
||||||
apt-get install -y libibverbs-dev librdmacm-dev
|
# Additional dependencies for FUSE and NVMe-CUSE
|
||||||
# Additional dependencies for building docs
|
|
||||||
apt-get install -y doxygen mscgen graphviz
|
|
||||||
# Additional dependencies for FUSE and CUSE
|
|
||||||
if [[ $NAME == "Ubuntu" ]] && (( VERSION_ID_NUM > 1400 && VERSION_ID_NUM < 1900 )); then
|
if [[ $NAME == "Ubuntu" ]] && (( VERSION_ID_NUM > 1400 && VERSION_ID_NUM < 1900 )); then
|
||||||
echo "Ubuntu $VERSION_ID does not have libfuse3-dev in mainline repository."
|
echo "Ubuntu $VERSION_ID does not have libfuse3-dev in mainline repository."
|
||||||
echo "You can install it manually"
|
echo "You can install it manually"
|
||||||
else
|
else
|
||||||
apt-get install -y libfuse3-dev
|
apt-get install -y libfuse3-dev
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
# Additional dependencies for NVMe over Fabrics
|
||||||
|
apt-get install -y libibverbs-dev librdmacm-dev
|
||||||
|
# Additional dependencies for building docs
|
||||||
|
apt-get install -y doxygen mscgen graphviz
|
||||||
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
|
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
|
||||||
# Minimal install
|
# Minimal install
|
||||||
zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \
|
zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \
|
||||||
@ -164,12 +173,14 @@ elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
|
|||||||
# Additional dependencies for building pmem based backends
|
# Additional dependencies for building pmem based backends
|
||||||
zypper install -y libpmemblk-devel
|
zypper install -y libpmemblk-devel
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
||||||
|
# Additional dependencies for FUSE and NVMe-CUSE
|
||||||
|
zypper install -y fuse3-devel
|
||||||
|
fi
|
||||||
# Additional dependencies for NVMe over Fabrics
|
# Additional dependencies for NVMe over Fabrics
|
||||||
zypper install -y rdma-core-devel
|
zypper install -y rdma-core-devel
|
||||||
# Additional dependencies for building docs
|
# Additional dependencies for building docs
|
||||||
zypper install -y doxygen mscgen graphviz
|
zypper install -y doxygen mscgen graphviz
|
||||||
# Additional dependencies for FUSE and CUSE
|
|
||||||
zypper install -y fuse3-devel
|
|
||||||
elif [ $(uname -s) = "FreeBSD" ] ; then
|
elif [ $(uname -s) = "FreeBSD" ] ; then
|
||||||
# Minimal install
|
# Minimal install
|
||||||
pkg install -y gmake cunit openssl git bash misc/e2fsprogs-libuuid python
|
pkg install -y gmake cunit openssl git bash misc/e2fsprogs-libuuid python
|
||||||
@ -230,8 +241,6 @@ elif [ -f /etc/arch-release ]; then
|
|||||||
fi
|
fi
|
||||||
# Additional dependencies for building docs
|
# Additional dependencies for building docs
|
||||||
pacman -Sy --needed --noconfirm doxygen graphviz
|
pacman -Sy --needed --noconfirm doxygen graphviz
|
||||||
# Additional dependencies for FUSE and CUSE
|
|
||||||
pacman -Sy --needed --noconfirm fuse3
|
|
||||||
# Additional dependency for building docs
|
# Additional dependency for building docs
|
||||||
pacman -S --noconfirm --needed gd ttf-font
|
pacman -S --noconfirm --needed gd ttf-font
|
||||||
su - $SUDO_USER -c "pushd /tmp;
|
su - $SUDO_USER -c "pushd /tmp;
|
||||||
@ -251,6 +260,10 @@ elif [ -f /etc/arch-release ]; then
|
|||||||
makepkg -si --needed --noconfirm;
|
makepkg -si --needed --noconfirm;
|
||||||
cd .. && rm -rf rdma-core;
|
cd .. && rm -rf rdma-core;
|
||||||
popd"
|
popd"
|
||||||
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
||||||
|
# Additional dependencies for FUSE and NVMe-CUSE
|
||||||
|
pacman -Sy --needed --noconfirm fuse3
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "pkgdep: unknown system type."
|
echo "pkgdep: unknown system type."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user