Skip to content

Commit

Permalink
backport patches for OpenSSL 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 26, 2023
1 parent 4791f34 commit 6a7f231
Show file tree
Hide file tree
Showing 16 changed files with 684 additions and 29 deletions.
3 changes: 3 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ source:
- patches/0012-link-grpc-_unsecure-to-grpc.patch # [win]
# unbreak CMake integration
- patches/0013-don-t-use-find_dependency-for-protobuf.patch
# backport grpc/grpc#31256 & grpc/grpc#34131
- patches/0014-OpenSSL-Support-for-OpenSSL-3-31256.patch
- patches/0015-Testing-Disable-failing-OpenSSL-Test-34131.patch
- git_url: https://github.com/google/benchmark.git
git_rev: 015d1a091af6937488242b70121858bce8fd40e9
folder: third_party/benchmark
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0001-windows-ssl-lib-names.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 66a5eeb35da6b7b13fb66e69eb7ac9a9a02f2ecd Mon Sep 17 00:00:00 2001
From b799711f9be08d17ead691935845d4707bddb48c Mon Sep 17 00:00:00 2001
From: Jonathan Helmus <jjhelmus@gmail.com>
Date: Mon, 17 Feb 2020 15:45:06 -0600
Subject: [PATCH 01/13] windows ssl lib names
Subject: [PATCH 01/15] windows ssl lib names

Co-Authored-By: Julien Schueller <schueller@phimeca.com>
Co-Authored-By: Nicholas Bollweg <nick.bollweg@gmail.com>
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0002-fix-win-setup-cmds.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7600b353d5a6c41539a135852da8aefc25419e4e Mon Sep 17 00:00:00 2001
From 14c489ea5bdd62490873f76fdb55c2c05cefc601 Mon Sep 17 00:00:00 2001
From: Mike Sarahan <msarahan@gmail.com>
Date: Tue, 18 Feb 2020 13:53:05 -0600
Subject: [PATCH 02/13] fix win setup cmds
Subject: [PATCH 02/15] fix win setup cmds

Co-Authored-By: Julien Schueller <schueller@phimeca.com>
Co-Authored-By: Nicholas Bollweg <nick.bollweg@gmail.com>
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0003-Link-against-grpc.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e09806f3cf436544fb739215a5ba6c6c6139261b Mon Sep 17 00:00:00 2001
From ea602e47986373aee9b97e15dae7558714351846 Mon Sep 17 00:00:00 2001
From: Marius van Niekerk <marius.v.niekerk@gmail.com>
Date: Mon, 13 Jun 2022 17:13:07 -0400
Subject: [PATCH 03/13] Link against grpc
Subject: [PATCH 03/15] Link against grpc

---
setup.py | 10 ++++++++++
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0004-force-protoc-executable.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d9dcb0db1cfa77022023a7044b46808623a5f5c6 Mon Sep 17 00:00:00 2001
From c0b7fb5fcffbd71b4ba9be3c9503e5bf3ebfbd28 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwe.korn@quantco.com>
Date: Fri, 11 Sep 2020 14:20:04 +0200
Subject: [PATCH 04/13] force protoc executable
Subject: [PATCH 04/15] force protoc executable

---
cmake/protobuf.cmake | 17 ++---------------
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0005-switch-to-C-17-for-grpcio.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c606e0456cecf92098889859d0a27434329dab13 Mon Sep 17 00:00:00 2001
From 1406a6adfe93da50f2300c83dced560aa80ea1f7 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Sat, 3 Sep 2022 19:23:15 +0200
Subject: [PATCH 05/13] switch to C++17 for grpcio
Subject: [PATCH 05/15] switch to C++17 for grpcio

---
setup.py | 7 ++++---
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0006-fix-abseil-setup.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e565c478a802dfd5e6bc4e9659614416d5a0e70b Mon Sep 17 00:00:00 2001
From f5177eee04a630a72ca049ae8b9cc574a046ef19 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Sun, 4 Sep 2022 14:34:52 +0200
Subject: [PATCH 06/13] fix abseil setup
Subject: [PATCH 06/15] fix abseil setup

---
setup.py | 15 +++++++++++----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From cd6c126aafc47f492387e72be77380dcd1ec8b8f Mon Sep 17 00:00:00 2001
From f2153c8d7e40daca6ba52eafa92772f60261d780 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Tue, 23 Aug 2022 11:45:20 +0200
Subject: [PATCH 07/13] mark linkage of c-ares/re2/zlib as private
Subject: [PATCH 07/15] mark linkage of c-ares/re2/zlib as private

See also: https://github.com/grpc/grpc/issues/30838

Expand All @@ -11,7 +11,7 @@ Co-Authored-By: Mark Harfouche <mark.harfouche@gmail.com>
1 file changed, 53 insertions(+), 47 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed9e1cbda7..f5fb749ac9 100644
index a4fe00fdb1..e5e4ea62a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2479,32 +2479,35 @@ target_include_directories(grpc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 38b92376b5ef5453c058e2bbb54aa623f8254fc4 Mon Sep 17 00:00:00 2001
From 27a5022cc219f8db7a24cf9c9156586156692c12 Mon Sep 17 00:00:00 2001
From: Isuru Fernando <isuruf@gmail.com>
Date: Sat, 22 Oct 2022 01:21:56 -0500
Subject: [PATCH 08/13] add {GPR,GRPC,GRPCXX,UBP}_DLL mechanism for missing
Subject: [PATCH 08/15] add {GPR,GRPC,GRPCXX,UBP}_DLL mechanism for missing
symbols on windows

Co-Authored-By: "H. Vetinari" <h.vetinari@gmx.com>
Expand All @@ -22,7 +22,7 @@ Co-Authored-By: "H. Vetinari" <h.vetinari@gmx.com>
13 files changed, 106 insertions(+), 12 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5fb749ac9..531718fd4d 100644
index e5e4ea62a9..b43e3b9a69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1576,6 +1576,11 @@ if(WIN32 AND MSVC)
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0009-fix-support_enabled-for-windows.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b1737d3d0dab5437e5e69ff5f06006b6a750b9fd Mon Sep 17 00:00:00 2001
From f6054ed392fde442a3a43acc1b2af4cde0e0f751 Mon Sep 17 00:00:00 2001
From: Isuru Fernando <isuruf@gmail.com>
Date: Sat, 22 Oct 2022 02:21:08 -0500
Subject: [PATCH 09/13] fix support_enabled for windows
Subject: [PATCH 09/15] fix support_enabled for windows

---
src/core/lib/gprpp/fork.cc | 12 ++++++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7933c84ff62a1dd4b9bb51b89d9f1c41a9299c40 Mon Sep 17 00:00:00 2001
From eede73fb88593af2d41ca6bfb914ac841e49d5a9 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Mon, 8 May 2023 11:31:09 +1100
Subject: [PATCH 10/13] Fix `data with thread storage duration may not have dll
Subject: [PATCH 10/15] Fix `data with thread storage duration may not have dll
interface`

Windows needs a workaround.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 554180d652000b9bf5e473f4c16c96e4103ebb52 Mon Sep 17 00:00:00 2001
From 40ae31b2a591a12c2448f332b81521de8bc31ca1 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Fri, 9 Jun 2023 17:03:08 +1100
Subject: [PATCH 11/13] put some grpc::experimental classes needed by arrow in
Subject: [PATCH 11/15] put some grpc::experimental classes needed by arrow in
DLL

also provide implementation for destructor of CertificateProviderInterface;
Expand Down
6 changes: 3 additions & 3 deletions recipe/patches/0012-link-grpc-_unsecure-to-grpc.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
From c08728f11c50f0cfeeec27357231c19806162846 Mon Sep 17 00:00:00 2001
From 798e518a1419320284c4c43ec61e34ff158d2682 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Fri, 9 Jun 2023 20:11:22 +1100
Subject: [PATCH 12/13] link grpc++_unsecure to grpc++
Subject: [PATCH 12/15] link grpc++_unsecure to grpc++

which is where CertificateProviderInterface etc. live
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 531718fd4d..1550f38ae7 100644
index b43e3b9a69..836fb1daa7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4169,6 +4169,7 @@ target_link_libraries(grpc++_unsecure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d13281f271ae22a0b09588a3a22787380dae13fb Mon Sep 17 00:00:00 2001
From d04905cf944897dccf7212153549725d6e0176d0 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Fri, 9 Jun 2023 22:16:09 +1100
Subject: [PATCH 13/13] don't use find_dependency for protobuf
Subject: [PATCH 13/15] don't use find_dependency for protobuf

---
cmake/protobuf.cmake | 2 +-
Expand Down
Loading

0 comments on commit 6a7f231

Please sign in to comment.