From 73e58823b5fbba8647a23ce70285ab76949b4ceb Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Tue, 4 Apr 2017 13:06:48 -0700 Subject: [PATCH] BF: use vault repositories for EOL CentOS 5 Main repositories for CentOS 5 now offline; point yum at vault.centos.org (via IP to specialize to a particular server). --- docker/build_scripts/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/build_scripts/build.sh b/docker/build_scripts/build.sh index f2ed9b55..88b3c7e6 100644 --- a/docker/build_scripts/build.sh +++ b/docker/build_scripts/build.sh @@ -26,6 +26,14 @@ PYTHON_COMPILE_DEPS="zlib-devel bzip2-devel ncurses-devel sqlite-devel readline- # Libraries that are allowed as part of the manylinux1 profile MANYLINUX1_DEPS="glibc-devel libstdc++-devel glib2-devel libX11-devel libXext-devel libXrender-devel mesa-libGL-devel libICE-devel libSM-devel ncurses-devel" +# Centos 5 is EOL and is no longer available from the usual mirrors, so switch +# to http://vault.centos.org +# From: https://github.com/rust-lang/rust/pull/41045 +# IP 107.158.252.35 is one of several DNS resolutions for vault.centos.org. +sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf +sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo +sed -i 's/#\(baseurl.*\)mirror.centos.org/\1107.158.252.35/' /etc/yum.repos.d/*.repo + # Get build utilities MY_DIR=$(dirname "${BASH_SOURCE[0]}") source $MY_DIR/build_utils.sh