File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 13 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 1111
1212set -ex
1313
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
1515unzip -q android-ndk-r15b-linux-x86_64.zip
1616
1717case " $1 " in
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ set -ex
1919# which apparently magically accepts the licenses.
2020
2121mkdir 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
2323unzip -d sdk sdk-tools-linux-3859397.zip
2424
2525case " $1 " in
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ main() {
2424 apt-get install --no-install-recommends e2tools
2525
2626 pushd " ${td} "
27- curl -O " ${URL} /${name} "
27+ curl --retry 5 - O " ${URL} /${name} "
2828 unzip -q " ${name} "
2929
3030 local system
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ubuntu:17.10
33RUN apt-get update && apt-get install -y --no-install-recommends \
44 gcc make libc6-dev git curl ca-certificates \
55 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 | \
77 tar xzf - && \
88 cd musl-1.1.19 && \
99 CC=aarch64-linux-gnu-gcc \
@@ -12,7 +12,7 @@ RUN curl https://www.musl-libc.org/releases/musl-1.1.19.tar.gz | \
1212 cd .. && \
1313 rm -rf musl-1.1.19
1414# 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 | \
1616 tar xzf - && \
1717 cd kernel-headers-3.12.6-6 && \
1818 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 \
44 gcc make libc6-dev git curl ca-certificates \
55 gcc-arm-linux-gnueabihf qemu-user
66
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 -
88WORKDIR /musl-1.1.19
99RUN CC=arm-linux-gnueabihf-gcc \
1010 CFLAGS="-march=armv6 -marm" \
1111 ./configure --prefix=/musl-arm --enable-wrapper=yes
1212RUN make install -j4
1313
1414# 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 | \
1616 tar xzf - && \
1717 cd kernel-headers-3.12.6-6 && \
1818 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 \
1212# since otherwise the script will fail to find a compiler.
1313# * We manually unset CROSS_COMPILE when running make; otherwise the makefile
1414# 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 | \
1616 tar xzf - && \
1717 cd musl-1.1.19 && \
1818 CC=gcc CFLAGS=-m32 ./configure --prefix=/musl-i686 --disable-shared --target=i686 && \
1919 make CROSS_COMPILE= install -j4 && \
2020 cd .. && \
2121 rm -rf musl-1.1.19
2222# 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 | \
2424 tar xzf - && \
2525 cd kernel-headers-3.12.6-6 && \
2626 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
88
99# Note that this originally came from:
1010# 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 | \
1212 tar xjf - -C /toolchain --strip-components=1
1313
1414ENV 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
88
99# Note that this originally came from:
1010# 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 | \
1212 tar xjf - -C /toolchain --strip-components=2
1313
1414ENV PATH=$PATH:/rust/bin:/toolchain/bin \
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ FROM ubuntu:17.10
33RUN apt-get update
44RUN apt-get install -y --no-install-recommends \
55 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 | \
77 tar xzf - && \
88 cd musl-1.1.19 && \
99 ./configure --prefix=/musl-x86_64 && \
1010 make install -j4 && \
1111 cd .. && \
1212 rm -rf musl-1.1.19
1313# 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 | \
1515 tar xzf - && \
1616 cd kernel-headers-3.12.6-6 && \
1717 make ARCH=x86_64 prefix=/musl-x86_64 install -j4 && \
Original file line number Diff line number Diff line change 2929}
3030
3131cd /
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 | \
3333 tar -xz
3434
3535cd /emsdk-portable
@@ -51,6 +51,6 @@ chmod a+rxw -R /emsdk-portable
5151
5252# node 8 is required to run wasm
5353cd /
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 | \
5555 tar -xJ
5656
You can’t perform that action at this time.
0 commit comments