From dc22a8a3e95a5f08bdca3b3e83d8e0ea5d234058 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 15 Mar 2021 09:41:02 -0400 Subject: [PATCH] Manually install grpc_cli (CMake) --- grpc.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grpc.spec b/grpc.spec index 80b0cda..bc25ded 100644 --- a/grpc.spec +++ b/grpc.spec @@ -617,7 +617,11 @@ done # ~~~~ C (core) and C++ (cpp) ~~~~ %if %{with cmake} %cmake_install -#chrpath --delete '%{buildroot}%{_bindir}/%{name}_cli' +# For some reason, grpc_cli is not installed. Do it manually. +install -t '%{buildroot}%{_bindir}' -p -D '%{_vpath_builddir}/%{name}_cli' +# grpc_cli build does not respect CMAKE_INSTALL_RPATH +# https://github.com/grpc/grpc/issues/25176 +chrpath --delete '%{buildroot}%{_bindir}/%{name}_cli' %else export STRIP=/bin/true make install prefix='%{buildroot}%{_prefix}' @@ -850,6 +854,7 @@ fi * Allow building tests with our own copy of gtest/gmock, which will become mandatory when we depend on abseil-cpp and switch to C++17 * Fix a link error in the core tests when using CMake + * Manually install grpc_cli (CMake) - Python: * Add several patches required for the tests * BR gevent for gevent_tests