Skip to content

Conversation

@Subham-KRLX
Copy link

Fixes #239

- CMake 3.25 or higher
- C++23 compliant compiler

> **Note**: For developers in China experiencing network issues when downloading dependencies, see [BUILD_CHINA.md](BUILD_CHINA.md) for mirror configuration.
Copy link
Collaborator

Choose a reason for hiding this comment

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

-1 from me. sorry about that :(

One quick question: do other Apache projects handle this the same way for China?

iceberg-cpp should build against system libraries dependencies, and I think that's probably the right direction.

Copy link
Contributor

@HuaHuaY HuaHuaY Nov 14, 2025

Choose a reason for hiding this comment

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

Agree with you. We have CMake options such as ICEBERG_ARROW_URL which allow users to customize urls. If other projects use specific urls for China, I would also support following this approach.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the review!
To clarify: this PR doesn’t introduce region specific behavior or change defaults. It only provides optional mirror URLs just like ICEBERG_ARROW_URL to make the build workable for developers in China who frequently hit GitHub timeouts.

If preferred, I can simplify the PR so it only adds optional CMake variables + documentation, matching how other Apache projects handle this.
Please let me know and I’ll update it accordingly.

Copy link
Member

Choose a reason for hiding this comment

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

Here is my -1 too. I don't think it's good idea to add other mirrors in ARROW_SOURCE_URL too.

Copy link
Author

Choose a reason for hiding this comment

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

After researching Apache best practices I removed all hardcoded mirror URLs and kept only optional environment variables for custom mirrors just like ICEBERG_ARROW_URL. I added documentation showing how users can set these variables if needed. No defaults changed—everything still defaults to the original URLs. This keeps the build flexible respects Apache guidelines and helps developers facing network issues. Please review and let me know if you need any changes.

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.

build deps mirror for China

4 participants