scripts/pkgdep.sh: Add flag for pmem dependencies
Add flag for pmem dependencies needed by reduce and pmdk components. Also add missing libpmem in Ubuntu section. Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I596a1e6660f8b6f92bdab81046fa3533ae78fca3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/599 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
c79a950fe4
commit
f035937dd5
@ -13,6 +13,7 @@ function usage()
|
|||||||
echo " -h --help"
|
echo " -h --help"
|
||||||
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 ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@ -20,18 +21,21 @@ function usage()
|
|||||||
function install_all_dependencies ()
|
function install_all_dependencies ()
|
||||||
{
|
{
|
||||||
INSTALL_DEV_TOOLS=true
|
INSTALL_DEV_TOOLS=true
|
||||||
|
INSTALL_PMEM=true
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL_CRYPTO=false
|
INSTALL_CRYPTO=false
|
||||||
INSTALL_DEV_TOOLS=false
|
INSTALL_DEV_TOOLS=false
|
||||||
|
INSTALL_PMEM=false
|
||||||
|
|
||||||
while getopts 'adhi-:' optchar; do
|
while getopts 'adhip-:' optchar; do
|
||||||
case "$optchar" in
|
case "$optchar" in
|
||||||
-)
|
-)
|
||||||
case "$OPTARG" in
|
case "$OPTARG" in
|
||||||
help) usage;;
|
help) usage;;
|
||||||
all) install_all_dependencies;;
|
all) install_all_dependencies;;
|
||||||
developer-tools) INSTALL_DEV_TOOLS=true;;
|
developer-tools) INSTALL_DEV_TOOLS=true;;
|
||||||
|
pmem) INSTALL_PMEM=true;;
|
||||||
*) echo "Invalid argument '$OPTARG'"
|
*) echo "Invalid argument '$OPTARG'"
|
||||||
usage;;
|
usage;;
|
||||||
esac
|
esac
|
||||||
@ -39,6 +43,7 @@ while getopts 'adhi-:' optchar; do
|
|||||||
h) usage;;
|
h) usage;;
|
||||||
a) install_all_dependencies;;
|
a) install_all_dependencies;;
|
||||||
d) INSTALL_DEV_TOOLS=true;;
|
d) INSTALL_DEV_TOOLS=true;;
|
||||||
|
p) INSTALL_PMEM=true;;
|
||||||
*) echo "Invalid argument '$OPTARG'"
|
*) echo "Invalid argument '$OPTARG'"
|
||||||
usage;;
|
usage;;
|
||||||
esac
|
esac
|
||||||
@ -82,12 +87,14 @@ if [ -s /etc/redhat-release ]; then
|
|||||||
# Additional (optional) dependencies for showing backtrace in logs
|
# Additional (optional) dependencies for showing backtrace in logs
|
||||||
yum install -y libunwind-devel || true
|
yum install -y libunwind-devel || true
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
||||||
|
# Additional dependencies for building pmem based backends
|
||||||
|
yum install -y libpmemblk-devel || true
|
||||||
|
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 building pmem based backends
|
|
||||||
yum install -y libpmemblk-devel || true
|
|
||||||
# Additional dependencies for FUSE and CUSE
|
# Additional dependencies for FUSE and CUSE
|
||||||
yum install -y fuse3-devel
|
yum install -y fuse3-devel
|
||||||
elif [ -f /etc/debian_version ]; then
|
elif [ -f /etc/debian_version ]; then
|
||||||
@ -121,6 +128,12 @@ elif [ -f /etc/debian_version ]; then
|
|||||||
# Additional dependecies for nvmf performance test script
|
# Additional dependecies for nvmf performance test script
|
||||||
apt-get install -y python3-paramiko
|
apt-get install -y python3-paramiko
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
||||||
|
# Additional dependencies for building pmem based backends
|
||||||
|
if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -gt 1800 ]]; then
|
||||||
|
apt-get install -y libpmem-dev
|
||||||
|
fi
|
||||||
|
fi
|
||||||
# Additional dependencies for NVMe over Fabrics
|
# Additional dependencies for NVMe over Fabrics
|
||||||
apt-get install -y libibverbs-dev librdmacm-dev
|
apt-get install -y libibverbs-dev librdmacm-dev
|
||||||
# Additional dependencies for building docs
|
# Additional dependencies for building docs
|
||||||
@ -147,10 +160,12 @@ elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
|
|||||||
# Additional (optional) dependencies for showing backtrace in logs
|
# Additional (optional) dependencies for showing backtrace in logs
|
||||||
zypper install libunwind-devel || true
|
zypper install libunwind-devel || true
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
||||||
|
# Additional dependencies for building pmem based backends
|
||||||
|
zypper install -y libpmemblk-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 pmem based backends
|
|
||||||
zypper install -y libpmemblk-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
|
# Additional dependencies for FUSE and CUSE
|
||||||
@ -203,6 +218,16 @@ elif [ -f /etc/arch-release ]; then
|
|||||||
cd .. && rm -rf lcov-git;
|
cd .. && rm -rf lcov-git;
|
||||||
popd"
|
popd"
|
||||||
fi
|
fi
|
||||||
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
||||||
|
# Additional dependencies for building pmem based backends
|
||||||
|
pacman -Sy --needed --noconfirm ndctl
|
||||||
|
git clone https://github.com/pmem/pmdk.git /tmp/pmdk -b 1.6.1
|
||||||
|
make -C /tmp/pmdk -j$(nproc)
|
||||||
|
make install -C /tmp/pmdk
|
||||||
|
echo "/usr/local/lib" > /etc/ld.so.conf.d/pmdk.conf
|
||||||
|
ldconfig
|
||||||
|
rm -rf /tmp/pmdk
|
||||||
|
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
|
# Additional dependencies for FUSE and CUSE
|
||||||
@ -226,14 +251,6 @@ 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"
|
||||||
# Additional dependencies for building pmem based backends
|
|
||||||
pacman -Sy --needed --noconfirm ndctl
|
|
||||||
git clone https://github.com/pmem/pmdk.git /tmp/pmdk -b 1.6.1
|
|
||||||
make -C /tmp/pmdk -j$(nproc)
|
|
||||||
make install -C /tmp/pmdk
|
|
||||||
echo "/usr/local/lib" > /etc/ld.so.conf.d/pmdk.conf
|
|
||||||
ldconfig
|
|
||||||
rm -rf /tmp/pmdk
|
|
||||||
else
|
else
|
||||||
echo "pkgdep: unknown system type."
|
echo "pkgdep: unknown system type."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user