package/grpc: bump version to 1.30.2

Other changes:
  - Add a dependency on libabseil-cpp
  - Update the patches to apply properly.

Tested with the following distributions:
  - Debian 9
  - CentOS 7
  - Fedora 32

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Adam Duskett 2020-07-21 14:45:22 -07:00 committed by Thomas Petazzoni
parent 93568440ed
commit d0fb813539
5 changed files with 26 additions and 22 deletions

View File

@ -17,12 +17,12 @@ Signed-off-by: Robert Rose <robertroyrose@gmail.com>
1 file changed, 13 insertions(+) 1 file changed, 13 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc76cf5..7a22b08 100644 index be695c2..45c2fcb 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -13420,6 +13420,18 @@ target_link_libraries(grpc_cli @@ -10844,6 +10844,18 @@ target_link_libraries(grpc_cli
endif (gRPC_BUILD_TESTS) endif()
if (gRPC_BUILD_CODEGEN) if(gRPC_BUILD_CODEGEN AND gRPC_BUILD_GRPC_CPP_PLUGIN)
+if (gRPC_NATIVE_CPP_PLUGIN) +if (gRPC_NATIVE_CPP_PLUGIN)
+ +
@ -39,14 +39,14 @@ index fc76cf5..7a22b08 100644
add_executable(grpc_cpp_plugin add_executable(grpc_cpp_plugin
src/compiler/cpp_plugin.cc src/compiler/cpp_plugin.cc
) )
@@ -13457,6 +13469,7 @@ if (gRPC_INSTALL) @@ -10877,6 +10889,7 @@ if(gRPC_INSTALL)
ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR} ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
) )
endif() endif()
+endif() +endif()
endif (gRPC_BUILD_CODEGEN) endif()
if (gRPC_BUILD_CODEGEN) if(gRPC_BUILD_CODEGEN AND gRPC_BUILD_GRPC_CSHARP_PLUGIN)
-- --
2.20.0.rc0.387.gc7a69e6b6c-goog 2.26.2

View File

@ -17,12 +17,12 @@ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2 files changed, 8 insertions(+) 2 files changed, 8 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89e834b..c7bd2ad 100644 index 45c2fcb..0b2be4f 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -97,6 +97,12 @@ endif() @@ -177,6 +177,12 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
+include(CheckSymbolExists) +include(CheckSymbolExists)
+check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP) +check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)
@ -30,14 +30,14 @@ index 89e834b..c7bd2ad 100644
+ add_definitions(-DHAVE_PTHREAD_SETNAME_NP) + add_definitions(-DHAVE_PTHREAD_SETNAME_NP)
+endif () +endif ()
+ +
if (MSVC) if(MSVC)
include(cmake/msvc_static_runtime.cmake) include(cmake/msvc_static_runtime.cmake)
add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS) add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h
index 031c0c3..a29a9dc 100644 index 4f213ff..55ecd9d 100644
--- a/include/grpc/impl/codegen/port_platform.h --- a/include/grpc/impl/codegen/port_platform.h
+++ b/include/grpc/impl/codegen/port_platform.h +++ b/include/grpc/impl/codegen/port_platform.h
@@ -181,7 +181,9 @@ @@ -195,7 +195,9 @@
#endif /* _LP64 */ #endif /* _LP64 */
#ifdef __GLIBC__ #ifdef __GLIBC__
#define GPR_POSIX_CRASH_HANDLER 1 #define GPR_POSIX_CRASH_HANDLER 1
@ -48,5 +48,5 @@ index 031c0c3..a29a9dc 100644
#else /* musl libc */ #else /* musl libc */
#define GPR_MUSL_LIBC_COMPAT 1 #define GPR_MUSL_LIBC_COMPAT 1
-- --
2.14.4 2.26.2

View File

@ -7,6 +7,7 @@ config BR2_PACKAGE_GRPC
depends on !BR2_STATIC_LIBS # protobuf depends on !BR2_STATIC_LIBS # protobuf
depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC
select BR2_PACKAGE_C_ARES select BR2_PACKAGE_C_ARES
select BR2_PACKAGE_LIBABSEIL_CPP
select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_PROTOBUF select BR2_PACKAGE_PROTOBUF
select BR2_PACKAGE_ZLIB select BR2_PACKAGE_ZLIB

View File

@ -1,3 +1,3 @@
# Locally computed # Locally computed
sha256 ffbe61269160ea745e487f79b0fd06b6edd3d50c6d9123f053b5634737cf2f69 grpc-1.25.0.tar.gz sha256 ba74b97a2f1b4e22ec5fb69d639d849d2069fb58ea7d6579a31f800af6fe3b6c grpc-1.30.2.tar.gz
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE

View File

@ -4,7 +4,7 @@
# #
################################################################################ ################################################################################
GRPC_VERSION = 1.25.0 GRPC_VERSION = 1.30.2
GRPC_SITE = $(call github,grpc,grpc,v$(GRPC_VERSION)) GRPC_SITE = $(call github,grpc,grpc,v$(GRPC_VERSION))
GRPC_LICENSE = Apache-2.0 GRPC_LICENSE = Apache-2.0
GRPC_LICENSE_FILES = LICENSE GRPC_LICENSE_FILES = LICENSE
@ -12,8 +12,9 @@ GRPC_LICENSE_FILES = LICENSE
GRPC_INSTALL_STAGING = YES GRPC_INSTALL_STAGING = YES
# Need to use host grpc_cpp_plugin during cross compilation. # Need to use host grpc_cpp_plugin during cross compilation.
GRPC_DEPENDENCIES = c-ares host-grpc openssl protobuf zlib GRPC_DEPENDENCIES = c-ares host-grpc openssl protobuf zlib libabseil-cpp
HOST_GRPC_DEPENDENCIES = host-c-ares host-openssl host-protobuf host-zlib HOST_GRPC_DEPENDENCIES = host-c-ares host-openssl host-protobuf host-zlib \
host-libabseil-cpp
# gRPC_CARES_PROVIDER=package won't work because it requires c-ares to have # gRPC_CARES_PROVIDER=package won't work because it requires c-ares to have
# installed a cmake config file, but buildroot uses c-ares' autotools build, # installed a cmake config file, but buildroot uses c-ares' autotools build,
@ -25,6 +26,7 @@ GRPC_CONF_OPTS = \
-DgRPC_PROTOBUF_PROVIDER=package \ -DgRPC_PROTOBUF_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \ -DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \ -DgRPC_ZLIB_PROVIDER=package \
-DgRPC_ABSL_PROVIDER=package \
-DgRPC_NATIVE_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin -DgRPC_NATIVE_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin
# grpc can use __atomic builtins, so we need to link with # grpc can use __atomic builtins, so we need to link with
@ -65,7 +67,8 @@ HOST_GRPC_CONF_OPTS = \
-DgRPC_CARES_PROVIDER=none \ -DgRPC_CARES_PROVIDER=none \
-DgRPC_PROTOBUF_PROVIDER=package \ -DgRPC_PROTOBUF_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \ -DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package -DgRPC_ZLIB_PROVIDER=package \
-DgRPC_ABSL_PROVIDER=package
$(eval $(cmake-package)) $(eval $(cmake-package))
$(eval $(host-cmake-package)) $(eval $(host-cmake-package))