From 3a577f7d6a72c653971dc5e58bb84ef8176a9afe Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 8 Sep 2025 10:56:54 +0200 Subject: [PATCH] Use GNU mirrors --- bin/cross_toolchain.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cross_toolchain.rb b/bin/cross_toolchain.rb index cae2d7d..bcea3c0 100755 --- a/bin/cross_toolchain.rb +++ b/bin/cross_toolchain.rb @@ -105,7 +105,7 @@ def download_and_unarchive(url, target) http.request request do |response| case response when Net::HTTPRedirection - download_and_unarchive URI.parse(response['location']) + download_and_unarchive URI.parse(response['location']), target when Net::HTTPSuccess Open3.popen2 'tar', '-C', target.to_path, archive_type, '-xv' do |stdin, stdout, wait_thread| Thread.new do @@ -137,7 +137,7 @@ end # Build cross binutils. def binutils(options) source_directory = download_and_unarchive( - URI.parse("https://ftp.gnu.org/gnu/binutils/binutils-#{BINUTILS_VERSION}.tar.xz"), + URI.parse("https://ftpmirror.gnu.org/gnu/binutils/binutils-#{BINUTILS_VERSION}.tar.xz"), options.tools) cwd = source_directory.dirname + 'build-binutils' @@ -209,7 +209,7 @@ end # Copy glibc headers. def headers(options) source_directory = download_and_unarchive( - URI.parse("https://ftp.gnu.org/gnu/glibc/glibc-#{GLIBC_VERSION}.tar.xz"), + URI.parse("https://ftpmirror.gnu.org/gnu/glibc/glibc-#{GLIBC_VERSION}.tar.xz"), options.tools) include_directory = options.tools + 'include'