[PATCH] Change URL of gcc's tarball
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Jul 20 11:04:00 GMT 2018
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)
More information about the Libc-alpha
mailing list