SHA256
1
0
forked from pool/grpc

grpc 1.71

This commit is contained in:
2025-03-25 22:52:20 +01:00
parent 5f0483f9a3
commit e2cfebf3b9
8 changed files with 48 additions and 40 deletions

View File

@@ -15,8 +15,8 @@ Subject: [PATCH] [ARM] Unaligned access fixes
diff --git a/xxhash.h b/xxhash.h
index 08ab794..4cf3f0d 100644
--- a/xxhash.h
+++ b/xxhash.h
--- a/third_party/xxhash/xxhash.h
+++ b/third_party/xxhash/xxhash.h
@@ -1402,28 +1402,18 @@ XXH3_128bits_reset_withSecretandSeed(XXH3_state_t* statePtr,
*/

View File

@@ -9,8 +9,8 @@ Subject: [PATCH] Fix compilation on RHEL 7 ppc64le (gcc 4.8)
diff --git a/xxhash.h b/xxhash.h
index 4cf3f0d..b07de0c 100644
--- a/xxhash.h
+++ b/xxhash.h
--- a/third_party/xxhash/xxhash.h
+++ b/third_party/xxhash/xxhash.h
@@ -4119,7 +4119,7 @@ XXH3_accumulate_512_vsx( void* XXH_RESTRICT acc,
const void* XXH_RESTRICT secret)
{

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Mar 25 21:48:57 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.71
* Fix call attempt tracer lifetimes for retries
* Fixed a bug that caused grpc to stop triggering connection
attempts
* Added support for service "deprecated" option
- Rework link-failure.patch to not link grpc_unsecure
into libgrpc(++). [boo#1237422]
- Make build recipe POSIX sh compatible.
-------------------------------------------------------------------
Wed Feb 12 14:22:59 UTC 2025 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package grpc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,11 @@
#
%define lver 45
%define lverp 1_70
%define lver 46
%define lverp 1_71
%define src_install_dir /usr/src/%name
Name: grpc
Version: 1.70.1
Version: 1.71.0
Release: 0
Summary: HTTP/2-based Remote Procedure Call implementation
License: Apache-2.0
@@ -130,8 +130,7 @@ BuildArch: noarch
This subpackage contains source code of the gRPC reference implementation.
%prep
%autosetup -N
%patch -P 1 -P 2 -P 3 -P 4 -p1
%autosetup -p1
find "." -type f -exec grep -l '/usr/bin/python' {} + |
xargs -r perl -i -lpe \
's{#! ?/usr/bin/python\S*}{#!/usr/bin/python3}g;'
@@ -141,9 +140,6 @@ find "." -type f -exec grep -l '/usr/bin/env ' {} + |
s{#! ?/usr/bin/env sh}{#!/bin/sh}g;
s{#! ?/usr/bin/env bash}{#!/bin/bash}g;
s{#! ?/usr/bin/env }{#!/usr/bin/}g;'
pushd third_party/xxhash
%patch -P 14 -P 15 -p1
popd
rm -Rf third_party/abseil-cpp/
%build
@@ -160,7 +156,7 @@ cp -a /usr/src/opencensus-proto third_party/
export CFLAGS="%optflags -Wno-error"
export CXXFLAGS="$CFLAGS"
find "." -type f -exec grep '/usr/bin/env ' {} + || :
pushd .
s="$PWD"
%cmake -DgRPC_INSTALL=ON \
-DgRPC_INSTALL_LIBDIR:PATH="%_lib" \
-DgRPC_INSTALL_CMAKEDIR:PATH="%_libdir/cmake/grpc" \
@@ -173,24 +169,24 @@ pushd .
-DgRPC_ZLIB_PROVIDER=package \
-DCMAKE_CXX_STANDARD=17
%cmake_build
popd
cd "$s"
find "." -type f -exec grep '/usr/bin/env ' {} + || :
%install
b="%buildroot"
%cmake_install
pushd "$b/usr"
cd "$b/usr"
rm -fv lib/*.a share/grpc/*.pem
popd
cd -
# Install sources
pushd %__builddir
cd "%__builddir"
rm -fv CMakeFiles/*.log
make clean
find . -type f "(" -name "*.so" -o -name "*.o" -o -name ".git*" -o \
-name "*.bin" -o -name "*.out" ")" -exec rm -Rfv {} +
popd
cd -
# Don't include abseil-cpp in sources
rm -fr third_party/abseil-cpp/*
# Don't include non-deterministic log in sources

View File

@@ -15,19 +15,19 @@ Index: grpc-1.70.1/CMakeLists.txt
===================================================================
--- grpc-1.70.1.orig/CMakeLists.txt
+++ grpc-1.70.1/CMakeLists.txt
@@ -4091,6 +4091,7 @@ target_link_libraries(upb_json_lib
${_gRPC_ALLTARGETS_LIBRARIES}
upb_mini_descriptor_lib
upb_wire_lib
+ grpc_unsecure
@@ -4054,6 +4054,7 @@ add_library(upb_json_lib ${_gRPC_STATIC_
third_party/upb/upb/reflection/method_def.c
third_party/upb/upb/reflection/oneof_def.c
third_party/upb/upb/reflection/service_def.c
+ src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c
)
@@ -4348,6 +4349,7 @@ target_link_libraries(upb_textformat_lib
${_gRPC_ALLTARGETS_LIBRARIES}
upb_mini_descriptor_lib
upb_wire_lib
+ grpc_unsecure
target_compile_features(upb_json_lib PUBLIC cxx_std_17)
@@ -4311,6 +4312,7 @@ add_library(upb_textformat_lib ${_gRPC_S
third_party/upb/upb/reflection/service_def.c
third_party/upb/upb/text/encode.c
third_party/upb/upb/text/internal/encode.c
+ src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c
)
target_compile_features(upb_textformat_lib PUBLIC cxx_std_17)

View File

@@ -7,16 +7,16 @@ CMakeLists.txt is using a bundled copy of otel, so there is no .pc file to depen
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: grpc-1.70.1/CMakeLists.txt
Index: grpc-1.71.0/CMakeLists.txt
===================================================================
--- grpc-1.70.1.orig/CMakeLists.txt
+++ grpc-1.70.1/CMakeLists.txt
@@ -51301,7 +51301,7 @@ generate_pkgconfig(
--- grpc-1.71.0.orig/CMakeLists.txt
+++ grpc-1.71.0/CMakeLists.txt
@@ -51170,7 +51170,7 @@ generate_pkgconfig(
"gRPC++ OpenTelemetry Plugin"
"OpenTelemetry Plugin for gRPC C++"
"${gRPC_CPP_VERSION}"
- "absl_absl_check absl_absl_log absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_bits absl_check absl_cleanup absl_config absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_log absl_log_globals absl_log_severity absl_memory absl_no_destructor absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr grpc grpc++ opentelemetry_api"
+ "absl_absl_check absl_absl_log absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_bits absl_check absl_cleanup absl_config absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_log absl_log_globals absl_log_severity absl_memory absl_no_destructor absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility absl_variant gpr grpc grpc++"
- "absl_absl_check absl_absl_log absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_bits absl_check absl_cleanup absl_config absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_log absl_log_globals absl_log_severity absl_memory absl_no_destructor absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility gpr grpc grpc++ opentelemetry_api"
+ "absl_absl_check absl_absl_log absl_algorithm_container absl_any_invocable absl_base absl_bind_front absl_bits absl_check absl_cleanup absl_config absl_cord absl_core_headers absl_flags absl_flags_marshalling absl_flat_hash_map absl_flat_hash_set absl_function_ref absl_hash absl_inlined_vector absl_log absl_log_globals absl_log_severity absl_memory absl_no_destructor absl_optional absl_random_bit_gen_ref absl_random_distributions absl_random_random absl_span absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_type_traits absl_utility gpr grpc grpc++"
"libcares openssl re2 zlib"
"-lgrpcpp_otel_plugin"
"-laddress_sorting -lupb_textformat_lib -lupb_json_lib -lupb_wire_lib -lupb_message_lib -lutf8_range_lib -lupb_mini_descriptor_lib -lupb_mem_lib -lupb_base_lib"

BIN
v1.70.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
v1.71.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.