From: Alexander Indenbaum Date: Fri, 26 Jan 2024 19:50:19 +0000 (+0000) Subject: build dependencies: centos9 X-Git-Tag: v19.3.0~94^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=11a37da05305420ca37f5a3af5b8991e1e2967cb;p=ceph.git build dependencies: centos9 - ceph.spec.in: declare git as build dependency - install-deps.sh: enable CRB repo Test procedure: docker run --rm -ti -v /home/baum/ceph-ci:/home/ceph quay.io/centos/centos:stream9 bash [root@a3c4b1545e93 /]# cd /home/ceph/ [root@a3c4b1545e93 ceph]# ./install-deps.sh 2>&1 tee install-deps.log Signed-off-by: Alexander Indenbaum --- diff --git a/ceph.spec.in b/ceph.spec.in index 058c79c5e7f8..c0dbe41b7263 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -213,6 +213,7 @@ BuildRequires: selinux-policy-devel BuildRequires: gperf BuildRequires: cmake > 3.5 BuildRequires: fuse-devel +BuildRequires: git %if 0%{?fedora} || 0%{?suse_version} > 1500 || 0%{?rhel} == 9 || 0%{?openEuler} BuildRequires: gcc-c++ >= 11 %endif diff --git a/install-deps.sh b/install-deps.sh index a334a3b29a30..257c43111e6c 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -545,6 +545,8 @@ else $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save $SUDO dnf -y module enable javapackages-tools + elif test $ID = centos -a $MAJOR_VERSION = 9 ; then + $SUDO dnf config-manager --set-enabled crb elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then dts_ver=11 $SUDO dnf config-manager --set-enabled "codeready-builder-for-rhel-8-${ARCH}-rpms"