Fix linux_build: replace ftpmirror.gnu.org with ftp.gnu.org for bash source download - #193
Merged
Merged
Conversation
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
yuleisui
marked this pull request as ready for review
July 30, 2026 22:16
There was a problem hiding this comment.
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
sedpatch step after cloningcrux-bitcodeto rewrite the Bash port source URL fromhttp://ftpmirror.gnu.orgtohttps://ftp.gnu.org. - Keeps the rest of the
build-bitcodeflow unchanged (same package list and build invocation).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ftpmirror.gnu.orgreturned 502 Bad Gateway when the CI tried to downloadbash-5.1.16.tar.gz, causing thebuild-bitcodestep to fail with exit code 9.Change
After cloning
crux-bitcode, patch the bashPkgfileto use the canonical GNU FTP server before runningbuild-bitcode.sh:sed -i 's|http://ftpmirror.gnu.org|https://ftp.gnu.org|g' ports/core/bash/Pkgfileftpmirror.gnu.orgis a round-robin DNS redirector prone to transient failures.ftp.gnu.orgis the primary GNU server. The tarball content and checksums are identical — only the download URL changes, so signature verification still passes.