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

Commit 441bcbb

Browse files
committed
Merge pull request #47 from rillian/fixes
Fix bitrot in dist/Dockerfile
2 parents ccdf530 + e3233ef commit 441bcbb

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

slaves/dist/Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,13 @@ RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave
2424
RUN mkdir /home/rustbuild
2525
RUN chown rustbuild:rustbuild /home/rustbuild
2626

27-
# binutils < 2.22 has a bug where the 32-bit executables it generates
28-
# immediately segfault in Rust, so we need to install our own binutils.
29-
#
30-
# See https://github.com/rust-lang/rust/issues/20440 for more info
31-
COPY dist/build_binutils.sh /build/
32-
RUN sh build_binutils.sh && rm -rf /build
33-
3427
# Install gcc 4.7 which has C++11 support which is required by LLVM
3528
#
3629
# After we're done building we erase the binutils/gcc installs from CentOS to
3730
# ensure that we always use the ones that we just built.
3831
COPY dist/build_gcc.sh /build/
3932
RUN sh build_gcc.sh && rm -rf /build
4033

41-
# libssh2 (a dependency of Cargo) requires cmake 2.8.11 or higher but CentOS
42-
# only has 2.6.4, so build our own
43-
COPY dist/build_cmake.sh /build/
44-
RUN sh build_cmake.sh && rm -rf /build
45-
46-
# tar on CentOS is too old as it doesn't understand the --exclude-vcs option
47-
# that the Rust build system passes it, so install a new version.
48-
COPY dist/build_tar.sh /build/
49-
RUN sh build_tar.sh && rm -rf /build
50-
5134
# We need a build of openssl which supports SNI to download artifacts from
5235
# static.rust-lang.org. This'll be used to link into libcurl below (and used
5336
# later as well), so build a copy of OpenSSL with dynamic libraries into our
@@ -64,6 +47,23 @@ RUN sh build_openssl.sh && rm -rf /build
6447
COPY dist/build_curl.sh /build/
6548
RUN sh build_curl.sh
6649

50+
# binutils < 2.22 has a bug where the 32-bit executables it generates
51+
# immediately segfault in Rust, so we need to install our own binutils.
52+
#
53+
# See https://github.com/rust-lang/rust/issues/20440 for more info
54+
COPY dist/build_binutils.sh /build/
55+
RUN sh build_binutils.sh && rm -rf /build
56+
57+
# libssh2 (a dependency of Cargo) requires cmake 2.8.11 or higher but CentOS
58+
# only has 2.6.4, so build our own
59+
COPY dist/build_cmake.sh /build/
60+
RUN sh build_cmake.sh && rm -rf /build
61+
62+
# tar on CentOS is too old as it doesn't understand the --exclude-vcs option
63+
# that the Rust build system passes it, so install a new version.
64+
COPY dist/build_tar.sh /build/
65+
RUN sh build_tar.sh && rm -rf /build
66+
6767
# CentOS 5.5 has Python 2.4 by default, but LLVM needs 2.7+
6868
COPY dist/build_python.sh /build/
6969
RUN sh build_python.sh && rm -rf /build

slaves/dist/build_binutils.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ cd binutils-build
88
../binutils-2.25.1/configure --prefix=/rustroot
99
make -j10
1010
make install
11+
yum erase -y binutils

slaves/dist/build_cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ex
44

5-
curl http://www.cmake.org/files/v3.3/cmake-3.3.2.tar.gz | tar xzf -
5+
curl https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz | tar xzf -
66
mkdir cmake-build
77
cd cmake-build
88
../cmake-3.3.2/configure --prefix=/rustroot

slaves/dist/build_curl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
curl http://curl.haxx.se/download/curl-7.44.0.tar.bz2 | tar xjf -
66
mkdir curl-build
77
cd curl-build
8-
../curl-7.44.0/configure --prefix=/rustroot \
8+
../curl-7.44.0/configure --prefix=/rustroot --with-ssl=/rustroot \
99
--disable-sspi --disable-gopher --disable-smtp --disable-smb \
1010
--disable-imap --disable-pop3 --disable-tftp --disable-telnet \
1111
--disable-manual --disable-dict --disable-rtsp --disable-ldaps \

slaves/dist/build_gcc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cd ../gcc-4.7.4-build
1212
make -j10
1313
make install
1414
ln -nsf gcc /rustroot/bin/cc
15-
yum erase -y gcc wget binutils
15+
yum erase -y gcc wget

0 commit comments

Comments
 (0)