From 79422633cf2d0282ed2d637d2ba237cc3f4e6a8e Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Mon, 8 Dec 2014 15:03:08 -0800 Subject: scripts: Update download locations This change updates the download locations to default to the official download site. For gcc and gdb, also separate out the linaro download locations so that if you are downloading the linaro variant, it skips trying to download from the official gcc mirror. This commit closes #3 Signed-off-by: Bryan Hundven Reported-by: Thomas Petazzoni --- scripts/build/debug/300-gdb.sh | 14 +++++++++----- scripts/build/debug/400-ltrace.sh | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'scripts/build/debug') diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 029a58fe..0c637241 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -51,16 +51,20 @@ do_debug_gdb_get() { if [ "${CT_GDB_CUSTOM}" = "y" ]; then CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}" else - CT_GetFile "gdb-${CT_GDB_VERSION}" \ - {ftp,http}://ftp.gnu.org/pub/gnu/gdb \ - ftp://sources.redhat.com/pub/gdb/{,old-}releases \ - "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" + if [ x"${linaro_release}" = x"" ]; then + CT_GetFile "gdb-${CT_GDB_VERSION}" \ + ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \ + {http,ftp,https}://ftp.gnu.org/pub/gnu/gdb \ + else + CT_GetFile "gdb-${CT_GDB_VERSION}" \ + "${linaro_base_url}/${linaro_series}/${linaro_version}/+download" + fi fi fi if [ "${need_ncurses_src}" = "y" ]; then CT_GetFile "ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}" .tar.gz \ - {ftp,http}://ftp.gnu.org/pub/gnu/ncurses \ + {http,ftp,https}://ftp.gnu.org/pub/gnu/ncurses \ ftp://invisible-island.net/ncurses fi diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh index 44f8af24..01e80819 100644 --- a/scripts/build/debug/400-ltrace.sh +++ b/scripts/build/debug/400-ltrace.sh @@ -2,7 +2,7 @@ do_debug_ltrace_get() { CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" .tar.gz \ - {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/ + {ftp,http}://ftp.debian.org/debian/pool/main/l/ltrace/ # Create a link so that the following steps are easier to do: CT_Pushd "${CT_TARBALLS_DIR}" ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig") -- cgit v1.2.3