Skip to content

Conversation

@kou
Copy link
Member

@kou kou commented Mar 28, 2025

Rationale for this change

If Protobuf is used only for Flight, Arrow::arrow_static must not depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must depend on Protobuf.

What changes are included in this PR?

Use ARROW_PROTOBUF_ARROW_CMAKE_PACKAGE_NAME instead of ARROW_WITH_PROTOBUF to detect which CMake target must depend on Protobuf.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

…static

If Protobuf is used only for Flight, Arrow::arrow_static must not
depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must
depend on Protobuf.
@kou kou requested a review from lidavidm as a code owner March 28, 2025 01:55
@kou
Copy link
Member Author

kou commented Mar 28, 2025

@github-actions crossbow submit -g cpp

@github-actions
Copy link

⚠️ GitHub issue #45959 has been automatically assigned in GitHub to PR creator.

@kou
Copy link
Member Author

kou commented Mar 28, 2025

@anku94 Could you try this?

@github-actions
Copy link

Revision: e778459

Submitted crossbow builds: ursacomputing/crossbow @ actions-17b26eac16

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
test-alpine-linux-cpp GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-meson GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-cuda-cpp-ubuntu-22.04-cuda-11.7.1 GitHub Actions
test-debian-12-cpp-amd64 GitHub Actions
test-debian-12-cpp-i386 GitHub Actions
test-fedora-39-cpp GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-20 GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-bundled-offline GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Mar 28, 2025
Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

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

Thanks @kou

@raulcd
Copy link
Member

raulcd commented Mar 28, 2025

The appveyor failure is unrelated (it also happens on main). I've opened:

@kou kou merged commit 3c63f37 into apache:main Mar 28, 2025
37 of 38 checks passed
@kou kou removed the awaiting merge Awaiting merge label Mar 28, 2025
@kou kou deleted the cpp-protobuf branch March 28, 2025 20:50
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 0 benchmarking runs that have been run so far on merge-commit 3c63f37.

None of the specified runs were found on the Conbench server.

The full Conbench report has more details.

zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Apr 15, 2025
…static (apache#45960)

### Rationale for this change

If Protobuf is used only for Flight, Arrow::arrow_static must not depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must depend on Protobuf.

### What changes are included in this PR?

Use `ARROW_PROTOBUF_ARROW_CMAKE_PACKAGE_NAME` instead of `ARROW_WITH_PROTOBUF` to detect which CMake target must depend on Protobuf.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#45959

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants