Michael Smith has uploaded this change for review. ( 
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)
---
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(-)



  git pull ssh://gerrit.cloudera.org:29418/native-toolchain 
refs/changes/65/25065/1
--
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: newchange
Gerrit-Change-Id: Ic95ae1ccacf23feb912cbc8e5330c989c032867c
Gerrit-Change-Number: 25065
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to