Skip to content

Commit 851d583

Browse files
authored
fix: stability, use GNU tools mirrors and retry on transient failures (#1863)
1 parent 6492f6d commit 851d583

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ COPY build_scripts/install-autoconf.sh /build_scripts/
6767
RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \
6868
export AUTOCONF_ROOT=autoconf-2.72 && \
6969
export AUTOCONF_HASH=afb181a76e1ee72832f6581c0eddf8df032b83e2e0239ef79ebedc4467d92d6e && \
70-
export AUTOCONF_DOWNLOAD_URL=http://ftp.gnu.org/gnu/autoconf && \
70+
export AUTOCONF_DOWNLOAD_URL=https://ftpmirror.gnu.org/gnu/autoconf && \
7171
/tmp/cross-compiler/entrypoint /build_scripts/install-autoconf.sh
7272

7373
COPY build_scripts/install-automake.sh /build_scripts/
7474
RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \
7575
export AUTOMAKE_ROOT=automake-1.18.1 && \
7676
export AUTOMAKE_HASH=63e585246d0fc8772dffdee0724f2f988146d1a3f1c756a3dc5cfbefa3c01915 && \
77-
export AUTOMAKE_DOWNLOAD_URL=http://ftp.gnu.org/gnu/automake && \
77+
export AUTOMAKE_DOWNLOAD_URL=https://ftpmirror.gnu.org/gnu/automake && \
7878
/tmp/cross-compiler/entrypoint /build_scripts/install-automake.sh
7979

8080
COPY build_scripts/install-libtool.sh /build_scripts/
8181
RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \
8282
export LIBTOOL_ROOT=libtool-2.5.4 && \
8383
export LIBTOOL_HASH=da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf && \
84-
export LIBTOOL_DOWNLOAD_URL=http://ftp.gnu.org/gnu/libtool && \
84+
export LIBTOOL_DOWNLOAD_URL=https://ftpmirror.gnu.org/gnu/libtool && \
8585
/tmp/cross-compiler/entrypoint /build_scripts/install-libtool.sh
8686

8787
COPY build_scripts/install-libxcrypt.sh /build_scripts/

docker/build_scripts/build_utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function fetch_source {
5454
if [ -f "${file}" ]; then
5555
echo "${file} exists, skipping fetch"
5656
else
57-
curl -fsSL -o "${file}" "${url}/${file}"
57+
curl -fsSL --retry 10 -o "${file}" "${url}/${file}"
5858
fi
5959
}
6060

0 commit comments

Comments
 (0)