Repository navigation
ORC-1440: Check for protobuf config based module - #1529
nehaljwani wants to merge 1 commit into
Conversation
|
Also, cc @wgtmac |
2efcae0 to
53afb4e
Compare
|
Thanks @nehaljwani and @dongjoon-hyun! These changes look fine to me. However, we are still on a very old version of protobuf (3.5.1). I am not sure if it will work properly with higher versions of protobuf. I have seen issues when Apache Arrow tried to compile ORC with a different protobuf version. |
|
I also maintain the conda-forge recipe for orc. The latest build there was successful with this patch and protobuf v4.23.2 |
Do you build the entire orc lib (including tools) or just e.g. liborc.a? Just curious if all the functionality work with protobuf v4.23.2. If so, we can add tests to guard them. |
|
Probably it is a good time to upgrade protobuf version as well. @stiga-huang |
|
BTW, I was thinking the possibility to migrate the proto file to use proto3 in v2.0.0 once we split the repo for format. @dongjoon-hyun |
The recent versions of `libprotobuf` (>=4.22.0) provide their own CMake configs. We should check for the existence of the config and use the hand-rolled version as a fallback as it does not capture all deps. See also: https://gitlab.kitware.com/cmake/cmake/-/issues/24321
53afb4e to
7518729
Compare
I used the following steps locally (not sure if it covers all targets): |
|
Could you please have a try with |
|
Done, the build succeeds with both options turned on with my patch applied. |
|
Thank you, @nehaljwani , @wgtmac , @stiga-huang . Merged to main for Apache ORC 2.0. |
The recent versions of `libprotobuf` (>=4.22.0) provide their own CMake configs. We should check for the existence of the config and use the hand-rolled version as a fallback as it does not capture all deps. See also: https://gitlab.kitware.com/cmake/cmake/-/issues/24321 Closes apache#1529 from nehaljwani/protobuf+cmake. Authored-by: Nehal J Wani <nehaljw.kkd1@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
The recent versions of
libprotobuf(>=4.22.0) provide their own CMake configs. We should check for the existence of the config and use the hand-rolled version as a fallback as it does not capture all deps.See also: https://gitlab.kitware.com/cmake/cmake/-/issues/24321