From 6481d805140051ca229e153182135c98ac1eb882 Mon Sep 17 00:00:00 2001 From: Zhu Lingshan Date: Thu, 28 Feb 2019 17:28:09 +0800 Subject: [PATCH] scripts/pkgdep: update SUSE distros recognition OpenSUSE releases (OpenSUSE Leap and Tumbleweed) now use /etc/SUSE-brand than /etc/SuSE-release as SUSE identification. According to this change, This commit intends to update scripts/pkgdep so that it could install packages for OpenSUSE. Tested on OpenSUSE Leap 15.0 and latest Tumblweed. Change-Id: I878b6671753084ef718e1f7630a42520a72ea151 Signed-off-by: Zhu Lingshan Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446504 (master) Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447458 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- scripts/pkgdep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index c385604ed..44f958337 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -90,7 +90,7 @@ elif [ -f /etc/debian_version ]; then "Note: Some SPDK CLI dependencies could not be installed." # Additional dependencies for ISA-L used in compression apt-get install -y autoconf automake libtool -elif [ -f /etc/SuSE-release ]; then +elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \ git-core lcov python-base python-pep8 libuuid-devel sg3_utils pciutils # Additional (optional) dependencies for showing backtrace in logs