Skip to content

Toolchain: Add fallback URLs for GNU downloads - #27015

Open
a-werel wants to merge 1 commit into
SerenityOS:masterfrom
a-werel:toolchain-buildgnu-fallback
Open

Toolchain: Add fallback URLs for GNU downloads#27015
a-werel wants to merge 1 commit into
SerenityOS:masterfrom
a-werel:toolchain-buildgnu-fallback

Conversation

@a-werel

@a-werel a-werel commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Add fallback URLs for GNU toolchain downloads.

BuildGNU.sh currently downloads binutils and GCC from
ftpmirror.gnu.org. If that mirror returns an HTTP error, fall back to
ftp.gnu.org.

Also use curl --fail so HTTP errors are treated as download failures,
and verify newly downloaded archives before extracting them.

Testing

  • Reproduced ftpmirror.gnu.org returning HTTP 502 for binutils.
  • Reproduced ftpmirror.gnu.org returning HTTP 504 for GCC.
  • Verified both downloads fall back to ftp.gnu.org successfully.
  • Verified the downloaded archives pass checksum validation and the
    toolchain build continues.
  • Ran bash -n Toolchain/BuildGNU.sh.
  • Ran git diff --check.

Fall back to ftp.gnu.org when ftpmirror.gnu.org fails while downloading
binutils or GCC.

Use curl --fail so HTTP errors trigger the fallback, and verify newly
downloaded archives before attempting to extract them.
@a-werel
a-werel requested a review from BertalanD as a code owner September 7, 2026 13:21
@github-actions github-actions Bot added the 馃憖 pr-needs-review PR needs review from a maintainer or community member label Sep 7, 2026
@hjalves

hjalves commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This would be helpful! ftpmirror.gnu.org is still unavailable today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

馃憖 pr-needs-review PR needs review from a maintainer or community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants