From 8d53f70429edf3962f1de12bf95534a7d8354d4218a3f10784fd52f62193426c Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 16 Jul 2025 13:56:17 +0000 Subject: [PATCH 1/3] Accepting request 1293133 from home:ecsos:python - Fix build error for Leap 15.6. OBS-URL: https://build.opensuse.org/request/show/1293133 OBS-URL: https://build.opensuse.org/package/show/network/python-grpcio?expand=0&rev=97 --- python-grpcio.changes | 5 +++++ python-grpcio.spec | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/python-grpcio.changes b/python-grpcio.changes index 90655e3..f489472 100644 --- a/python-grpcio.changes +++ b/python-grpcio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 14 12:20:42 UTC 2025 - ecsos + +- Fix build error for Leap 15.6. + ------------------------------------------------------------------- Sun Jun 15 06:02:08 UTC 2025 - Atri Bhattacharya diff --git a/python-grpcio.spec b/python-grpcio.spec index 51e6d56..2b6abcb 100644 --- a/python-grpcio.spec +++ b/python-grpcio.spec @@ -31,15 +31,22 @@ Patch1: xxhash-avoid-armv6-unaligned-access.patch # PATCH-FIX-SLE xxhash-ppc64le-gcc7.patch boo#1208794 alarrosa@suse.com -- fix build failure on ppc64le when using gcc 7 Patch2: xxhash-ppc64le-gcc7.patch Patch3: fix-return-values.patch -BuildRequires: %{python_module Cython >= 0.29.8} -BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module Cython >= 3.1.1} +BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} +BuildRequires: %{python_module protobuf >= 6.30 } BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel >= 0.29} -BuildRequires: abseil-cpp-devel >= 20220623.0 +BuildRequires: abseil-cpp-devel >= 20250127.0 BuildRequires: ca-certificates BuildRequires: fdupes +%if 0%{?suse_version} < 1600 +BuildRequires: gcc13 +BuildRequires: gcc13-c++ +%else +BuildRequires: gcc BuildRequires: gcc-c++ +%endif BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(libcares) @@ -60,6 +67,10 @@ connected systems. %autosetup -p1 -n grpcio-%{version} %build +%if 0%{?suse_version} < 1600 +export CC=gcc-13 +export CXX=g++-13 +%endif export GRPC_BUILD_WITH_BORING_SSL_ASM=false export GRPC_PYTHON_BUILD_SYSTEM_ABSL=true export GRPC_PYTHON_BUILD_SYSTEM_CARES=true From f9445b8e6befe15834b76f580dd40429b2e381775ed0787236f82deabb119b4e Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 16 Jul 2025 14:35:49 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/network/python-grpcio?expand=0&rev=98 --- python-grpcio.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-grpcio.spec b/python-grpcio.spec index 2b6abcb..f15b991 100644 --- a/python-grpcio.spec +++ b/python-grpcio.spec @@ -31,7 +31,7 @@ Patch1: xxhash-avoid-armv6-unaligned-access.patch # PATCH-FIX-SLE xxhash-ppc64le-gcc7.patch boo#1208794 alarrosa@suse.com -- fix build failure on ppc64le when using gcc 7 Patch2: xxhash-ppc64le-gcc7.patch Patch3: fix-return-values.patch -BuildRequires: %{python_module Cython >= 3.1.1} +BuildRequires: %{python_module Cython >= 3.0.0} BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module protobuf >= 6.30 } From 66b6e80228991f5daec1044afc69a558117d513f573e47e694e635c556684e9c Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 16 Jul 2025 14:36:38 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/network/python-grpcio?expand=0&rev=99 --- python-grpcio.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-grpcio.changes b/python-grpcio.changes index f489472..e1eac35 100644 --- a/python-grpcio.changes +++ b/python-grpcio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 16 14:36:00 UTC 2025 - Atri Bhattacharya + +- Require Cython >= 3.0.0 instead of 3.1.1 as the latest version + available on TW is 3.0.2 currently. + ------------------------------------------------------------------- Mon Jul 14 12:20:42 UTC 2025 - ecsos