libc/glibc: do not try to download NPTL add-on
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jun 04 17:15:58 2011 +0200 (2011-06-04)
changeset 25043fc114996b20
parent 2503 b5541f296b92
child 2505 f87f02b00cc7
libc/glibc: do not try to download NPTL add-on

The NPTL add-on has always been internal, so there is no
reason to try downloading it, it will never succeed.
Add provision to skip other add-ons as well.

For consistency, do the same test in both glibc and eglibc.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/libc/eglibc.sh
scripts/build/libc/glibc.sh
     1.1 --- a/scripts/build/libc/eglibc.sh	Fri Jun 03 17:21:56 2011 +0200
     1.2 +++ b/scripts/build/libc/eglibc.sh	Sat Jun 04 17:15:58 2011 +0200
     1.3 @@ -26,8 +26,12 @@
     1.4                "${CT_EGLIBC_REVISION:-HEAD}"
     1.5  
     1.6      for addon in $(do_libc_add_ons_list " "); do
     1.7 -        # NPTL addon is not to be downloaded, in any case
     1.8 -        [ "${addon}" = "nptl" ] && continue || true
     1.9 +        # Never ever try to download these add-ons,
    1.10 +        # they've always been internal
    1.11 +        case "${addon}" in
    1.12 +            nptl)   continue;;
    1.13 +        esac
    1.14 +
    1.15          if ! CT_GetSVN "eglibc-${addon}-${CT_LIBC_VERSION}" \
    1.16                         "${svn_base}/${addon}"               \
    1.17                         "${CT_EGLIBC_REVISION:-HEAD}"
     2.1 --- a/scripts/build/libc/glibc.sh	Fri Jun 03 17:21:56 2011 +0200
     2.2 +++ b/scripts/build/libc/glibc.sh	Sat Jun 04 17:15:58 2011 +0200
     2.3 @@ -27,6 +27,12 @@
     2.4  
     2.5      # C library addons
     2.6      for addon in "${addons_list[@]}"; do
     2.7 +        # Never ever try to download these add-ons,
     2.8 +        # they've always been internal
     2.9 +        case "${addon}" in
    2.10 +            nptl)   continue;;
    2.11 +        esac
    2.12 +
    2.13          if ! CT_GetFile "glibc-${addon}-${CT_LIBC_VERSION}"     \
    2.14                          {ftp,http}://ftp.gnu.org/gnu/glibc      \
    2.15                          ftp://gcc.gnu.org/pub/glibc/releases    \