Skip to content

Commit 11fc1a6

Browse files
committed
feat: update GNU_SITE to use kernel.org mirror for improved reliability
- Changed the default GNU_SITE from ftpmirror.gnu.org to https://mirrors.kernel.org/gnu to avoid 502 Bad Gateway errors from community mirrors. - This update affects the download process for binutils, gmp, mpc, mpfr, and gcc, enhancing the overall build stability across multiple Python versions.
1 parent 53c4305 commit 11fc1a6

20 files changed

Lines changed: 140 additions & 0 deletions

File tree

2.7/x86/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

2.7/x86_64/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.10/x86/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.10/x86_64/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.11/x86/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.11/x86_64/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.12/x86/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.12/x86_64/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.13/x86/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

3.13/x86_64/deplib/config.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ GCC_VER = 15.1.0
33
MUSL_VER = 1.2.5
44
COMMON_CONFIG += CFLAGS="-g0 -O3" CXXFLAGS="-g0 -O3" LDFLAGS="-s"
55
GCC_CONFIG += --enable-default-pie --enable-static-pie
6+
7+
# Override musl-cross-make's default GNU_SITE = https://ftpmirror.gnu.org/gnu
8+
# — the redirector is fast but routes to community mirrors that periodically
9+
# return 502 Bad Gateway, killing the entire build. kernel.org's GNU mirror
10+
# is anycast-fronted and one of the most reliable on the public internet.
11+
# Affects binutils, gmp, mpc, mpfr, gcc (all ${GNU_SITE}/<pkg>).
12+
GNU_SITE = https://mirrors.kernel.org/gnu

0 commit comments

Comments
 (0)