Change URL of gcc's tarball
Commit Message
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.
---
ChangeLog | 2 ++
scripts/build-many-glibcs.py | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
Comments
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)
On Fri, 20 Jul 2018, 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.
Thanks, committed.
@@ -2,6 +2,8 @@
* elf/Makefile (LDFLAGS-tst-execstack-mod): Change variable name by
adding the file extension (.so).
+ * scripts/build-many-glibcs.py (checkout_tar): Change the URL of gcc's
+ tarball.
2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
@@ -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',