forked from pool/python-grpcio
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3b4332731a | |||
| ebbf72c6b6 | |||
| 01d3e672a8 | |||
| e783f98748 | |||
| 5eb0de3581 | |||
| 7e90cd57fa | |||
| fb7d63cec2 | |||
| cfea6d07d9 |
64
fix-return-values.patch
Normal file
64
fix-return-values.patch
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
Index: grpcio-1.68.1/src/core/lib/promise/party.h
|
||||||
|
===================================================================
|
||||||
|
--- grpcio-1.68.1.orig/src/core/lib/promise/party.h
|
||||||
|
+++ grpcio-1.68.1/src/core/lib/promise/party.h
|
||||||
|
@@ -269,6 +269,7 @@ class Party : public Activity, private W
|
||||||
|
Crash(
|
||||||
|
"unreachable: promises should not be repolled after completion");
|
||||||
|
}
|
||||||
|
+ return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Outside party poll: check whether the spawning party has completed this
|
||||||
|
@@ -281,6 +282,7 @@ class Party : public Activity, private W
|
||||||
|
case State::kResult:
|
||||||
|
return std::move(result_);
|
||||||
|
}
|
||||||
|
+ return Pending{};
|
||||||
|
}
|
||||||
|
|
||||||
|
void Destroy() override { this->Unref(); }
|
||||||
|
Index: grpcio-1.68.1/src/core/lib/transport/call_state.h
|
||||||
|
===================================================================
|
||||||
|
--- grpcio-1.68.1.orig/src/core/lib/transport/call_state.h
|
||||||
|
+++ grpcio-1.68.1/src/core/lib/transport/call_state.h
|
||||||
|
@@ -151,6 +151,7 @@ class CallState {
|
||||||
|
case ClientToServerPullState::kTerminated:
|
||||||
|
return "Terminated";
|
||||||
|
}
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
template <typename Sink>
|
||||||
|
friend void AbslStringify(Sink& out, ClientToServerPullState state) {
|
||||||
|
@@ -181,6 +182,7 @@ class CallState {
|
||||||
|
case ClientToServerPushState::kFinished:
|
||||||
|
return "Finished";
|
||||||
|
}
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
template <typename Sink>
|
||||||
|
friend void AbslStringify(Sink& out, ClientToServerPushState state) {
|
||||||
|
@@ -231,6 +233,7 @@ class CallState {
|
||||||
|
case ServerToClientPullState::kTerminated:
|
||||||
|
return "Terminated";
|
||||||
|
}
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
template <typename Sink>
|
||||||
|
friend void AbslStringify(Sink& out, ServerToClientPullState state) {
|
||||||
|
@@ -268,6 +271,7 @@ class CallState {
|
||||||
|
case ServerToClientPushState::kFinished:
|
||||||
|
return "Finished";
|
||||||
|
}
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
template <typename Sink>
|
||||||
|
friend void AbslStringify(Sink& out, ServerToClientPushState state) {
|
||||||
|
@@ -298,6 +302,7 @@ class CallState {
|
||||||
|
case ServerTrailingMetadataState::kPulledCancel:
|
||||||
|
return "PulledCancel";
|
||||||
|
}
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
template <typename Sink>
|
||||||
|
friend void AbslStringify(Sink& out, ServerTrailingMetadataState state) {
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2c7891f66daefc80cce1bed6bc0c2802d26dac46544ba1be79c4e7d85661dd73
|
|
||||||
size 12243603
|
|
||||||
BIN
grpcio-1.69.0.tar.gz
LFS
Normal file
BIN
grpcio-1.69.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 20 14:23:28 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1.69.0
|
||||||
|
* [Build] Override MACOSX_DEPLOYMENT_TARGET for gRPC Python. (#37997)
|
||||||
|
- from version 1.68.2
|
||||||
|
* No Python-specific changes.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 18 11:13:30 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.68.1 (CVE-2024-11407, bsc#1233821):
|
||||||
|
* No Python specific changes.
|
||||||
|
- Changes from version 1.68.0:
|
||||||
|
* Add templating and support for Python 3.13
|
||||||
|
(gh#grpc/grpc#37643).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 11 14:35:18 UTC 2024 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
- Update to version 1.67.1 (CVE-2024-7246, bsc#1228919):
|
||||||
|
* Add templating and support for Python 3.13
|
||||||
|
* Add templating and support for Python 3.13
|
||||||
|
* Change warning to RuntimeError for version incompatibility.
|
||||||
|
* reflection returns original_request.
|
||||||
|
- Added fix-return-values.patch for compile failures
|
||||||
|
- Removed obsolete terminate.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 17 10:56:55 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
Wed Jul 17 10:56:55 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-grpcio
|
# spec file for package python-grpcio
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
%global modname grpcio
|
%global modname grpcio
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-grpcio
|
Name: python-grpcio
|
||||||
Version: 1.65.0
|
Version: 1.69.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: HTTP/2-based Remote Procedure Call implementation
|
Summary: HTTP/2-based Remote Procedure Call implementation
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@@ -30,8 +30,7 @@ Source: https://files.pythonhosted.org/packages/source/g/grpcio/grpcio-%
|
|||||||
Patch1: xxhash-avoid-armv6-unaligned-access.patch
|
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
|
# 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
|
Patch2: xxhash-ppc64le-gcc7.patch
|
||||||
# PATCH-FIX-UPSTREAM Fix issues about control reaching end of non-void function
|
Patch3: fix-return-values.patch
|
||||||
Patch3: terminate.patch
|
|
||||||
BuildRequires: %{python_module Cython >= 0.29.8}
|
BuildRequires: %{python_module Cython >= 0.29.8}
|
||||||
BuildRequires: %{python_module devel >= 3.7}
|
BuildRequires: %{python_module devel >= 3.7}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2024-01-31 20:50:55.596208216 +0100
|
|
||||||
|
|
||||||
[ 221s] src/core/lib/promise/party.h: In member function 'bool grpc_core::Party::PromiseParticipantImpl<SuppliedFactory>::PollParticipantPromise() [with SuppliedFactory = grpc_core::ForwardCall(CallHandler, CallInitiator, ClientMetadataHandle)::<lambda()> mutable::<lambda(grpc_core::MessageHandle)> mutable::<lambda()>]':
|
|
||||||
[ 221s] src/core/lib/promise/party.h:541:5: error: control reaches end of non-void function [-Werror=return-type]
|
|
||||||
[ 221s] src/core/lib/promise/party.h: In member function 'grpc_core::Poll<typename grpc_core::promise_detail::OncePromiseFactory<void, F>::Promise::Result> grpc_core::Party::PromiseParticipantImpl<SuppliedFactory>::PollCompletion() [with SuppliedFactory = grpc_core::ForwardCall(CallHandler, CallInitiator, ClientMetadataHandle)::<lambda()> mutable::<lambda(grpc_core::MessageHandle)> mutable::<lambda()>]':
|
|
||||||
[ 221s] src/core/lib/promise/party.h:553:5: error: control reaches end of non-void function [-Werror=return-type]
|
|
||||||
|
|
||||||
That enum class only has three numerators, and it's not clear why gcc
|
|
||||||
would warn, given all three cases return.
|
|
||||||
|
|
||||||
---
|
|
||||||
src/core/lib/promise/party.h | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
Index: grpcio-1.65.0/src/core/lib/promise/party.h
|
|
||||||
===================================================================
|
|
||||||
--- grpcio-1.65.0.orig/src/core/lib/promise/party.h
|
|
||||||
+++ grpcio-1.65.0/src/core/lib/promise/party.h
|
|
||||||
@@ -567,6 +567,7 @@ class Party : public Activity, private W
|
|
||||||
Crash(
|
|
||||||
"unreachable: promises should not be repolled after completion");
|
|
||||||
}
|
|
||||||
+ std::terminate();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Outside party poll: check whether the spawning party has completed this
|
|
||||||
@@ -579,6 +580,7 @@ class Party : public Activity, private W
|
|
||||||
case State::kResult:
|
|
||||||
return std::move(result_);
|
|
||||||
}
|
|
||||||
+ std::terminate();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Destroy() override { this->Unref(); }
|
|
||||||
Reference in New Issue
Block a user