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

Commit e46fabc

Browse files
committed
Download gcc without tls.
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.
1 parent c6e09c0 commit e46fabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slaves/dist/build_gcc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VERSION=4.7.4
66
SHA256=92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282
77

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

0 commit comments

Comments
 (0)