Skip to content

Commit

Permalink
BF: use vault repositories for EOL CentOS 5
Browse files Browse the repository at this point in the history
Main repositories for CentOS 5 now offline; point yum at
vault.centos.org (via IP to specialize to a particular server).
  • Loading branch information
matthew-brett committed Apr 4, 2017
1 parent 28f77ff commit 73e5882
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73e5882

Please sign in to comment.