Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swapped mercurial for git #392

Merged
merged 3 commits into from
Mar 22, 2024
Merged

Conversation

Ellenn-A
Copy link
Contributor

Changes

#391
in cheribuild/pycheribuild/projects/cross/gmp.py swapps repository = MercurialRepository("https://gmplib.org/repo/gmp") for repository = GitRepository("https://github.com/gmp-mirror/gmp")

Reasoning:

in cheribuild/pycheribuild/projects/cross/gmp.py we are using MercurialRepository with a repository of repository = MercurialRepository("https://gmplib.org/repo/gmp") However, the host for this (quite rightly) blocks certain large IP ranges, namely all of Azure and Github Actions runners, this causes any build that has GMP as a dependency to fail.

There is a well maintained mirror hosted on github at https://github.com/gmp-mirror/gmp which maintains the entire hg repositories commit history and contains some additional branches.

@jrtc27
Copy link
Member

jrtc27 commented Mar 11, 2024

This is the easy bit. The hard bit is dealing with the fact that many users will have an existing gmp directory that's a mercurial checkout and needs replacing with a git one. This patch does not address that.

@arichardson
Copy link
Member

The easiest approach might just be to use a different directory name (e.g. libgmp) and keep the mercurial checkout untouched

Copy link
Member

@arichardson arichardson left a comment

Choose a reason for hiding this comment

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

LGTM, I'll merge this with an updated commit message once CI is happy.

@arichardson arichardson merged commit 82d644f into CTSRD-CHERI:main Mar 22, 2024
5 checks passed
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