From: Kefu Chai Date: Sat, 15 Aug 2020 03:48:58 +0000 (+0800) Subject: scripts/build_utils: add copr repo for latest gcc-toolset-9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1641%2Fhead;p=ceph-build.git scripts/build_utils: add copr repo for latest gcc-toolset-9 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 --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index bbfa5da8..be52ace9 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -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