Skip to content

Fix linux_build: replace ftpmirror.gnu.org with ftp.gnu.org for bash source download - #193

Merged
yuleisui merged 2 commits into
masterfrom
copilot/fix-linux-build-job
Jul 30, 2026
Merged

Fix linux_build: replace ftpmirror.gnu.org with ftp.gnu.org for bash source download#193
yuleisui merged 2 commits into
masterfrom
copilot/fix-linux-build-job

Conversation

Copilot AI commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

ftpmirror.gnu.org returned 502 Bad Gateway when the CI tried to download bash-5.1.16.tar.gz, causing the build-bitcode step to fail with exit code 9.

Change

After cloning crux-bitcode, patch the bash Pkgfile to use the canonical GNU FTP server before running build-bitcode.sh:

sed -i 's|http://ftpmirror.gnu.org|https://ftp.gnu.org|g' ports/core/bash/Pkgfile

ftpmirror.gnu.org is a round-robin DNS redirector prone to transient failures. ftp.gnu.org is the primary GNU server. The tarball content and checksums are identical — only the download URL changes, so signature verification still passes.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job linux_build Fix linux_build: replace ftpmirror.gnu.org with ftp.gnu.org for bash source download Jul 30, 2026
Copilot AI requested a review from yuleisui July 30, 2026 13:36
@yuleisui
yuleisui marked this pull request as ready for review July 30, 2026 22:16
Copilot AI review requested due to automatic review settings July 30, 2026 22:16
@yuleisui
yuleisui merged commit 58ec86e into master Jul 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves CI reliability for the linux_build job by patching the upstream crux-bitcode bash port to download the Bash source tarball from ftp.gnu.org instead of ftpmirror.gnu.org, avoiding transient 502 errors during build-bitcode.

Changes:

  • Adds a sed patch step after cloning crux-bitcode to rewrite the Bash port source URL from http://ftpmirror.gnu.org to https://ftp.gnu.org.
  • Keeps the rest of the build-bitcode flow unchanged (same package list and build invocation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants