Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package grpc for openSUSE:Factory checked in 
at 2023-09-13 20:43:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/grpc (Old)
 and      /work/SRC/openSUSE:Factory/.grpc.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "grpc"

Wed Sep 13 20:43:46 2023 rev:62 rq:1110898 version:1.58.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/grpc/grpc.changes        2023-09-07 
21:12:07.387980038 +0200
+++ /work/SRC/openSUSE:Factory/.grpc.new.1766/grpc.changes      2023-09-13 
20:44:22.477676519 +0200
@@ -1,0 +2,6 @@
+Wed Sep 13 10:49:31 UTC 2023 - Jan Engelhardt <jeng...@inai.de>
+
+- Add fix_grpconfig_cmake.patch to make find_package(gRPC) in
+  downstream using packages functional again.
+
+-------------------------------------------------------------------

New:
----
  fix_grpconfig_cmake.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ grpc.spec ++++++
--- /var/tmp/diff_new_pack.56WjbD/_old  2023-09-13 20:44:23.973729706 +0200
+++ /var/tmp/diff_new_pack.56WjbD/_new  2023-09-13 20:44:23.973729706 +0200
@@ -39,6 +39,7 @@
 BuildRequires:  pkgconfig(protobuf) >= 22
 BuildRequires:  pkgconfig(re2)
 BuildRequires:  pkgconfig(zlib)
+Patch0:         fix_grpconfig_cmake.patch
 
 %description
 The reference implementation of the gRPC protocol, done on top of

++++++ fix_grpconfig_cmake.patch ++++++
>From 5c9e4050c1e8c66b1b8b4e93d48b8e23ff1ea818 Mon Sep 17 00:00:00 2001
From: Carlo Cabrera <30379873+carlo...@users.noreply.github.com>
Date: Wed, 6 Sep 2023 03:35:47 +0800
Subject: [PATCH] [Build] fix `gRPCConfig.cmake` (#33361)

Without this change, calling `find_package(gRPC REQUIRED)` errors out
with

CMake Error at /opt/homebrew/lib/cmake/grpc/gRPCConfig.cmake:8
(find_dependency):
      Unknown CMake command "find_dependency".

The issue is that `find_dependency` is provided by the
`CMakeFindDependencyMacro` module[^1], so we need to `include` it before
use.

[^1]:
https://cmake.org/cmake/help/v3.26/module/CMakeFindDependencyMacro.html
---
 cmake/protobuf.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/protobuf.cmake b/cmake/protobuf.cmake
index 80181c6218..fab2eb00e9 100644
--- a/cmake/protobuf.cmake
+++ b/cmake/protobuf.cmake
@@ -86,6 +86,6 @@ elseif(gRPC_PROTOBUF_PROVIDER STREQUAL "package")
         set(_gRPC_PROTOBUF_PROTOC_EXECUTABLE ${PROTOBUF_PROTOC_EXECUTABLE})
       endif()
     endif()
-    set(_gRPC_FIND_PROTOBUF "find_dependency(Protobuf CONFIG)")
+    set(_gRPC_FIND_PROTOBUF 
"include(CMakeFindDependencyMacro)\nfind_dependency(Protobuf CONFIG)")
   endif()
 endif()
-- 
2.42.0

Reply via email to