From: Loic Dachary Date: Tue, 8 Dec 2015 07:02:56 +0000 (+0100) Subject: build/ops: enable CR in CentOS 7 X-Git-Tag: v12.2.13~109^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=56cf1ac9608f9520f69af4fe99df470c2577b40e;p=ceph.git build/ops: enable CR in CentOS 7 To get libunwind from the CR repositories until CentOS 7.2.1511 is released. http://tracker.ceph.com/issues/13997 Fixes: #13997 Signed-off-by: Loic Dachary (cherry picked from commit 247ee6084b58861da601d349bdba739b252d96de) --- diff --git a/install-deps.sh b/install-deps.sh index 61cc21d5477..796f3b74aa3 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -176,6 +176,9 @@ else $SUDO yum install --nogpgcheck -y epel-release $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION $SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org* + if test $(lsb_release -si) = CentOS -a $MAJOR_VERSION = 7 ; then + $SUDO yum-config-manager --enable cr + fi ;; esac munge_ceph_spec_in $DIR/ceph.spec