From da6b8eb2abce5eeecc25c64d9e193a2dcd3f63a3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 30 Sep 2025 16:13:38 +0300 Subject: [PATCH] BuildSystem: Use ftpmirror.gnu.org for downloads ftp.gnu.org is really slow :( --- ports/bash/build.sh | 2 +- ports/binutils/build.sh | 2 +- ports/gcc/build.sh | 2 +- ports/gmp/build.sh | 8 ++++---- ports/libiconv/build.sh | 2 +- ports/make/build.sh | 2 +- ports/mpc/build.sh | 2 +- ports/mpfr/build.sh | 2 +- ports/ncurses/build.sh | 2 +- toolchain/build.sh | 6 +++--- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ports/bash/build.sh b/ports/bash/build.sh index e9bfdae8..0cca2af4 100755 --- a/ports/bash/build.sh +++ b/ports/bash/build.sh @@ -2,7 +2,7 @@ NAME='bash' VERSION='5.2.37' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/bash/bash-$VERSION.tar.gz#9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/bash/bash-$VERSION.tar.gz#9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff" DEPENDENCIES=('ncurses') CONFIG_SUB=('support/config.sub') CONFIGURE_OPTIONS=( diff --git a/ports/binutils/build.sh b/ports/binutils/build.sh index 04732842..4ce7dd0a 100755 --- a/ports/binutils/build.sh +++ b/ports/binutils/build.sh @@ -2,7 +2,7 @@ NAME='binutils' VERSION='2.44' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz#0cdd76777a0dfd3dd3a63f215f030208ddb91c2361d2bcc02acec0f1c16b6a2e" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz#0cdd76777a0dfd3dd3a63f215f030208ddb91c2361d2bcc02acec0f1c16b6a2e" DEPENDENCIES=('zlib' 'zstd') MAKE_INSTALL_TARGETS=('install-strip') CONFIGURE_OPTIONS=( diff --git a/ports/gcc/build.sh b/ports/gcc/build.sh index b6d85f62..3415da17 100755 --- a/ports/gcc/build.sh +++ b/ports/gcc/build.sh @@ -2,7 +2,7 @@ NAME='gcc' VERSION='15.2.0' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.xz#438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.xz#438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e" DEPENDENCIES=('binutils' 'gmp' 'mpfr' 'mpc') MAKE_INSTALL_TARGETS=('install-strip-gcc' 'install-strip-target-libgcc' 'install-strip-target-libstdc++-v3') CONFIGURE_OPTIONS=( diff --git a/ports/gmp/build.sh b/ports/gmp/build.sh index 30f24a49..72ea2758 100755 --- a/ports/gmp/build.sh +++ b/ports/gmp/build.sh @@ -2,11 +2,11 @@ NAME='gmp' VERSION='6.3.0' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/gmp/gmp-$VERSION.tar.xz#a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/gmp/gmp-$VERSION.tar.xz#a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898" CONFIG_SUB=('configfsf.sub') - -# configure does not work with (default) c23 -export CFLAGS="--std=c17 $CFLAGS" +CONFIGURE_OPTIONS=( + 'CFLAGS=-std=c17' +) post_install() { # remove libtool file diff --git a/ports/libiconv/build.sh b/ports/libiconv/build.sh index 6ee141dd..688b9484 100755 --- a/ports/libiconv/build.sh +++ b/ports/libiconv/build.sh @@ -2,7 +2,7 @@ NAME='libiconv' VERSION='1.18' -DOWNLOAD_URL="https://ftp.gnu.org/pub/gnu/libiconv/libiconv-$VERSION.tar.gz#3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8" +DOWNLOAD_URL="https://ftpmirror.gnu.org/pub/gnu/libiconv/libiconv-$VERSION.tar.gz#3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8" CONFIG_SUB=('build-aux/config.sub' 'libcharset/build-aux/config.sub') CONFIGURE_OPTIONS=( '--disable-nls' diff --git a/ports/make/build.sh b/ports/make/build.sh index 9bceefd1..09061d6f 100755 --- a/ports/make/build.sh +++ b/ports/make/build.sh @@ -2,7 +2,7 @@ NAME='make' VERSION='4.4.1' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/make/make-$VERSION.tar.gz#dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/make/make-$VERSION.tar.gz#dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3" CONFIG_SUB=('build-aux/config.sub') CONFIGURE_OPTIONS=( '--with-sysroot=/' diff --git a/ports/mpc/build.sh b/ports/mpc/build.sh index 4336a715..95fa1b7e 100755 --- a/ports/mpc/build.sh +++ b/ports/mpc/build.sh @@ -2,7 +2,7 @@ NAME='mpc' VERSION='1.3.1' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/mpc/mpc-$VERSION.tar.gz#ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/mpc/mpc-$VERSION.tar.gz#ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8" DEPENDENCIES=('gmp' 'mpfr') CONFIG_SUB=('build-aux/config.sub') CONFIGURE_OPTIONS=( diff --git a/ports/mpfr/build.sh b/ports/mpfr/build.sh index 59f71e12..41149bbe 100755 --- a/ports/mpfr/build.sh +++ b/ports/mpfr/build.sh @@ -2,7 +2,7 @@ NAME='mpfr' VERSION='4.2.2' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/mpfr/mpfr-$VERSION.tar.gz#826cbb24610bd193f36fde172233fb8c009f3f5c2ad99f644d0dea2e16a20e42" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/mpfr/mpfr-$VERSION.tar.gz#826cbb24610bd193f36fde172233fb8c009f3f5c2ad99f644d0dea2e16a20e42" DEPENDENCIES=('gmp') CONFIG_SUB=('config.sub') CONFIGURE_OPTIONS=( diff --git a/ports/ncurses/build.sh b/ports/ncurses/build.sh index 4306ec67..7f005860 100755 --- a/ports/ncurses/build.sh +++ b/ports/ncurses/build.sh @@ -2,7 +2,7 @@ NAME='ncurses' VERSION='6.5' -DOWNLOAD_URL="https://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz#136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6" +DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz#136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6" CONFIG_SUB=('config.sub') CONFIGURE_OPTIONS=( "--with-pkg-config='$PKG_CONFIG'" diff --git a/toolchain/build.sh b/toolchain/build.sh index 261c7db2..ae356e12 100755 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -3,15 +3,15 @@ set -e BINUTILS_VERSION="binutils-2.45" BINUTILS_TAR="$BINUTILS_VERSION.tar.xz" -BINUTILS_URL="https://ftp.gnu.org/gnu/binutils/$BINUTILS_TAR" +BINUTILS_URL="https://ftpmirror.gnu.org/gnu/binutils/$BINUTILS_TAR" GCC_VERSION="gcc-15.2.0" GCC_TAR="$GCC_VERSION.tar.xz" -GCC_URL="https://ftp.gnu.org/gnu/gcc/$GCC_VERSION/$GCC_TAR" +GCC_URL="https://ftpmirror.gnu.org/gnu/gcc/$GCC_VERSION/$GCC_TAR" GRUB_VERSION="grub-2.06" GRUB_TAR="$GRUB_VERSION.tar.xz" -GRUB_URL="https://ftp.gnu.org/gnu/grub/$GRUB_TAR" +GRUB_URL="https://ftpmirror.gnu.org/gnu/grub/$GRUB_TAR" CMAKE_VERSION="cmake-3.26.6-linux-x86_64" CMAKE_TAR="$CMAKE_VERSION.tar.gz"