package/grpc: bump to version 1.76.0
commit: https://git.buildroot.net/buildroot/commit/?id=656fc0f78e9f225136a0161998b328902ca514d2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
- use new flag gRPC_DOWNLOAD_ARCHIVES=OFF which removed the need for patch 0003
- refresh patches
- update 0002 to properly apply and re-enable utf8_range_lib as its linked against grpc_plugin_support
Release Notes since 1.66:
https://github.com/grpc/grpc/releases/tag/v1.67.0
https://github.com/grpc/grpc/releases/tag/v1.68.0
https://github.com/grpc/grpc/releases/tag/v1.69.0
https://github.com/grpc/grpc/releases/tag/v1.70.0
https://github.com/grpc/grpc/releases/tag/v1.71.0
https://github.com/grpc/grpc/releases/tag/v1.72.0
https://github.com/grpc/grpc/releases/tag/v1.73.0
https://github.com/grpc/grpc/releases/tag/v1.74.0
https://github.com/grpc/grpc/releases/tag/v1.75.0
https://github.com/grpc/grpc/releases/tag/v1.76.0
This bump of protobuf broke the build of grpc 1.66.1, which can be reproduced with:
BR2_arm=y
BR2_cortex_a53=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PACKAGE_COLLECTD=y
BR2_PACKAGE_COLLECTD_GRPC=y
Fixes:
https://autobuild.buildroot.net/results/84764134062f28f86ecb1646a536ee4862e4f8df/
--- .checkpackageignore | 1 - ...tect-the-availability-of-pthread_setname_.patch | 14 ++-- ...to-restrict-building-of-host-grpc-to-grpc.patch | 77 +++++++++++++--------- ...ble-unconditionally-downloading-api-repos.patch | 38 ----------- package/grpc/grpc.hash | 2 +- package/grpc/grpc.mk | 8 ++- 6 files changed, 60 insertions(+), 80 deletions(-)
.checkpackageignore +0 -1
@@ -428,7 +428,6 @@ package/gob2/0001-dont-include-from-prefix.patch lib_patch.Upstream package/gobject-introspection/0001-Add-rpath-links-to-ccompiler.patch lib_patch.Upstream package/gpsd/S50gpsd Shellcheck lib_sysv.Indent lib_sysv.Variables package/gptfdisk/0001-gptcurses-partially-revert-Tweaks-for-building-on-th.patch lib_patch.Upstream -package/grpc/0003-disable-unconditionally-downloading-api-repos.patch lib_patch.Upstream package/gstreamer1/gstd/0001-Don-t-require-gstd-check-user-xenv.sh-for-systemd-se.patch lib_patch.Upstream package/guile/0001-calculate-csqrt_manually.patch lib_patch.Upstream package/guile/0002-Makefile.am-fix-build-without-makeinfo.patch lib_patch.Upstream
package/grpc/0001-Properly-detect-the-availability-of-pthread_setname_.patch +7 -7
@@ -1,4 +1,4 @@ -From dfec50b899c449bc964514f16e94869de7a68896 Mon Sep 17 00:00:00 2001 +From 3e9f278145fafbfe15a868d0f9032ba590078c3b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Mon, 31 Dec 2018 16:22:07 +0100 Subject: [PATCH] Properly detect the availability of pthread_setname_np()
@@ -25,10 +25,10 @@ Signed-off-by: Michael Nosthoff <[email protected]> 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 053b9e3784..2565dc5c84 100644 +index f652a4055c..a2c978c7d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -291,6 +291,12 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE) +@@ -303,6 +303,12 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE) endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
@@ -42,10 +42,10 @@ index 053b9e3784..2565dc5c84 100644 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) diff --git a/include/grpc/support/port_platform.h b/include/grpc/support/port_platform.h -index 5fb7426af2..24d438d702 100644 +index 04a90fbf8a..6718233782 100644 --- a/include/grpc/support/port_platform.h +++ b/include/grpc/support/port_platform.h -@@ -228,6 +228,7 @@ +@@ -236,6 +236,7 @@ #endif /* _LP64 */ #ifdef __GLIBC__ #define GPR_POSIX_CRASH_HANDLER 1
@@ -53,7 +53,7 @@ index 5fb7426af2..24d438d702 100644 #ifdef __GLIBC_PREREQ #if __GLIBC_PREREQ(2, 12) #define GPR_LINUX_PTHREAD_NAME 1 -@@ -236,6 +237,7 @@ +@@ -244,6 +245,7 @@ // musl libc & others #define GPR_LINUX_PTHREAD_NAME 1 #endif
@@ -62,5 +62,5 @@ index 5fb7426af2..24d438d702 100644 #else /* musl libc */ #define GPR_MUSL_LIBC_COMPAT 1 -- -2.34.1 +2.43.0
package/grpc/0002-Add-option-to-restrict-building-of-host-grpc-to-grpc.patch +47 -30
196 lines not on this page · raw message
package/grpc/0003-disable-unconditionally-downloading-api-repos.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From 2a73f6439b6d745b2cbfff120dc7adc555400247 Mon Sep 17 00:00:00 2001 -From: Michael Nosthoff <[email protected]> -Date: Fri, 22 Jul 2022 08:49:48 +0200 -Subject: [PATCH] disable unconditionally downloading api repos - -The Buildroot build doesn't need those submodules, so disable them hard -for now. - -See https://github.com/grpc/grpc/issues/30385 - -Signed-off-by: Michael Nosthoff <[email protected]> ---- - CMakeLists.txt | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 94f8fd3e93..df43d2e193 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -402,6 +402,7 @@ if(gRPC_BUILD_GRPCPP_OTEL_PLUGIN) - include(cmake/opentelemetry-cpp.cmake) - endif() - -+if(FALSE) - # Setup external proto library at third_party/envoy-api with 2 download URLs - if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api AND gRPC_DOWNLOAD_ARCHIVES) - # Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api. -@@ -478,6 +479,7 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds AND gRPC_DOWNLOAD_ARC - xds-3a472e524827f72d1ad621c4983dd5af54c46776 - ) - endif() -+endif() - - if(WIN32) - set(_gRPC_ALLTARGETS_LIBRARIES ${_gRPC_ALLTARGETS_LIBRARIES} ws2_32 crypt32) --- -2.34.1 -
package/grpc/grpc.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed -sha256 79ed4ab72fa9589b20f8b0b76c16e353e4cfec1d773d33afad605d97b5682c61 grpc-1.66.1.tar.gz +sha256 0af37b800953130b47c075b56683ee60bdc3eda3c37fc6004193f5b569758204 grpc-1.76.0.tar.gz sha256 590198e3f305f2c347fde64d637c65492bbef554db6c8364e149cd375e3797ee LICENSE
package/grpc/grpc.mk +5 -3
@@ -4,7 +4,7 @@ # ################################################################################ -GRPC_VERSION = 1.66.1 +GRPC_VERSION = 1.76.0 GRPC_SITE = $(call github,grpc,grpc,v$(GRPC_VERSION)) GRPC_LICENSE = Apache-2.0, BSD-3-Clause (third_party code), MPL-2.0 (etc/roots.pem) GRPC_LICENSE_FILES = LICENSE
@@ -36,7 +36,8 @@ GRPC_CONF_OPTS = \ -DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \ -DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \ -DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF \ - -DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF + -DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF \ + -DgRPC_DOWNLOAD_ARCHIVES=OFF ifeq ($(BR2_PACKAGE_LIBEXECINFO),y) GRPC_DEPENDENCIES += libexecinfo
@@ -81,7 +82,8 @@ HOST_GRPC_CONF_OPTS = \ -DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \ -DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \ -DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF \ - -DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF + -DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF \ + -DgRPC_DOWNLOAD_ARCHIVES=OFF $(eval $(cmake-package)) $(eval $(host-cmake-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot