]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build dependencies: centos9
authorAlexander Indenbaum <aindenba@redhat.com>
Fri, 26 Jan 2024 19:50:19 +0000 (19:50 +0000)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 23 Jul 2025 20:58:03 +0000 (16:58 -0400)
- 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 <aindenba@redhat.com>
(cherry picked from commit 11a37da05305420ca37f5a3af5b8991e1e2967cb)

ceph.spec.in
install-deps.sh

index de390039a8fba596b6485c8e81231b3399b3ed67..81f2c8abf1255d56ea940bd14302bb261c054563 100644 (file)
@@ -211,6 +211,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
index 7f9754f9588352278903b544cb955be10b029bcd..a90f72587bb4ca0625a24452440c17595d4a6466 100755 (executable)
@@ -536,6 +536,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"