vm_setup: fix scan-build not found on ubuntu18

Report issue on ubuntu18 :
"spdk/autobuild.sh: line 55: hash: scan-build: not found"

Check that ubuntu18 should install this package:
apt-get install -y clang-tools, to fit version of ubuntu18
and later.

Move clang-analyzer which for fedora to vm_setup.sh as well.

Change-Id: Ia702c492f8b0f64705c7c15ee57a861ca14521f9
signed-off-by: yidong0635 <dongx.yi@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457554
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
yidong0635 2019-06-11 09:46:41 -04:00 committed by Ben Walker
parent 8785d5052d
commit 48cec0b127
2 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,7 @@ if [ -s /etc/redhat-release ]; then
fi
yum install -y gcc gcc-c++ make CUnit-devel libaio-devel openssl-devel \
git astyle python-pycodestyle lcov python clang-analyzer libuuid-devel \
git astyle python-pycodestyle lcov python libuuid-devel \
sg3_utils libiscsi-devel pciutils
# Additional (optional) dependencies for showing backtrace in logs
yum install -y libunwind-devel || true

View File

@ -464,6 +464,7 @@ if $INSTALL; then
btrfs-progs \
rpm-build \
iptables \
clang-analyzer \
bc
elif [ $PACKAGEMNG == 'apt-get' ]; then
@ -492,6 +493,9 @@ if $INSTALL; then
if ! sudo apt-get install -y libpmempool1; then
echo "Package libpmempool1 is available at Ubuntu 18 [universe] repositorium" >&2
fi
if ! sudo apt-get install -y clang-tools; then
echo "Package clang-tools is available at Ubuntu 18 [universe] repositorium" >&2
fi
if ! sudo apt-get install -y --no-install-suggests --no-install-recommends open-isns-utils; then
echo "Package open-isns-utils is available at Ubuntu 18 [universe] repositorium" >&2
fi