[PATCH] contrib: Allow overriding download_prerequisites base URL
Даниил Гусев <[email protected]> Sat, 1 Aug 2026 14:40:38 +0300
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <[email protected]> |
From 546ba30b01393797aca3a38c615d62c2fcf8a290 Mon Sep 17 00:00:00 2001 From: Daniil-Gusev <[email protected]> Date: Sat, 1 Aug 2026 14:16:26 +0300 Subject: [PATCH] contrib: Allow overriding download_prerequisites base URL Add support for GCC_PREREQUISITES_BASE_URL, so packages can be fetched from a local mirror instead of gcc.gnu.org every time. contrib/ChangeLog: * download_prerequisites (base_url): Allow overriding via the GCC_PREREQUISITES_BASE_URL environment variable. Document it in --help output. --- contrib/download_prerequisites | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index 2e6693a2aa6..582ff8daa81 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -33,7 +33,7 @@ mpc='mpc-1.3.1.tar.gz' isl='isl-0.24.tar.bz2' gettext='gettext-1.0.tar.gz' -base_url='https://gcc.gnu.org/pub/gcc/infrastructure/' +base_url="${GCC_PREREQUISITES_BASE_URL:-https://gcc.gnu.org/pub/gcc/infrastructure/}" echo_archives() { echo "${gettext}" @@ -86,6 +86,11 @@ The following options are available: --only-gettext inhibit downloading any package but gettext --help show this text and exit --version show version information and exit + +Environment variables: + + GCC_PREREQUISITES_BASE_URL override the URL prefix packages are downloaded + from; must include a trailing slash " versiontext="${program} ${version} -- 2.55.0