[packages/grpc] - added x32 patch (fix wrap_memcpy with x32 ABI) - added libdir patch - updated protobuf version (fo

qboosh qboosh at pld-linux.org
Sat Jul 4 21:06:05 CEST 2020


commit 321e5c154098b8ce2412fe086119f49c48749bf2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 4 21:07:20 2020 +0200

    - added x32 patch (fix wrap_memcpy with x32 ABI)
    - added libdir patch
    - updated protobuf version (for FEATURE_PROTO3_OPTIONAL)

 grpc-libdir.patch | 11 +++++++++++
 grpc-x32.patch    | 11 +++++++++++
 grpc.spec         |  6 +++++-
 3 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/grpc.spec b/grpc.spec
index 897a95e..b7c32af 100644
--- a/grpc.spec
+++ b/grpc.spec
@@ -19,13 +19,15 @@ Source0:	https://github.com/grpc/grpc/archive/v%{version}/%{name}-%{version}.tar
 # Source0-md5:	316b30c89b48b8ae0ad005bb12ac566a
 Patch0:		%{name}-system-absl.patch
 Patch1:		%{name}-sphinx.patch
+Patch2:		%{name}-x32.patch
+Patch3:		%{name}-libdir.patch
 URL:		https://grpc.io/
 BuildRequires:	abseil-cpp-devel
 BuildRequires:	c-ares-devel >= 1.13.0
 BuildRequires:	cmake >= 3.5.1
 BuildRequires:	libstdc++-devel >= 6:4.7
 BuildRequires:	openssl-devel
-BuildRequires:	protobuf-devel
+BuildRequires:	protobuf-devel >= 3.12
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	zlib-devel
@@ -136,6 +138,8 @@ Dokumentacja API biblioteki Pythona gRPC.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 install -d build
diff --git a/grpc-libdir.patch b/grpc-libdir.patch
new file mode 100644
index 0000000..b77ed27
--- /dev/null
+++ b/grpc-libdir.patch
@@ -0,0 +1,11 @@
+--- grpc-1.30.0/CMakeLists.txt.orig	2020-06-22 23:04:32.000000000 +0200
++++ grpc-1.30.0/CMakeLists.txt	2020-07-04 20:25:44.272040524 +0200
+@@ -15111,7 +15111,7 @@
+     "${output_filepath}"
+     @ONLY)
+   install(FILES "${output_filepath}"
+-    DESTINATION "lib/pkgconfig/")
++    DESTINATION "lib${LIB_SUFFIX}/pkgconfig/")
+ endfunction()
+ 
+ # gpr .pc file
diff --git a/grpc-x32.patch b/grpc-x32.patch
new file mode 100644
index 0000000..596ed24
--- /dev/null
+++ b/grpc-x32.patch
@@ -0,0 +1,11 @@
+--- grpc-1.30.0/src/core/lib/gpr/wrap_memcpy.cc.orig	2020-06-22 23:04:32.000000000 +0200
++++ grpc-1.30.0/src/core/lib/gpr/wrap_memcpy.cc	2020-07-04 18:41:46.960053131 +0200
+@@ -28,7 +28,7 @@
+ 
+ extern "C" {
+ #ifdef __linux__
+-#if defined(__x86_64__) && !defined(GPR_MUSL_LIBC_COMPAT)
++#if defined(__x86_64__) && !defined(__ILP32__) && !defined(GPR_MUSL_LIBC_COMPAT)
+ __asm__(".symver memcpy,memcpy at GLIBC_2.2.5");
+ void* __wrap_memcpy(void* destination, const void* source, size_t num) {
+   return memcpy(destination, source, num);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grpc.git/commitdiff/321e5c154098b8ce2412fe086119f49c48749bf2



More information about the pld-cvs-commit mailing list