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

Commit 8829b20

Browse files
authored
Merge pull request #152 from rillian/late-gcc
Fix TLS incompatibility by building gcc after openssl
2 parents 23b0839 + 941295c commit 8829b20

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

slaves/dist/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave
2727
RUN mkdir /home/rustbuild
2828
RUN chown rustbuild:rustbuild /home/rustbuild
2929

30-
# Install gcc 4.7 which has C++11 support which is required by LLVM
31-
#
32-
# After we're done building we erase the binutils/gcc installs from CentOS to
33-
# ensure that we always use the ones that we just built.
34-
COPY dist/build_gcc.sh /build/
35-
RUN /bin/bash build_gcc.sh && rm -rf /build
36-
3730
# We need a build of openssl which supports SNI to download artifacts from
3831
# static.rust-lang.org. This'll be used to link into libcurl below (and used
3932
# later as well), so build a copy of OpenSSL with dynamic libraries into our
@@ -50,6 +43,13 @@ RUN /bin/bash build_openssl.sh && rm -rf /build
5043
COPY dist/build_curl.sh /build/
5144
RUN /bin/bash build_curl.sh
5245

46+
# Install gcc 4.7 which has C++11 support which is required by LLVM
47+
#
48+
# After we're done building we erase the binutils/gcc installs from CentOS to
49+
# ensure that we always use the ones that we just built.
50+
COPY dist/build_gcc.sh /build/
51+
RUN /bin/bash build_gcc.sh && rm -rf /build
52+
5353
# binutils < 2.22 has a bug where the 32-bit executables it generates
5454
# immediately segfault in Rust, so we need to install our own binutils.
5555
#

slaves/dist/build_curl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
VERSION=7.51.0
6-
SHA256=7f8240048907e5030f67be0a6129bc4b333783b9cca1391026d700835a788dde
5+
VERSION=7.52.1
6+
SHA256=d16185a767cb2c1ba3d5b9096ec54e5ec198b213f45864a38b3bda4bbf87389b
77

88
curl http://cool.haxx.se/download/curl-$VERSION.tar.bz2 | \
99
tee >(sha256sum > curl-$VERSION.tar.bz2.sha256) | tar xjf -

slaves/dist/build_git.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
VERSION=2.10.0
6-
SHA256=207cfce8cc0a36497abb66236817ef449a45f6ff9141f586bbe2aafd7bc3d90b
5+
VERSION=2.11.0
6+
SHA256=d3be9961c799562565f158ce5b836e2b90f38502d3992a115dfb653d7825fd7e
77

88
yum install -y gettext autoconf
99
curl https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz | \

slaves/dist/build_openssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -ex
44

5-
VERSION=1.0.2j
6-
SHA256=e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431
5+
VERSION=1.0.2k
6+
SHA256=6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
77

88
yum install -y setarch
99
curl ftp://ftp.openssl.org/source/openssl-$VERSION.tar.gz | \

0 commit comments

Comments
 (0)