Some people are reposrting that ftp does not work on their network, probably due to proxies, while http does work.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat May 03 17:51:16 2008 +0000 (2008-05-03)
changeset 48692f6149c4275
parent 485 9c2f9a35d1e5
child 487 ef82cb824406
Some people are reposrting that ftp does not work on their network, probably due to proxies, while http does work.
Some (most) of the sites we use toretrieve tarballs have http equivallent for the ftp service. Use http as a failover.
There's no solution for those sites that do not have such an http equivalent.

/trunk/scripts/build/binutils.sh | 5 2 3 0 ++---
/trunk/scripts/build/libc_glibc.sh | 4 2 2 0 ++--
/trunk/scripts/build/libc_uClibc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 8 3 5 0 +++-----
/trunk/scripts/build/kernel_linux.sh | 7 2 5 0 ++-----
/trunk/scripts/build/cc_gcc.sh | 6 2 4 0 ++----
/trunk/scripts/build/gmp.sh | 4 1 3 0 +---
8 files changed, 14 insertions(+), 24 deletions(-)
scripts/build/binutils.sh
scripts/build/cc_gcc.sh
scripts/build/debug/300-gdb.sh
scripts/build/debug/400-ltrace.sh
scripts/build/gmp.sh
scripts/build/kernel_linux.sh
scripts/build/libc_glibc.sh
scripts/build/libc_uClibc.sh
     1.1 --- a/scripts/build/binutils.sh	Sat May 03 17:01:35 2008 +0000
     1.2 +++ b/scripts/build/binutils.sh	Sat May 03 17:51:16 2008 +0000
     1.3 @@ -8,9 +8,8 @@
     1.4  
     1.5  # Download binutils
     1.6  do_binutils_get() {
     1.7 -    CT_GetFile "${CT_BINUTILS_FILE}"                            \
     1.8 -               ftp://ftp.gnu.org/gnu/binutils                   \
     1.9 -               ftp://ftp.kernel.org/pub/linux/devel/binutils
    1.10 +    CT_GetFile "${CT_BINUTILS_FILE}"    \
    1.11 +               {ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils
    1.12  }
    1.13  
    1.14  # Extract binutils
     2.1 --- a/scripts/build/cc_gcc.sh	Sat May 03 17:01:35 2008 +0000
     2.2 +++ b/scripts/build/cc_gcc.sh	Sat May 03 17:51:16 2008 +0000
     2.3 @@ -15,10 +15,8 @@
     2.4      # Arrgghh! Some of those versions does not follow this convention:
     2.5      # gcc-3.3.3 lives in releases/gcc-3.3.3, while gcc-2.95.* isn't in a
     2.6      # subdirectory! You bastard!
     2.7 -    CT_GetFile "${CT_CC_FILE}"                                  \
     2.8 -               ftp://ftp.gnu.org/gnu/gcc/${CT_CC_FILE}          \
     2.9 -               ftp://ftp.gnu.org/gnu/gcc/releases/${CT_CC_FILE} \
    2.10 -               ftp://ftp.gnu.org/gnu/gcc
    2.11 +    CT_GetFile "${CT_CC_FILE}"  \
    2.12 +               {ftp,http}://ftp.gnu.org/gnu/gcc{,{,/releases}/${CT_CC_FILE}}
    2.13  }
    2.14  
    2.15  # Extract gcc
     3.1 --- a/scripts/build/debug/300-gdb.sh	Sat May 03 17:01:35 2008 +0000
     3.2 +++ b/scripts/build/debug/300-gdb.sh	Sat May 03 17:51:16 2008 +0000
     3.3 @@ -15,11 +15,9 @@
     3.4  }
     3.5  
     3.6  do_debug_gdb_get() {
     3.7 -    CT_GetFile "gdb`do_debug_gdb_suffix`"                           \
     3.8 -               ftp://ftp.gnu.org/pub/gnu/gdb                        \
     3.9 -               ftp://sources.redhat.com/pub/gdb/releases            \
    3.10 -               ftp://sources.redhat.com/pub/gdb/old-releases        \
    3.11 -               ftp://sources.redhat.com/pub/gdb/snapshots/current 
    3.12 +    CT_GetFile "gdb`do_debug_gdb_suffix`"           \
    3.13 +               {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
    3.14 +               ftp://sources.redhat.com/pub/gdb/{{,old-}releases,snapshots/current}
    3.15  }
    3.16  
    3.17  do_debug_gdb_extract() {
     4.1 --- a/scripts/build/debug/400-ltrace.sh	Sat May 03 17:01:35 2008 +0000
     4.2 +++ b/scripts/build/debug/400-ltrace.sh	Sat May 03 17:51:16 2008 +0000
     4.3 @@ -8,7 +8,7 @@
     4.4  }
     4.5  
     4.6  do_debug_ltrace_get() {
     4.7 -    CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" ftp://ftp.de.debian.org/debian/pool/main/l/ltrace/
     4.8 +    CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
     4.9      # Create a link so that the following steps are easier to do:
    4.10      cd "${CT_TARBALLS_DIR}"
    4.11      ltrace_ext=`CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig"`
     5.1 --- a/scripts/build/gmp.sh	Sat May 03 17:01:35 2008 +0000
     5.2 +++ b/scripts/build/gmp.sh	Sat May 03 17:51:16 2008 +0000
     5.3 @@ -10,9 +10,7 @@
     5.4  
     5.5  # Download GMP
     5.6  do_gmp_get() {
     5.7 -    CT_GetFile "${CT_GMP_FILE}"                 \
     5.8 -               http://ftp.sunet.se/pub/gnu/gmp  \
     5.9 -               ftp://ftp.gnu.org/gnu/gmp
    5.10 +    CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
    5.11  }
    5.12  
    5.13  # Extract GMP
     6.1 --- a/scripts/build/kernel_linux.sh	Sat May 03 17:01:35 2008 +0000
     6.2 +++ b/scripts/build/kernel_linux.sh	Sat May 03 17:51:16 2008 +0000
     6.3 @@ -13,11 +13,8 @@
     6.4  # Download the kernel
     6.5  do_kernel_get() {
     6.6      if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" != "y" ]; then
     6.7 -        CT_GetFile "${CT_KERNEL_FILE}"                                  \
     6.8 -                   ftp://ftp.kernel.org/pub/linux/kernel/v2.6           \
     6.9 -                   ftp://ftp.kernel.org/pub/linux/kernel/v2.4           \
    6.10 -                   ftp://ftp.kernel.org/pub/linux/kernel/v2.2           \
    6.11 -                   ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing   \
    6.12 +        CT_GetFile "${CT_KERNEL_FILE}"                                                  \
    6.13 +                   {ftp,http}://ftp.kernel.org/pub/linux/kernel/v2.{6{,/testing},4,2}   \
    6.14                     http://ep09.pld-linux.org/~mmazur/linux-libc-headers
    6.15      fi
    6.16      return 0
     7.1 --- a/scripts/build/libc_glibc.sh	Sat May 03 17:01:35 2008 +0000
     7.2 +++ b/scripts/build/libc_glibc.sh	Sat May 03 17:51:16 2008 +0000
     7.3 @@ -17,13 +17,13 @@
     7.4      # Ah! Not all GNU folks seem stupid. All glibc releases are in the same
     7.5      # directory. Good. Alas, there is no snapshot there. I'll deal with them
     7.6      # later on... :-/
     7.7 -    CT_GetFile "${CT_LIBC_FILE}" ftp://ftp.gnu.org/gnu/glibc
     7.8 +    CT_GetFile "${CT_LIBC_FILE}" {ftp,http}://ftp.gnu.org/gnu/glibc
     7.9  
    7.10      # C library addons
    7.11      for addon in `do_libc_add_ons_list " "`; do
    7.12          # NPTL addon is not to be downloaded, in any case
    7.13          [ "${addon}" = "nptl" ] && continue || true
    7.14 -        CT_GetFile "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}" ftp://ftp.gnu.org/gnu/glibc
    7.15 +        CT_GetFile "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}" {ftp,http}://ftp.gnu.org/gnu/glibc
    7.16      done
    7.17  
    7.18      return 0
     8.1 --- a/scripts/build/libc_uClibc.sh	Sat May 03 17:01:35 2008 +0000
     8.2 +++ b/scripts/build/libc_uClibc.sh	Sat May 03 17:51:16 2008 +0000
     8.3 @@ -10,7 +10,7 @@
     8.4  
     8.5  # Download uClibc
     8.6  do_libc_get() {
     8.7 -	libc_src="http://www.uclibc.org/downloads
     8.8 +    libc_src="http://www.uclibc.org/downloads
     8.9                http://www.uclibc.org/downloads/snapshots
    8.10                http://www.uclibc.org/downloads/old-releases"
    8.11      # For uClibc, we have almost every thing: releases, and snapshots