This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Change URL of gcc's tarball
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Zong Li <zong at andestech dot com>, joseph at codesourcery dot com, libc-alpha at sourceware dot org
- Cc: nd at arm dot com, zongbox at gmail dot com
- Date: Fri, 20 Jul 2018 12:03:51 +0100
- Subject: Re: [PATCH] Change URL of gcc's tarball
- References: <1532081713-26010-1-git-send-email-zong@andestech.com>
On 20/07/18 11:15, Zong Li wrote:
After 7.1.0 version, there is no .bz2 format of gcc's tarball.
* scripts/build-many-glibcs.py (checkout_tar): Change the URL of gcc's
tarball.
...
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 601718d..892288d 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -869,7 +869,7 @@ class Context(object):
if update:
return
url_map = {'binutils': 'https://ftp.gnu.org/gnu/binutils/binutils-%(version)s.tar.bz2',
- 'gcc': 'https://ftp.gnu.org/gnu/gcc/gcc-%(version)s/gcc-%(version)s.tar.bz2',
+ 'gcc': 'https://ftp.gnu.org/gnu/gcc/gcc-%(version)s/gcc-%(version)s.tar.gz',
'gmp': 'https://ftp.gnu.org/gnu/gmp/gmp-%(version)s.tar.xz',
'linux': 'https://www.kernel.org/pub/linux/kernel/v4.x/linux-%(version)s.tar.xz',
'mpc': 'https://ftp.gnu.org/gnu/mpc/mpc-%(version)s.tar.gz',
i've run into this too, versions published after 2017-06
seems to use .gz and .xz (that includes gcc-5.5.0, gcc-6.4.0,
gcc-7.2.0, gcc-7.3.0 and gcc-8.1.0)
may be the url could be a list and if the first one fails
with 404 then retry the second. (e.g. gmp has some versions
without .gz and others without .xz tarball so there is no
single pattern that always works)