Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Commit

Permalink
Download gcc without tls.
Browse files Browse the repository at this point in the history
The new certificate for ftp.gnu.org doesn't validate on centos:5
because it thinks the hostname is alpha.gnu.org, which isn't listed
on the cert. Work around by dropping TLS protection on the download,
relying on just the checksum for validation.

Once we've bootstrapped our own openssl and curl we can download
things properly, so another fix would be to move gcc later in the
build order.
  • Loading branch information
rillian committed Feb 1, 2017
1 parent c6e09c0 commit e46fabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slaves/dist/build_gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VERSION=4.7.4
SHA256=92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282

yum install -y wget
curl https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.bz2 | \
curl http://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.bz2 | \
tee >(sha256sum > gcc-$VERSION.tar.bz2.sha256) | tar xjf -
test $SHA256 = $(cut -d ' ' -f 1 gcc-$VERSION.tar.bz2.sha256) || exit 1

Expand Down

0 comments on commit e46fabc

Please sign in to comment.