grpc: upgrade 1.84.0 -> 1.84.1
PATCH 1/5 grpc: upgrade 1.84.0 -> 1.84.1
From: Peter Marko <[email protected]>
Upgrade to addresses eMudhra certificates issue.
See https://emudhra.we-have-a-problem.com/
$ git log --oneline v1.84.0..v1.84.1 b0c0c4f882 (HEAD -> v1.84.x, tag: v1.84.1) [Release] Bump version to 1.84.1 (on v1.84.x branch) (#43709) 405e6a1c30 [Backport][v1.84.x][security] Update gRPC repo roots. (#43700) 826616aed4 [Backport][v1.84.x][CI] Various macOS CI reliability fixes (#43701) 49d6985875 [PSM Interop][Backport v1.84.x] Update xDS legacy test scripts for health proto pa… (#43572)
---
.../grpc/0001-cmake-Link-with-libatomic-on-rv32-rv64.patch | 2 +-
...tsi-fix-OpenSSL-4.0-const-and-opaque-compatibility.patch | 6 +++---
...tsi-fix-remaining-const-qualifiers-for-OpenSSL-4.0.patch | 4 ++--
.../grpc/{grpc_1.84.0.bb => grpc_1.84.1.bb} | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
rename meta-oe/recipes-devtools/grpc/{grpc_1.84.0.bb => grpc_1.84.1.bb} (98%)meta-oe/recipes-devtools/grpc/grpc/0001-cmake-Link-with-libatomic-on-rv32-rv64.patch +1 -1
@@ -18,7 +18,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt index 06e6453b5c..476d7f1576 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -306,6 +306,9 @@ if(UNIX AND NOT HAIKU) +@@ -353,6 +353,9 @@ if(UNIX AND NOT HAIKU) set(_gRPC_ALLTARGETS_LIBRARIES ${_gRPC_ALLTARGETS_LIBRARIES} rt) endif() endif()
meta-oe/recipes-devtools/grpc/grpc/0002-tsi-fix-OpenSSL-4.0-const-and-opaque-compatibility.patch +3 -3
@@ -21,7 +21,7 @@ diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport index 922bb836e14..ee2092acece 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc -@@ -893,7 +893,7 @@ static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8, +@@ -1023,7 +1023,7 @@ static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8, int common_name_index = -1; X509_NAME_ENTRY* common_name_entry = nullptr; ASN1_STRING* common_name_asn1 = nullptr;
@@ -30,7 +30,7 @@ index 922bb836e14..ee2092acece 100644 int utf8_returned_size = 0; if (subject_name == nullptr) { VLOG(2) << "Could not get subject name from certificate."; -@@ -951,7 +951,7 @@ static tsi_result peer_property_from_x509_common_name( +@@ -1081,7 +1081,7 @@ static tsi_result peer_property_from_x509_common_name( static tsi_result peer_property_from_x509_subject(X509* cert, tsi_peer_property* property, bool is_verified_root_cert) {
@@ -39,7 +39,7 @@ index 922bb836e14..ee2092acece 100644 if (subject_name == nullptr) { GRPC_TRACE_LOG(tsi, INFO) << "Could not get subject name from certificate."; return TSI_NOT_FOUND; -@@ -1047,16 +1047,16 @@ static tsi_result add_subject_alt_names_properties_to_peer( +@@ -1177,16 +1177,16 @@ static tsi_result add_subject_alt_names_properties_to_peer( char ntop_buf[INET6_ADDRSTRLEN]; int af;
meta-oe/recipes-devtools/grpc/grpc/0004-tsi-fix-remaining-const-qualifiers-for-OpenSSL-4.0.patch +2 -2
@@ -21,7 +21,7 @@ diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport index ee2092acece..23340beda98 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc -@@ -891,8 +891,8 @@ static int looks_like_ip_address(absl::string_view name) { +@@ -1021,8 +1021,8 @@ static int looks_like_ip_address(absl::string_view name) { static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8, size_t* utf8_size) { int common_name_index = -1;
@@ -32,7 +32,7 @@ index ee2092acece..23340beda98 100644 auto* subject_name = X509_get_subject_name(cert); int utf8_returned_size = 0; if (subject_name == nullptr) { -@@ -1342,13 +1342,12 @@ static tsi_result x509_store_load_certs(X509_STORE* cert_store, +@@ -1472,13 +1472,12 @@ static tsi_result x509_store_load_certs(X509_STORE* cert_store, break; // We're at the end of stream. } if (root_names != nullptr) {
meta-oe/recipes-devtools/grpc/grpc_1.84.1.bb renamed from meta-oe/recipes-devtools/grpc/grpc_1.84.0.bb +1 -1
@@ -23,7 +23,7 @@ RDEPENDS:${PN}-dev:append:class-native = " ${PN}-compiler" # Both dependencies are mutually exclusive # RDEPENDS:${PN}-dev += "${PN}-compiler" -SRCREV = "3252a89f10d8e92997862167ca7d095ecda85973" +SRCREV = "b0c0c4f8823ba69e7e43aaaf183c30a43e549924" BRANCH = "v1.84.x" SRC_URI = "gitsm://github.com/grpc/grpc.git;protocol=https;branch=${BRANCH};tag=v${PV} \ file://0001-cmake-Link-with-libatomic-on-rv32-rv64.patch \
PATCH 2/5 python3-grpcio: upgrade 1.78.0 -> 1.84.1
From: Peter Marko <[email protected]>
Upgrade to addresses eMudhra certificates issue.
See https://emudhra.we-have-a-problem.com/
License-Update: clarified which license applies to which file
* https://github.com/grpc/grpc/commit/fb53717dfa6b264e7f930bb5e9a7e5c86a31ed9e
---
.../0001-Fix-OpenSSL-4.0-compatibility.patch | 18 +++++++++---------
...on-enable-unbundled-cross-compilation.patch | 2 +-
...pcio_1.78.0.bb => python3-grpcio_1.84.1.bb} | 4 ++--
3 files changed, 12 insertions(+), 12 deletions(-)
rename meta-python/recipes-devtools/python/{python3-grpcio_1.78.0.bb => python3-grpcio_1.84.1.bb} (93%)meta-python/recipes-devtools/python/python3-grpcio/0001-Fix-OpenSSL-4.0-compatibility.patch +9 -9
@@ -36,7 +36,7 @@ diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport index 6526d3f..ff03697 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc -@@ -406,9 +406,9 @@ static int looks_like_ip_address(absl::string_view name) { +@@ -1021,9 +1021,9 @@ static int looks_like_ip_address(absl::string_view name) { static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8, size_t* utf8_size) { int common_name_index = -1;
@@ -49,7 +49,7 @@ index 6526d3f..ff03697 100644 int utf8_returned_size = 0; if (subject_name == nullptr) { VLOG(2) << "Could not get subject name from certificate."; -@@ -466,7 +466,7 @@ static tsi_result peer_property_from_x509_common_name( +@@ -1081,7 +1081,7 @@ static tsi_result peer_property_from_x509_common_name( static tsi_result peer_property_from_x509_subject(X509* cert, tsi_peer_property* property, bool is_verified_root_cert) {
@@ -58,7 +58,7 @@ index 6526d3f..ff03697 100644 if (subject_name == nullptr) { GRPC_TRACE_LOG(tsi, INFO) << "Could not get subject name from certificate."; return TSI_NOT_FOUND; -@@ -562,16 +562,16 @@ static tsi_result add_subject_alt_names_properties_to_peer( +@@ -1177,16 +1177,16 @@ static tsi_result add_subject_alt_names_properties_to_peer( char ntop_buf[INET6_ADDRSTRLEN]; int af;
@@ -78,7 +78,7 @@ index 6526d3f..ff03697 100644 ntop_buf, INET6_ADDRSTRLEN); if (name == nullptr) { LOG(ERROR) << "Could not get IP string from asn1 octet."; -@@ -855,13 +855,12 @@ static tsi_result x509_store_load_certs(X509_STORE* cert_store, +@@ -1472,13 +1472,12 @@ static tsi_result x509_store_load_certs(X509_STORE* cert_store, break; // We're at the end of stream. } if (root_names != nullptr) {
@@ -97,13 +97,13 @@ diff --git a/src/core/tsi/ssl_transport_security_utils.cc b/src/core/tsi/ssl_tra index 8f6607c..93876bb 100644 --- a/src/core/tsi/ssl_transport_security_utils.cc +++ b/src/core/tsi/ssl_transport_security_utils.cc -@@ -281,11 +281,11 @@ bool VerifyCrlCertIssuerNamesMatch(X509_CRL* crl, X509* cert) { +@@ -282,11 +282,11 @@ bool VerifyCrlCertIssuerNamesMatch(X509_CRL* crl, X509* cert) { if (cert == nullptr || crl == nullptr) { return false; } - X509_NAME* cert_issuer_name = X509_get_issuer_name(cert); + auto* cert_issuer_name = X509_get_issuer_name(cert); - if (cert == nullptr) { + if (cert_issuer_name == nullptr) { return false; } - X509_NAME* crl_issuer_name = X509_CRL_get_issuer(crl);
@@ -111,7 +111,7 @@ index 8f6607c..93876bb 100644 if (crl_issuer_name == nullptr) { return false; } -@@ -316,7 +316,7 @@ absl::StatusOr<std::string> IssuerFromCert(X509* cert) { +@@ -317,7 +317,7 @@ absl::StatusOr<std::string> IssuerFromCert(X509* cert) { if (cert == nullptr) { return absl::InvalidArgumentError("cert cannot be null"); }
@@ -120,7 +120,7 @@ index 8f6607c..93876bb 100644 unsigned char* buf = nullptr; int len = i2d_X509_NAME(issuer, &buf); if (len < 0 || buf == nullptr) { -@@ -331,7 +331,7 @@ absl::StatusOr<std::string> AkidFromCertificate(X509* cert) { +@@ -332,7 +332,7 @@ absl::StatusOr<std::string> AkidFromCertificate(X509* cert) { if (cert == nullptr) { return absl::InvalidArgumentError("cert cannot be null."); }
@@ -129,7 +129,7 @@ index 8f6607c..93876bb 100644 int j = X509_get_ext_by_NID(cert, NID_authority_key_identifier, -1); // Can't have multiple occurrences if (j >= 0) { -@@ -356,7 +356,7 @@ absl::StatusOr<std::string> AkidFromCrl(X509_CRL* crl) { +@@ -357,7 +357,7 @@ absl::StatusOr<std::string> AkidFromCrl(X509_CRL* crl) { if (crl == nullptr) { return absl::InvalidArgumentError("Could not get AKID from crl."); }
meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch +1 -1
@@ -16,7 +16,7 @@ diff --git a/setup.py b/setup.py index 39ca17e..bffa9fb 100644 --- a/setup.py +++ b/setup.py -@@ -318,25 +318,25 @@ if BUILD_WITH_SYSTEM_OPENSSL: +@@ -341,25 +341,25 @@ if BUILD_WITH_SYSTEM_OPENSSL: lambda x: "third_party/boringssl" not in x, CORE_C_FILES ) CORE_C_FILES = filter(lambda x: "src/boringssl" not in x, CORE_C_FILES)
meta-python/recipes-devtools/python/python3-grpcio_1.84.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.78.0.bb +2 -2
@@ -3,7 +3,7 @@ HOMEPAGE = "https://www.grpc.io/" SECTION = "devel/python" LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0" LIC_FILES_CHKSUM = " \ - file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906 \ + file://LICENSE;md5=fe8c552b7748e45c00ac55ac0257f6c9 \ file://third_party/utf8_range/utf8_validity.h;beginline=1;endline=5;md5=db08ddb5817e660489678e7c3653805a \ file://third_party/xxhash/xxhash.h;beginline=1;endline=34;md5=d41d564db2353fc80a713956d85b1690 \ "
@@ -14,7 +14,7 @@ SRC_URI += "file://0001-python-enable-unbundled-cross-compilation.patch \ file://0001-Fix-OpenSSL-4.0-compatibility.patch \ file://abseil-ppc-fixes.patch \ " -SRC_URI[sha256sum] = "7382b95189546f375c174f53a5fa873cef91c4b8005faa05cc5b3beea9c4f1c5" +SRC_URI[sha256sum] = "446e7876b9b991fa124c1d414899fa7cf95f89a3e71237ea0161863dc0b2c09f" RDEPENDS:${PN} = "python3-protobuf python3-typing-extensions"
PATCH 3/5 python3-grpcio-channelz: upgrade 1.84.0 -> 1.84.1
In reply to Peter MarkoFrom: Peter Marko <[email protected]>
Upgrade to addresses eMudhra certificates issue.
See https://emudhra.we-have-a-problem.com/
Sync all grpc recipes to the same version.
---
...cio-channelz_1.84.0.bb => python3-grpcio-channelz_1.84.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-grpcio-channelz_1.84.0.bb => python3-grpcio-channelz_1.84.1.bb} (80%)meta-python/recipes-devtools/python/python3-grpcio-channelz_1.84.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-channelz_1.84.0.bb +1 -1
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8c552b7748e45c00ac55ac0257f6c9" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "84220ef2e7ec0a3792a151b6ffbc70691bf0f09cd009fe734f2946b917565694" +SRC_URI[sha256sum] = "03d2085415bde0e30515e4e429d0d68d25471aa0624628ce335d92f40f8445f9" DEPENDS += "python3-grpcio python3-wheel-native"
PATCH 4/5 python3-grpcio-reflection: upgrade 1.84.0 -> 1.84.1
In reply to Peter MarkoFrom: Peter Marko <[email protected]>
Upgrade to addresses eMudhra certificates issue.
See https://emudhra.we-have-a-problem.com/
Sync all grpc recipes to the same version.
---
...reflection_1.84.0.bb => python3-grpcio-reflection_1.84.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-grpcio-reflection_1.84.0.bb => python3-grpcio-reflection_1.84.1.bb} (80%)meta-python/recipes-devtools/python/python3-grpcio-reflection_1.84.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-reflection_1.84.0.bb +1 -1
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8c552b7748e45c00ac55ac0257f6c9" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "06bf3d7d8cef9afbcc721ee52191652b4483831774255e174404b0e0551741bc" +SRC_URI[sha256sum] = "09d72642fbabaf45f8fb9c86b0d3cf45945fb7c7c1c4a2dd3321dfdb05cbe2f8" DEPENDS += "python3-grpcio python3-wheel-native"
PATCH 5/5 python3-grpcio-tools: upgrade 1.76.0 -> 1.84.1
In reply to Peter MarkoFrom: Peter Marko <[email protected]>
Upgrade to addresses eMudhra certificates issue.
See https://emudhra.we-have-a-problem.com/
Sync all grpc recipes to the same version.
Removed obsolete patches:
* The compiler-argument fix is already handled upstream using shlex.split()
* Bundled protobuf now restricts musttail to AArch64 and x86-64, so the MIPS exclusion patch is unnecessary.
License-Update: switched from license to license expression
orig: License: Apache License 2.0
New: License-Expression: Apache-2.0
---
...f-Disable-musttail-attribute-on-mips.patch | 26 ---------
...-Do-not-mix-C-and-C-compiler-options.patch | 56 -------------------
...76.0.bb => python3-grpcio-tools_1.84.1.bb} | 7 +--
3 files changed, 2 insertions(+), 87 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio-tools/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch
rename meta-python/recipes-devtools/python/{python3-grpcio-tools_1.76.0.bb => python3-grpcio-tools_1.84.1.bb} (52%)meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 668d3e577073e51cc7e98b42d89c1e2b9b4e04b4 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 16 Sep 2022 19:09:15 -0700 -Subject: [PATCH] protobuf: Disable musttail attribute on mips - -See https://github.com/llvm/llvm-project/issues/57795 - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> -Signed-off-by: Wang Mingyu <[email protected]> ---- - third_party/protobuf/src/google/protobuf/port_def.inc | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/third_party/protobuf/src/google/protobuf/port_def.inc b/third_party/protobuf/src/google/protobuf/port_def.inc -index edd6d51..6ddaf80 100644 ---- a/third_party/protobuf/src/google/protobuf/port_def.inc -+++ b/third_party/protobuf/src/google/protobuf/port_def.inc -@@ -235,6 +235,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3), - #error PROTOBUF_TAILCALL was previously defined - #endif - #if ABSL_HAVE_CPP_ATTRIBUTE(clang::musttail) && !defined(__arm__) && \ -+ !defined(__mips__) && \ - !defined(_ARCH_PPC) && !defined(__wasm__) && \ - !(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__) - // Compilation fails on ARM32: b/195943306
meta-python/recipes-devtools/python/python3-grpcio-tools/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch deleted +0 -56
56 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-grpcio-tools_1.84.1.bb renamed from meta-python/recipes-devtools/python/python3-grpcio-tools_1.76.0.bb +2 -5
@@ -3,16 +3,13 @@ HOMEPAGE = "https://www.grpc.io/" SECTION = "devel/python" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=0bcf70029ff7f40a132bf95381ee0b2d" inherit pypi setuptools3 DEPENDS += "python3-grpcio" -SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \ - file://0001-protobuf-Disable-musttail-attribute-on-mips.patch \ - " -SRC_URI[sha256sum] = "ce80169b5e6adf3e8302f3ebb6cb0c3a9f08089133abca4b76ad67f751f5ad88" +SRC_URI[sha256sum] = "ca8a326df3441127d6709d992774844bb496db30b08f76ed5d1a912089e03f2c" RDEPENDS:${PN} = "python3-grpcio"