as an intermediate solution before
https://bugzilla.redhat.com/show_bug.cgi?id=
1726630 gets fixed.
Fixes: https://tracker.ceph.com/issues/40646
Signed-off-by: Kefu Chai <kchai@redhat.com>
%if 0%{?rhel} == 7
# devtoolset offers newer make and valgrind-devel, but the old ones are good
# enough.
-BuildRequires: devtoolset-8-gcc-c++ >= 8.2.1
+# see https://github.com/ceph/ceph/pull/28859
+BuildRequires: devtoolset-8-gcc-c++ = 8.2.1
%else
BuildRequires: gcc-c++
%endif
source /opt/rh/devtoolset-$dts_ver/enable
fi
fi
+ if [ $(rpm -q --queryformat "%{VERSION}" devtoolset-$dts_ver-gcc-c++) = 8.3.1 ]; then
+ # rollback to avoid using a buggy version
+ $SUDO yum remove -y devtoolset-8-gcc-c++ devtoolset-8-gcc devtoolset-8-libstdc++-devel
+ $SUDO yum install -y devtoolset-8-gcc-c++-8.2.1-3.el7
+ fi
}
if [ x$(uname)x = xFreeBSDx ]; then