public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/grpc] rawhide: Use protobuf3 instead of protobuf
@ 2026-06-05 15:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-05 15:32 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/grpc
            Branch : rawhide
            Commit : e57bdb01893e49b38eb638f8e316b241dcd7382c
            Author : Miroslav Suchý <msuchy@redhat.com>
            Date   : 2026-06-05T15:32:25+00:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/grpc/c/e57bdb01893e49b38eb638f8e316b241dcd7382c?branch=rawhide

            Log:
            Use protobuf3 instead of protobuf

This is part of https://fedoraproject.org/wiki/Changes/Protobuf_5.x/6.x
Mosh does not sucessfully build with new protobuf per
  https://copr.fedorainfracloud.org/coprs/mochaa/protobuf/monitor/
so switching to protobuf3.

---
diff --git a/grpc.spec b/grpc.spec
index 74d08c4..1b2a011 100644
--- a/grpc.spec
+++ b/grpc.spec
@@ -210,8 +210,10 @@ BuildRequires:  chrpath
 
 BuildRequires:  pkgconfig(zlib)
 BuildRequires:  cmake(gflags)
+# enforce compat package protobuf3
+BuildRequires:  protobuf-devel < 4
 BuildRequires:  pkgconfig(protobuf)
-BuildRequires:  protobuf-compiler
+BuildRequires:  protobuf-compiler < 4
 BuildRequires:  pkgconfig(re2)
 BuildRequires:  pkgconfig(openssl)
 %if ! (0%{?rhel} >= 10 || 0%{?fedora} >= 45)
@@ -226,6 +228,7 @@ BuildRequires:  xxhash-static
 
 %if %{with core_tests}
 BuildRequires:  cmake(benchmark)
+BuildRequires:  libpfm-devel
 %if %{with system_gtest}
 BuildRequires:  cmake(gtest)
 BuildRequires:  pkgconfig(gmock)
@@ -277,6 +280,7 @@ BuildRequires: python3dist(cython) > 0.23
 # grpcio_testing (src/python/grpcio_testing/setup.py) install_requires:
 # grpcio_tests (src/python/grpcio_tests/setup.py) install_requires:
 # grpcio_tools (tools/distrib/python/grpcio_tools/setup.py) install_requires:
+BuildRequires:  python3-protobuf < 4
 BuildRequires:  python3dist(protobuf) >= 3.12.0
 
 # grpcio_status (src/python/grpcio_status/setup.py) install_requires:
@@ -583,7 +587,7 @@ Summary:        Protocol buffers compiler plugins for gRPC
 
 Requires:       grpc%{?_isa} = %{version}-%{release}
 Requires:       grpc-cpp%{?_isa} = %{version}-%{release}
-Requires:       protobuf-compiler
+Requires:       protobuf-compiler < 4
 
 Provides:       bundled(upb)
 Provides:       bundled(utf8_range)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 15:32 [rpms/grpc] rawhide: Use protobuf3 instead of protobuf 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox