diff mbox series

Change URL of gcc's tarball

Message ID 1532081713-26010-1-git-send-email-zong@andestech.com
State New
Headers show
Series Change URL of gcc's tarball | expand

Commit Message

Zong Li July 20, 2018, 10:15 a.m. UTC
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

Szabolcs Nagy July 20, 2018, 11:03 a.m. UTC | #1
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)
Joseph Myers July 20, 2018, 3:31 p.m. UTC | #2
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.
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index f87b32c..dd34881 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
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',