]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils: add copr repo for latest gcc-toolset-9 1641/head
authorKefu Chai <kchai@redhat.com>
Sat, 15 Aug 2020 03:48:58 +0000 (11:48 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 15 Aug 2020 06:55:32 +0000 (14:55 +0800)
see also https://copr.fedorainfracloud.org/coprs/tchaikov/gcc-toolset-9

we can drop it once devtoolset-9-gcc-c++ >= 9.2.1-2.3 is available in
CentOS8/RHEL8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index bbfa5da83ab907e81f996a03e1feab60c1d0bff5..be52ace981993fddf58bf2b3491f825c0f96c322 100644 (file)
@@ -1155,6 +1155,9 @@ setup_rpm_build_deps() {
     if [ "$FLAVOR" = "crimson" ]; then
         # enable more build depends required by crimson
         sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $DIR/ceph.spec
+        # use gcc-toolset-9 for the better support of C++17 from GCC
+        # see also https://bugzilla.redhat.com/show_bug.cgi?id=1853900
+        $SUDO dnf copr enable -y tchaikov/gcc-toolset-9 centos-stream-x86_64
     fi
 
     # Make sure we have all the rpm macros installed and at the latest version