From 006064bf5ca837dd0c515328681d4554278b5eb8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 15 Aug 2020 11:48:58 +0800 Subject: [PATCH] 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 --- scripts/build_utils.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3