Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion cmake_modules/IcebergThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading