Add Rocky Linux to the list of supported RPM-based distributions in
test_librados_build.sh and version_number_sanity.sh. Rocky Linux uses
the same package names and commands as CentOS/RHEL, so it can use the
existing RPM codepath.
Without this change, the tests fail on Rocky Linux systems with
"unknown distro" errors.
Fixes: https://tracker.ceph.com/issues/73839
Signed-off-by: Nitzan Mordechai <nmordec@ibm.com>
pushd $DESTDIR
case $(distro_id) in
- centos|fedora|rhel|opensuse*|suse|sles)
+ centos|fedora|rhel|rocky|opensuse*|suse|sles)
install gcc-c++ make libradospp-devel librados-devel;;
ubuntu)
install gcc-11 g++-11 make libradospp-dev librados-dev
dpkg-query --show ceph-common
PKG_NAME_AND_VERSION=$(dpkg-query --show ceph-common)
;;
-centos|fedora|rhel|opensuse*|suse|sles)
+centos|fedora|rhel|rocky|opensuse*|suse|sles)
RPMDEB='RPM'
rpm -q ceph
PKG_NAME_AND_VERSION=$(rpm -q ceph)