This is an automated email from the ASF dual-hosted git repository.

jieyu pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 1abfbde992e5018eab08a7ef121800d157453d71
Author: Jie Yu <[email protected]>
AuthorDate: Sun Oct 28 21:10:12 2018 -0700

    Fixed RPM build issue for CentOS 6.
    
    Switched to use devtoolset-7 because devtoolset-3 has been deprecated
    and the metadata has been removed from the repository.
    
    (cherry picked from commit 6bd17fa7020f9b0fb7846fbb4df9866bd2c3b610)
---
 support/packaging/centos/build_rpm.sh | 2 +-
 support/packaging/centos/mesos.spec   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/support/packaging/centos/build_rpm.sh 
b/support/packaging/centos/build_rpm.sh
index f3d83b6..4c5b961 100755
--- a/support/packaging/centos/build_rpm.sh
+++ b/support/packaging/centos/build_rpm.sh
@@ -16,7 +16,7 @@ cp ${PACKAGING_DIR}/common/* $HOME/rpmbuild/SOURCES
 cp ${PACKAGING_DIR}/centos/mesos.spec $HOME/rpmbuild/SPECS
 
 if [ "$CENTOS_VERSION" = "6" ]; then
-  source scl_source enable devtoolset-3
+  source scl_source enable devtoolset-7
 fi
 
 make_dist() {
diff --git a/support/packaging/centos/mesos.spec 
b/support/packaging/centos/mesos.spec
index 0532985..86ebe3c 100644
--- a/support/packaging/centos/mesos.spec
+++ b/support/packaging/centos/mesos.spec
@@ -48,8 +48,8 @@ BuildRequires: subversion-devel < 2.0
 BuildRequires: patch
 
 %if 0%{?el6}
-BuildRequires: devtoolset-3-gcc
-BuildRequires: devtoolset-3-gcc-c++
+BuildRequires: devtoolset-7-gcc
+BuildRequires: devtoolset-7-gcc-c++
 BuildRequires: epel-rpm-macros
 BuildRequires: libevent2-devel
 %define _with_xfs no

Reply via email to