Michael Smith has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/25065 )
Change subject: IMPALA-14148: Fix opentelemetry build on RHEL 10 ...................................................................... IMPALA-14148: Fix opentelemetry build on RHEL 10 RHEL 10's zlib-ng-compat installs /usr/lib64/cmake/ZLIB/zlib-config.cmake, which references /usr/lib64/libz.a that is not installed by default. opentelemetry-cpp sets CMAKE_FIND_PACKAGE_PREFER_CONFIG, so the find_package(ZLIB) in protobuf-config.cmake picked up that broken config and configuration failed. Replace opentelemetry-cpp's patch with one that allows overriding CMAKE_FIND_PACKAGE_PREFER_CONFIG, and turn it off so dependencies are resolved via find modules like the rest of the toolchain. This makes the previous find_package(ZLIB MODULE) patch unnecessary. Also build protobuf against the toolchain zlib via ZLIB_ROOT, which requires building zlib before protobuf. Change-Id: Ic95ae1ccacf23feb912cbc8e5330c989c032867c Assisted-by: GitHub Copilot (Claude Opus 5.5) Reviewed-on: http://gerrit.cloudera.org:8080/25065 Tested-by: Michael Smith <[email protected]> Reviewed-by: Joe McDonnell <[email protected]> --- M buildall.sh M source/opentelemetry-cpp/build.sh A source/opentelemetry-cpp/opentelemetry-cpp-1.20.0-patches/0001-PATCH-Allow-overriding-CMAKE_FIND_PACKAGE_PREFER_CONFIG.patch D source/opentelemetry-cpp/opentelemetry-cpp-1.20.0-patches/0001-PATCH-Use-module-for-zlib-dep.patch M source/protobuf/build.sh 5 files changed, 22 insertions(+), 18 deletions(-) Approvals: Michael Smith: Verified Joe McDonnell: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/25065 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: native-toolchain Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ic95ae1ccacf23feb912cbc8e5330c989c032867c Gerrit-Change-Number: 25065 Gerrit-PatchSet: 2 Gerrit-Owner: Michael Smith <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]>
