]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-*build/build/setup_rpm: downgrade to gcc-c++-8.2.1 1330/head
authorKefu Chai <kchai@redhat.com>
Thu, 4 Jul 2019 06:31:55 +0000 (14:31 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Jul 2019 03:40:26 +0000 (11:40 +0800)
Fixes: http://tracker.ceph.com/issues/40646
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-build/build/setup_rpm
ceph-dev-build/build/setup_rpm
ceph-dev-new-build/build/setup_rpm
scripts/build_utils.sh

index 649279a36ec5c5e0435e97e3d03b899d1edcbbce..cfd830ece79f8d73cfb48b602bedc53e395aadba 100644 (file)
@@ -44,6 +44,8 @@ $SUDO yum install -y \*rpm-macros
 
 $SUDO yum-builddep -y $DIR/ceph.spec
 
+maybe_downgrade_gcc
+
 BRANCH=`branch_slash_filter $BRANCH`
 
 if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then
index 921021742fdff793a9f5b86c2b3aa135f93b4a06..36fd8aa28697548775074de5acf3d4ab3b293a24 100644 (file)
@@ -44,6 +44,8 @@ $SUDO yum install -y \*rpm-macros
 
 $SUDO yum-builddep -y $DIR/ceph.spec
 
+maybe_downgrade_gcc
+
 BRANCH=`branch_slash_filter $BRANCH`
 
 if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then
index 921021742fdff793a9f5b86c2b3aa135f93b4a06..36fd8aa28697548775074de5acf3d4ab3b293a24 100644 (file)
@@ -44,6 +44,8 @@ $SUDO yum install -y \*rpm-macros
 
 $SUDO yum-builddep -y $DIR/ceph.spec
 
+maybe_downgrade_gcc
+
 BRANCH=`branch_slash_filter $BRANCH`
 
 if [[ ! -f /etc/redhat-release && ! -f /usr/bin/zypper ]] ; then
index 6c27429d2051204cd97e14e1e24fccd348afe026..ff8a630c2489728dc888ad196bdf5bdc13ebec95 100644 (file)
@@ -953,3 +953,12 @@ get_nr_build_jobs() {
     fi
     echo $n_build_jobs
 }
+
+maybe_downgrade_gcc() {
+    # see also https://bugzilla.redhat.com/show_bug.cgi?id=1726630
+    if [ $(rpm -q --queryformat "%{VERSION}" devtoolset-8-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
+}