-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-37352: [C++] Don't put all dependencies to ArrowConfig.cmake/arrow.pc #37399
Conversation
@github-actions crossbow submit -g linux |
|
b0acb86
to
b194d0f
Compare
Revision: b0acb86 Submitted crossbow builds: ursacomputing/crossbow @ actions-0369c3fde3 |
382d666
to
e352564
Compare
…/arrow.pc Split Flight related dependencies such as gRPC to ArrowFlightConfig.cmake/arrow-flight.pc from ArrowConfig.cmake/arrow.pc. Split Parquet related dependencies such as Thrift to ParquetConfig.cmake/parquet.pc from ArrowConfig.cmake/arrow.pc.
e352564
to
0e53976
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit e1227a2. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
@github-actions crossbow submit test-r-gcc-11 |
Revision: 0e53976 Submitted crossbow builds: ursacomputing/crossbow @ actions-663bda6898
|
#37603) ### Rationale for this change GH-37399 removed "thrift" pkg-config package dependency from "parquet" pkg-config package accidentally. Before GH-37399, "arrow" pkg-config packages has "thrift" pkg-config package dependency as `Requires.private`. ### What changes are included in this PR? Add "thrift" to `Requires.private` of `parquet.pc`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #37535 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…/arrow.pc (apache#37399) ### Rationale for this change Currently, `arrow.pc` has `Requires.private: grpc++` when Flight is enabled and system gRPC is used. `grpc++.pc` depends on `re2.pc` on Amazon Linux 2023 and `re2.pc` has `-std=c++11`. It causes a problem when an user uses `c++ -std=c++17 a.cc $(pkg-config --cflags --libs arrow)`. Because the command will be expanded to `c++ -std=c++17 ... -std=c++11 ...`. The expanded command line uses C++11 not C++17 because `-std=c++11` is appeared after `-std=c++17`. In general, the user must use `c++ ... $(pkg-config --cflags --libs arrow) -std=c++17` to ensure using their `-std=XXX`. But we want to avoid this case as much as possible. ### What changes are included in this PR? Split Flight related dependencies such as gRPC to ArrowFlightConfig.cmake/arrow-flight.pc from ArrowConfig.cmake/arrow.pc. Split Parquet related dependencies such as Thrift to ParquetConfig.cmake/parquet.pc from ArrowConfig.cmake/arrow.pc. With this change, `c++ -std=c++17 ... $(pkg-config --cflags --libs arrow)` works because `arrow.pc` doesn't depend on `grpc++` (`re2`). But `c++ -std=c++17 ... $(pkg-config --cflags --libs arrow-flight)` still doesn't work on Amazon Linux 2023. `c++ ... $(pkg-config --cflags --libs arrow-flight) ... -std=c++17 ...` should be used for the case. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#37352 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…quet.pc (apache#37603) ### Rationale for this change apacheGH-37399 removed "thrift" pkg-config package dependency from "parquet" pkg-config package accidentally. Before apacheGH-37399, "arrow" pkg-config packages has "thrift" pkg-config package dependency as `Requires.private`. ### What changes are included in this PR? Add "thrift" to `Requires.private` of `parquet.pc`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#37535 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…quet.pc (apache#37603) ### Rationale for this change apacheGH-37399 removed "thrift" pkg-config package dependency from "parquet" pkg-config package accidentally. Before apacheGH-37399, "arrow" pkg-config packages has "thrift" pkg-config package dependency as `Requires.private`. ### What changes are included in this PR? Add "thrift" to `Requires.private` of `parquet.pc`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#37535 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
Currently,
arrow.pc
hasRequires.private: grpc++
when Flight is enabled and system gRPC is used.grpc++.pc
depends onre2.pc
on Amazon Linux 2023 andre2.pc
has-std=c++11
. It causes a problem when an user usesc++ -std=c++17 a.cc $(pkg-config --cflags --libs arrow)
. Because the command will be expanded toc++ -std=c++17 ... -std=c++11 ...
. The expanded command line uses C++11 not C++17 because-std=c++11
is appeared after-std=c++17
. In general, the user must usec++ ... $(pkg-config --cflags --libs arrow) -std=c++17
to ensure using their-std=XXX
. But we want to avoid this case as much as possible.What changes are included in this PR?
Split Flight related dependencies such as gRPC to ArrowFlightConfig.cmake/arrow-flight.pc from ArrowConfig.cmake/arrow.pc.
Split Parquet related dependencies such as Thrift to ParquetConfig.cmake/parquet.pc from ArrowConfig.cmake/arrow.pc.
With this change,
c++ -std=c++17 ... $(pkg-config --cflags --libs arrow)
works becausearrow.pc
doesn't depend ongrpc++
(re2
). Butc++ -std=c++17 ... $(pkg-config --cflags --libs arrow-flight)
still doesn't work on Amazon Linux 2023.c++ ... $(pkg-config --cflags --libs arrow-flight) ... -std=c++17 ...
should be used for the case.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.