@@ -32,10 +32,12 @@ RUN set -ex; \
3232# https://gcc.gnu.org/mirrors.html
3333ENV GCC_MIRRORS \
3434 https://ftpmirror.gnu.org/gcc \
35+ https://mirrors.kernel.org/gnu/gcc \
3536 https://bigsearcher.com/mirrors/gcc/releases \
36- https://mirrors-usa.go-parts.com/gcc/releases \
37- https://mirrors.concertpass.com/gcc/releases \
38- http://www.netgull.com/gcc/releases
37+ http://www.netgull.com/gcc/releases \
38+ https://ftpmirror.gnu.org/gcc \
39+ # only attempt the origin FTP as a mirror of last resort
40+ ftp://ftp.gnu.org/gnu/gcc
3941
4042# Last Modified: placeholder
4143ENV GCC_VERSION placeholder
@@ -63,11 +65,8 @@ RUN set -ex; \
6365 return 1; \
6466 }; \
6567 \
66- _fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%.sig" 'gcc.tar.%%TARBALL-COMPRESSION%%.sig' \
67- # 6.5.0 (https://mirrors.kernel.org/gnu/gcc/6.5.0/), no gcc- prefix
68- || _fetch "$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%.sig"; \
69- _fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%" 'gcc.tar.%%TARBALL-COMPRESSION%%' \
70- || _fetch "$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%" 'gcc.tar.%%TARBALL-COMPRESSION%%'; \
68+ _fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%.sig" 'gcc.tar.%%TARBALL-COMPRESSION%%.sig'; \
69+ _fetch "gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.%%TARBALL-COMPRESSION%%" 'gcc.tar.%%TARBALL-COMPRESSION%%'; \
7170 gpg --batch --verify gcc.tar.%%TARBALL-COMPRESSION%%.sig gcc.tar.%%TARBALL-COMPRESSION%%; \
7271 mkdir -p /usr/src/gcc; \
7372 tar -xf gcc.tar.%%TARBALL-COMPRESSION%% -C /usr/src/gcc --strip-components=1; \
0 commit comments