From 82d644f5cdd8d4aa121f5942862ca0d81eee5a6b Mon Sep 17 00:00:00 2001 From: Ellenn-A <58051865+Ellenn-A@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:24:24 +0000 Subject: [PATCH] Use git mirror instead of mercurial for gmp (#392) cheribuild/pycheribuild/projects/cross/gmp.py is 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. --- pycheribuild/projects/cross/gmp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pycheribuild/projects/cross/gmp.py b/pycheribuild/projects/cross/gmp.py index 8c4763395..992cc26a7 100644 --- a/pycheribuild/projects/cross/gmp.py +++ b/pycheribuild/projects/cross/gmp.py @@ -24,12 +24,13 @@ # from .crosscompileproject import CrossCompileAutotoolsProject, DefaultInstallDir -from ..project import MercurialRepository +from ..project import GitRepository from ...config.compilation_targets import CompilationTargets class BuildGmp(CrossCompileAutotoolsProject): - repository = MercurialRepository("https://gmplib.org/repo/gmp") + repository = GitRepository("https://github.com/gmp-mirror/gmp") + default_directory_basename = "libgmp" supported_architectures = ( CompilationTargets.ALL_CHERIBSD_TARGETS_WITH_HYBRID + CompilationTargets.ALL_CHERIBSD_HYBRID_FOR_PURECAP_ROOTFS_TARGETS