diff --git a/cmake_modules/IcebergThirdpartyToolchain.cmake b/cmake_modules/IcebergThirdpartyToolchain.cmake index 1578c59a1..c7d1c106a 100644 --- a/cmake_modules/IcebergThirdpartyToolchain.cmake +++ b/cmake_modules/IcebergThirdpartyToolchain.cmake @@ -133,6 +133,7 @@ else() # whose contents GitHub does not guarantee. set(UTF8PROC_SOURCE_URL "https://github.com/JuliaStrings/utf8proc/releases/download/v${ICEBERG_UTF8PROC_BUILD_VERSION}/utf8proc-${ICEBERG_UTF8PROC_BUILD_VERSION}.tar.gz" + "https://sources.buildroot.net/utf8proc/utf8proc-${ICEBERG_UTF8PROC_BUILD_VERSION}.tar.gz" ) endif() @@ -263,7 +264,21 @@ function(resolve_arrow_dependency) FIND_PACKAGE_ARGS ${ICEBERG_ARROW_BUILD_VERSION} CONFIG) + # Only override the default for the Arrow release whose Zstandard pin we know. + # Arrow accepts a list of mirrors and verifies the downloaded archive itself. + set(arrow_zstd_default_urls FALSE) + if(ICEBERG_ARROW_BUILD_VERSION VERSION_EQUAL "25.0.0" AND NOT DEFINED + ENV{ARROW_ZSTD_URL}) + set(arrow_zstd_default_urls TRUE) + set(zstd_urls + "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz" + "https://sources.buildroot.net/zstd/zstd-1.5.7.tar.gz") + set(ENV{ARROW_ZSTD_URL} "${zstd_urls}") + endif() fetchcontent_makeavailable(Arrow) + if(arrow_zstd_default_urls) + unset(ENV{ARROW_ZSTD_URL}) + endif() if(arrow_SOURCE_DIR) # Arrow's Parquet targets do not inherit the OpenSSL include directory when @@ -491,6 +506,8 @@ function(resolve_croaring_dependency) set(ENABLE_ROARING_TESTS OFF) set(ENABLE_ROARING_MICROBENCHMARKS OFF) + # CRoaring only uses CPM for tests and benchmarks, which are disabled above. + set(ROARING_USE_CPM OFF) # GitHub's auto-generated tag-archive tarball is not byte-stable across # requests, so it cannot be integrity-checked with URL_HASH; pin by full @@ -614,7 +631,9 @@ function(resolve_nlohmann_json_dependency) set(NLOHMANN_JSON_URL "$ENV{ICEBERG_NLOHMANN_JSON_URL}") else() set(NLOHMANN_JSON_URL - "https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz") + "https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz" + "https://downloads.sourceforge.net/project/json-for-modern-c.mirror/v3.11.3/json.tar.xz" + ) endif() fetchcontent_declare(nlohmann_json