]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
install-deps: warn about gcc older than 13 for el9 and later
authorCasey Bodley <cbodley@redhat.com>
Tue, 4 Nov 2025 16:27:22 +0000 (11:27 -0500)
committerVenky Shankar <vshankar@redhat.com>
Fri, 7 Nov 2025 05:33:39 +0000 (05:33 +0000)
function ensure_decent_gcc_on_rh() is supposed to log a warning when it
finds the default gcc version is older than the gcc toolset version
installed by ceph.spec.in

> Your GCC is too old. Please run following command to add DTS to your environment:

however, this function is only called if the dts_ver variable is
initialized, so set it to 13 for centos/rocky 9 and later to match
ceph.spec.in

Signed-off-by: Casey Bodley <cbodley@redhat.com>
install-deps.sh

index 0038673513301633d540f7a57f2dbb5ad1585bb3..0d509d9801447d82e16ee24bf988a8a46862ff35 100755 (executable)
@@ -536,6 +536,7 @@ else
                     $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 { [ "$ID" = centos ] || [ "$ID" = rocky ]; } && [ "$MAJOR_VERSION" -ge 9 ]; then
+                    dts_ver=13
                     $SUDO dnf config-manager --set-enabled crb
                     if [ "$MAJOR_VERSION" -eq 10 ]; then
                         setup_lab_extras_repo