Commit 3cb3145b authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

pkgdep: add Rocky 10 (partial) support



Partial, because some of the packages are still
not available and will need to be added later:
* libiscsi-devel
* ceph
* lcov
* python3-pycodestyle

Change-Id: I43030f3dfbbdb639d70aa721150afbef059916bf
Signed-off-by: default avatarKarol Latecki <karol.latecki@nutanix.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26444


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarMichal Berger <michal.berger@nutanix.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarKonrad Sztyber <ksztyber@nvidia.com>
parent 78883091
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -67,6 +67,12 @@ if [[ $ID == centos || $ID == rhel || $ID == rocky ]]; then
		[[ $ID != rhel ]] && enable+=("crb")
	fi

	if [[ $VERSION_ID == 10* ]]; then
		repos+=("https://www.elrepo.org/elrepo-release-10.el10.elrepo.noarch.rpm")
		repos+=("https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm")
		[[ $ID != rhel ]] && enable+=("crb")
	fi

	# Add PowerTools needed for install CUnit-devel
	if [[ ($ID == centos || $ID == rocky) && $VERSION_ID =~ ^[89].* ]]; then
		is_repo "PowerTools" && enable+=("PowerTools")
@@ -101,10 +107,12 @@ if [[ $ID == centos || $ID == rhel || $ID == rocky ]]; then
fi

yum install -y gcc gcc-c++ make CUnit-devel libaio-devel openssl-devel \
	libuuid-devel libiscsi-devel ncurses-devel json-c-devel libcmocka-devel \
	libuuid-devel ncurses-devel json-c-devel libcmocka-devel \
	clang clang-devel python3-pip unzip keyutils keyutils-libs-devel fuse3-devel patchelf \
	pkgconfig

[[ $VERSION_ID != 10* ]] && yum install -y libiscsi-devel

# Minimal install
# workaround for arm: ninja fails with dep on skbuild python module
if [ "$(uname -m)" = "aarch64" ]; then
@@ -170,7 +178,9 @@ if [[ $INSTALL_DEV_TOOLS == "true" ]]; then

	if echo "$ID $VERSION_ID" | grep -E -q 'centos 8|rocky 8'; then
		devtool_pkgs+=(python3-pycodestyle astyle)
		echo "Centos 8 and Rocky 8 do not have lcov and ShellCheck dependencies"
	elif echo "$ID $VERSION_ID" | grep -E -q 'rocky 10'; then
		echo "Rocky 10 do not have python3-pycodestyle and lcov dependencies"
		devtool_pkgs+=(astyle ShellCheck)
	elif [[ $ID == openeuler ]]; then
		devtool_pkgs+=(python3-pycodestyle)
		echo "openEuler does not have astyle, lcov and ShellCheck dependencies"