summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-04 12:46:13 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-04 12:46:13 (GMT)
commitdc54c4070455d0bffaaa0f68308574d265fd87eb (patch)
treed2a0693af435155562d380c15fa37de8f89a974f /scripts
parent87daa7bd58551dcb0a7865466b816ba7741811d5 (diff)
Enable using glibc post 2.8:
- retrieve tarballs from FTP/HTTP for glibc 2.7 and older - checkout from CVS for glibc 2.8 and later - add config options for glibc-2_8 and glibc-2_9 /trunk/scripts/build/libc/glibc.sh | 50 39 11 0 ++++++++++++++++++++++++++++++++++---------- /trunk/config/libc/glibc.in | 49 49 0 0 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 11 deletions(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/glibc.sh50
1 files changed, 39 insertions, 11 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
index e43d37b..a39c3c3 100644
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -4,23 +4,51 @@
# Download glibc
do_libc_get() {
+ local date
+
# Ah! Not all GNU folks seem stupid. All glibc releases are in the same
# directory. Good. Alas, there is no snapshot there. I'll deal with them
# later on... :-/
- CT_GetFile "${CT_LIBC_FILE}" \
- {ftp,http}://ftp.gnu.org/gnu/glibc \
- ftp://gcc.gnu.org/pub/glibc/releases \
- ftp://gcc.gnu.org/pub/glibc/snapshots
-
- # C library addons
- for addon in $(do_libc_add_ons_list " "); do
- # NPTL addon is not to be downloaded, in any case
- [ "${addon}" = "nptl" ] && continue || true
- CT_GetFile "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}" \
+ # Update: sadly, glibc folks do be stupid: they no longer build
+ # release tarballs as of glibc-2.8, hence forcing us to fetch
+ # from CVS (CVS! Don't those guys know the world of SCM has
+ # evolved since the dawn ages of CVS?) Sigh...
+ if [ "${CT_LIBC_GLIBC_2_8_or_later}" = "y" ]; then
+ # No release tarball available...
+ date="${CT_LIBC_GLIBC_CVS_date}"
+ CT_GetCVS "${CT_LIBC_FILE}" \
+ ":pserver:anoncvs@sources.redhat.com:/cvs/glibc" \
+ "libc" \
+ "glibc-${CT_LIBC_VERSION}-branch${date:+:}${date}" \
+ "${CT_LIBC_FILE}"
+
+ # C library addons
+ for addon in $(do_libc_add_ons_list " "); do
+ # NPTL addon is not to be downloaded, in any case
+ [ "${addon}" = "nptl" ] && continue || true
+ CT_GetCVS "glibc-${addon}-${CT_LIBC_VERSION}" \
+ ":pserver:anoncvs@sources.redhat.com:/cvs/glibc" \
+ "${addon}" \
+ "glibc-${CT_LIBC_VERSION}-branch${date:+:}${date}" \
+ "glibc-${addon}-${CT_LIBC_VERSION}"
+ done
+ else
+ # Release tarballs are available
+ CT_GetFile "${CT_LIBC_FILE}" \
{ftp,http}://ftp.gnu.org/gnu/glibc \
ftp://gcc.gnu.org/pub/glibc/releases \
ftp://gcc.gnu.org/pub/glibc/snapshots
- done
+
+ # C library addons
+ for addon in $(do_libc_add_ons_list " "); do
+ # NPTL addon is not to be downloaded, in any case
+ [ "${addon}" = "nptl" ] && continue || true
+ CT_GetFile "${CT_LIBC}-${addon}-${CT_LIBC_VERSION}" \
+ {ftp,http}://ftp.gnu.org/gnu/glibc \
+ ftp://gcc.gnu.org/pub/glibc/releases \
+ ftp://gcc.gnu.org/pub/glibc/snapshots
+ done
+ fi
return 0
}