File tree 13 files changed +22
-22
lines changed
aarch64-unknown-linux-musl
arm-unknown-linux-musleabihf
mipsel-unknown-linux-musl
x86_64-unknown-linux-musl 13 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 11
11
12
12
set -ex
13
13
14
- curl -O https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
14
+ curl --retry 5 - O https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip
15
15
unzip -q android-ndk-r15b-linux-x86_64.zip
16
16
17
17
case " $1 " in
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ set -ex
19
19
# which apparently magically accepts the licenses.
20
20
21
21
mkdir sdk
22
- curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O
22
+ curl --retry 5 https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -O
23
23
unzip -d sdk sdk-tools-linux-3859397.zip
24
24
25
25
case " $1 " in
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ main() {
24
24
apt-get install --no-install-recommends e2tools
25
25
26
26
pushd " ${td} "
27
- curl -O " ${URL} /${name} "
27
+ curl --retry 5 - O " ${URL} /${name} "
28
28
unzip -q " ${name} "
29
29
30
30
local system
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ubuntu:17.10
3
3
RUN apt-get update && apt-get install -y --no-install-recommends \
4
4
gcc make libc6-dev git curl ca-certificates \
5
5
gcc-aarch64-linux-gnu qemu-user
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
6
+ RUN curl --retry 5 https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
7
7
tar xzf - && \
8
8
cd musl-1.1.19 && \
9
9
CC=aarch64-linux-gnu-gcc \
@@ -12,7 +12,7 @@ RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
12
12
cd .. && \
13
13
rm -rf musl-1.1.19
14
14
# Install linux kernel headers sanitized for use with musl
15
- RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
15
+ RUN curl --retry 5 -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
16
16
tar xzf - && \
17
17
cd kernel-headers-3.12.6-6 && \
18
18
make ARCH=arm64 prefix=/musl-aarch64 install -j4 && \
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4
4
gcc make libc6-dev git curl ca-certificates \
5
5
gcc-arm-linux-gnueabihf qemu-user
6
6
7
- RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | tar xzf -
7
+ RUN curl --retry 5 https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | tar xzf -
8
8
WORKDIR /musl-1.1.19
9
9
RUN CC=arm-linux-gnueabihf-gcc \
10
10
CFLAGS="-march=armv6 -marm" \
11
11
./configure --prefix=/musl-arm --enable-wrapper=yes
12
12
RUN make install -j4
13
13
14
14
# Install linux kernel headers sanitized for use with musl
15
- RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
15
+ RUN curl --retry 5 -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
16
16
tar xzf - && \
17
17
cd kernel-headers-3.12.6-6 && \
18
18
make ARCH=arm prefix=/musl-arm install -j4 && \
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ RUN apt-get install -y --no-install-recommends \
12
12
# since otherwise the script will fail to find a compiler.
13
13
# * We manually unset CROSS_COMPILE when running make; otherwise the makefile
14
14
# will call the non-existent binary 'i686-ar'.
15
- RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
15
+ RUN curl --retry 5 https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
16
16
tar xzf - && \
17
17
cd musl-1.1.19 && \
18
18
CC=gcc CFLAGS=-m32 ./configure --prefix=/musl-i686 --disable-shared --target=i686 && \
19
19
make CROSS_COMPILE= install -j4 && \
20
20
cd .. && \
21
21
rm -rf musl-1.1.19
22
22
# Install linux kernel headers sanitized for use with musl
23
- RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
23
+ RUN curl --retry 5 -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
24
24
tar xzf - && \
25
25
cd kernel-headers-3.12.6-6 && \
26
26
make ARCH=i386 prefix=/musl-i686 install -j4 && \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN mkdir /toolchain
8
8
9
9
# Note that this originally came from:
10
10
# https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11
- RUN curl -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11
+ RUN curl --retry 5 - L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
12
12
tar xjf - -C /toolchain --strip-components=1
13
13
14
14
ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.15/bin \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN mkdir /toolchain
8
8
9
9
# Note that this originally came from:
10
10
# https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11
- RUN curl -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11
+ RUN curl --retry 5 - L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
12
12
tar xjf - -C /toolchain --strip-components=2
13
13
14
14
ENV PATH=$PATH:/rust/bin:/toolchain/bin \
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ FROM ubuntu:17.10
3
3
RUN apt-get update
4
4
RUN apt-get install -y --no-install-recommends \
5
5
gcc make libc6-dev git curl ca-certificates
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
6
+ RUN curl --retry 5 https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
7
7
tar xzf - && \
8
8
cd musl-1.1.19 && \
9
9
./configure --prefix=/musl-x86_64 && \
10
10
make install -j4 && \
11
11
cd .. && \
12
12
rm -rf musl-1.1.19
13
13
# Install linux kernel headers sanitized for use with musl
14
- RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
14
+ RUN curl --retry 5 -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
15
15
tar xzf - && \
16
16
cd kernel-headers-3.12.6-6 && \
17
17
make ARCH=x86_64 prefix=/musl-x86_64 install -j4 && \
Original file line number Diff line number Diff line change 29
29
}
30
30
31
31
cd /
32
- curl -L https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
32
+ curl --retry 5 - L https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
33
33
tar -xz
34
34
35
35
cd /emsdk-portable
@@ -51,6 +51,6 @@ chmod a+rxw -R /emsdk-portable
51
51
52
52
# node 8 is required to run wasm
53
53
cd /
54
- curl -L https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz | \
54
+ curl --retry 5 - L https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz | \
55
55
tar -xJ
56
56
Original file line number Diff line number Diff line change 5
5
mkdir -m 777 /qemu
6
6
cd /qemu
7
7
8
- curl -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img
9
- curl -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20170828/images/generic/kernel.debian
10
- curl -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20170828/images/generic/initrd.debian
8
+ curl --retry 5 - LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img
9
+ curl --retry 5 - LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20170828/images/generic/kernel.debian
10
+ curl --retry 5 - LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20170828/images/generic/initrd.debian
11
11
12
12
mv kernel.debian kernel
13
13
mv initrd.debian initrd.gz
Original file line number Diff line number Diff line change 5
5
mkdir -m 777 /qemu
6
6
cd /qemu
7
7
8
- curl -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso
8
+ curl --retry 5 - LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso
9
9
7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz
10
10
7z e debian-9.0-sparc64-NETINST-1.iso boot/sparc64
11
11
mv sparc64 kernel
Original file line number Diff line number Diff line change @@ -21,21 +21,21 @@ if [ "$QEMU" != "" ]; then
21
21
# image is .gz : download and uncompress it
22
22
qemufile=" $( echo " ${QEMU% .gz} " | sed ' s/\//__/g' ) "
23
23
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
24
- curl " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " | \
24
+ curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " | \
25
25
gunzip -d > " ${tmpdir} /${qemufile} "
26
26
fi
27
27
elif [ -z " ${QEMU#* .xz} " ]; then
28
28
# image is .xz : download and uncompress it
29
29
qemufile=" $( echo " ${QEMU% .xz} " | sed ' s/\//__/g' ) "
30
30
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
31
- curl " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " | \
31
+ curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " | \
32
32
unxz > " ${tmpdir} /${qemufile} "
33
33
fi
34
34
else
35
35
# plain qcow2 image: just download it
36
36
qemufile=" $( echo " ${QEMU} " | sed ' s/\//__/g' ) "
37
37
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
38
- curl " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " \
38
+ curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/${QEMU} " \
39
39
> " ${tmpdir} /${qemufile} "
40
40
fi
41
41
fi
You can’t perform that action at this time.
0 commit comments