@@ -24,30 +24,13 @@ RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave
24
24
RUN mkdir /home/rustbuild
25
25
RUN chown rustbuild:rustbuild /home/rustbuild
26
26
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
-
34
27
# Install gcc 4.7 which has C++11 support which is required by LLVM
35
28
#
36
29
# After we're done building we erase the binutils/gcc installs from CentOS to
37
30
# ensure that we always use the ones that we just built.
38
31
COPY dist/build_gcc.sh /build/
39
32
RUN sh build_gcc.sh && rm -rf /build
40
33
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
-
51
34
# We need a build of openssl which supports SNI to download artifacts from
52
35
# static.rust-lang.org. This'll be used to link into libcurl below (and used
53
36
# 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
64
47
COPY dist/build_curl.sh /build/
65
48
RUN sh build_curl.sh
66
49
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
+
67
67
# CentOS 5.5 has Python 2.4 by default, but LLVM needs 2.7+
68
68
COPY dist/build_python.sh /build/
69
69
RUN sh build_python.sh && rm -rf /build
0 commit comments