From 3181ef203c0147300819dfcb9b891faf7447e1b6 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 Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu Tested-by: SPDK CI Jenkins --- scripts/pkgdep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index d8a93d1f1..3dabf4753 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -92,7 +92,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-pycodestyle libuuid-devel sg3_utils pciutils # Additional (optional) dependencies for showing backtrace in logs