Skip to contentSkip to conversation

bump grpc to 1.32

PATCH Superseded Michael Nosthoff 2 participants 6 messages Sep 11, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover bump grpc to 1.32

this series bumps grpc and its dependencies

- libabseil with two patchreleases
- protobuf 3.13
- grpc 1.32

Tested with grpc.config:

BR2_PACKAGE_OPENSSL=y
BR2_PACKAGE_GRPC=y

on Ubuntu 20.04, gcc 9.3.0

./utils/test-pkg -c grpc.config -p grpc
br-arm-full [1/6]: OK
br-arm-cortex-a9-glibc [2/6]: OK
br-arm-cortex-m4-full [3/6]: SKIPPED
br-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: SKIPPED
sourcery-arm [6/6]: OK

Michael Nosthoff (3):
package/libabseil-cpp: bump to 20200225.2
package/protobuf: bump version to 3.13
package/grpc: bump version to 1.32

 .../grpc/0001-target-build-using-host-plugin.patch    |  4 ++--
 ...-detect-the-availability-of-pthread_setname_.patch |  4 ++--
 package/grpc/grpc.hash                                |  2 +-
 package/grpc/grpc.mk                                  | 11 ++++++-----
 package/libabseil-cpp/libabseil-cpp.hash              |  2 +-
 package/libabseil-cpp/libabseil-cpp.mk                |  2 +-
 package/protobuf/protobuf.hash                        |  2 +-
 package/protobuf/protobuf.mk                          |  2 +-
 8 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/3 package/libabseil-cpp: bump to 20200225.2

patch release with two bugfixes
- fixes the list of dependencies of absl::Cord in the CMake build
- bug fix for absl::Status::ErasePayload

---
 package/libabseil-cpp/libabseil-cpp.hash | 2 +-
 package/libabseil-cpp/libabseil-cpp.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libabseil-cpp/libabseil-cpp.hash +1 -1
index 7f0b5fc394..fef96833de 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  728a813291bdec2aa46eab8356ace9f75ac2ed9dfe2df5ab603c4e6c09f1c353  libabseil-cpp-20200225.tar.gz
+sha256  f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111  libabseil-cpp-20200225.2.tar.gz
 sha256  c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747  LICENSE
package/libabseil-cpp/libabseil-cpp.mk +1 -1
index 92cbb0051d..6ca33535eb 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBABSEIL_CPP_VERSION = 20200225
+LIBABSEIL_CPP_VERSION = 20200225.2
 LIBABSEIL_CPP_SITE = $(call github,abseil,abseil-cpp,$(LIBABSEIL_CPP_VERSION))
 LIBABSEIL_CPP_LICENSE = Apache-2.0
 LIBABSEIL_CPP_LICENSE_FILES = LICENSE
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/3 package/protobuf: bump version to 3.13

In reply to Michael Nosthoff
---
 package/protobuf/protobuf.hash | 2 +-
 package/protobuf/protobuf.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/protobuf/protobuf.hash +1 -1
index aa9d871561..c11f54edc3 100644
@@ -1,3 +1,3 @@
 # Locally calculated
 sha256  6e5e117324afd944dcf67f36cf329843bc1a92229a8cd9bb573d7a83130fea7d  LICENSE
-sha256  ccfbaaba52f67e0e6536a05f3df3f6618620d255513cfca3a07f5935b624e26b  protobuf-cpp-3.12.4.tar.gz
+sha256  f8a547dfe143a9f61fadafba47fa6573713a33cb80909307c1502e26e1102298  protobuf-cpp-3.13.0.tar.gz
package/protobuf/protobuf.mk +1 -1
index 04fea3063e..2395221313 100644
@@ -7,7 +7,7 @@
 # When bumping this package, make sure to also verify if the
 # python-protobuf package still works, as they share the same
 # version/site variables.
-PROTOBUF_VERSION = 3.12.4
+PROTOBUF_VERSION = 3.13.0
 PROTOBUF_SOURCE = protobuf-cpp-$(PROTOBUF_VERSION).tar.gz
 PROTOBUF_SITE = https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)
 PROTOBUF_LICENSE = BSD-3-Clause
Signature · 1 line
2.25.1
#5 lore raw

PATCH 3/3 package/grpc: bump version to 1.32

In reply to Michael Nosthoff

- order dependencies alphabetically
- update hash
- alter patch offsets

---
 .../grpc/0001-target-build-using-host-plugin.patch    |  4 ++--
 ...-detect-the-availability-of-pthread_setname_.patch |  4 ++--
 package/grpc/grpc.hash                                |  2 +-
 package/grpc/grpc.mk                                  | 11 ++++++-----
 4 files changed, 11 insertions(+), 10 deletions(-)
package/grpc/0001-target-build-using-host-plugin.patch +2 -2
index 5b3c6a6fae..c6de0c1831 100644
@@ -20,7 +20,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
 index be695c2..45c2fcb 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -11043,6 +11043,18 @@ target_link_libraries(grpc_cli
+@@ -11199,6 +11199,18 @@ target_link_libraries(grpc_cli
  endif()
  if(gRPC_BUILD_CODEGEN AND gRPC_BUILD_GRPC_CPP_PLUGIN)
  
@@ -39,7 +39,7 @@ index be695c2..45c2fcb 100644
  add_executable(grpc_cpp_plugin
    src/compiler/cpp_plugin.cc
  )
-@@ -11077,6 +11089,7 @@ if(gRPC_INSTALL)
+@@ -11233,6 +11245,7 @@ if(gRPC_INSTALL)
      ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
    )
  endif()
package/grpc/0002-Properly-detect-the-availability-of-pthread_setname_.patch +2 -2
index c8b1dc8e73..32493ac1a0 100644
@@ -20,7 +20,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
 index 45c2fcb..0b2be4f 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -180,6 +180,12 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
+@@ -208,6 +208,12 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
  endif()
  list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
  
@@ -37,7 +37,7 @@ diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codeg
 index 4f213ff..55ecd9d 100644
 --- a/include/grpc/impl/codegen/port_platform.h
 +++ b/include/grpc/impl/codegen/port_platform.h
-@@ -163,7 +163,9 @@
+@@ -168,7 +168,9 @@
  #endif /* _LP64 */
  #ifdef __GLIBC__
  #define GPR_POSIX_CRASH_HANDLER 1
package/grpc/grpc.hash +1 -1
index 20368068d9..3a2dbe2d8a 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  1236514199d3deb111a6dd7f6092f67617cd2b147f7eda7adbafccea95de7381  grpc-1.31.0.tar.gz
+sha256  f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a  grpc-1.32.0.tar.gz
 sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE
package/grpc/grpc.mk +6 -5
index 2114f98e40..f7a731b8a1 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-GRPC_VERSION = 1.31.0
+GRPC_VERSION = 1.32.0
 GRPC_SITE = $(call github,grpc,grpc,v$(GRPC_VERSION))
 GRPC_LICENSE = Apache-2.0
 GRPC_LICENSE_FILES = LICENSE
@@ -12,7 +12,7 @@ GRPC_LICENSE_FILES = LICENSE
 GRPC_INSTALL_STAGING = YES
 
 # Need to use host grpc_cpp_plugin during cross compilation.
-GRPC_DEPENDENCIES = c-ares host-grpc openssl protobuf re2 zlib libabseil-cpp
+GRPC_DEPENDENCIES = c-ares host-grpc libabseil-cpp openssl protobuf re2 zlib
 HOST_GRPC_DEPENDENCIES = host-c-ares host-libabseil-cpp host-openssl host-protobuf \
 	host-re2 host-zlib
 
@@ -21,13 +21,13 @@ HOST_GRPC_DEPENDENCIES = host-c-ares host-libabseil-cpp host-openssl host-protob
 # which doesn't do this.  These CARES settings trick the gRPC cmake code into
 # not looking for c-ares at all and yet still linking with the library.
 GRPC_CONF_OPTS = \
+	-DgRPC_ABSL_PROVIDER=package \
 	-D_gRPC_CARES_LIBRARIES=cares \
 	-DgRPC_CARES_PROVIDER=none \
 	-DgRPC_PROTOBUF_PROVIDER=package \
 	-DgRPC_RE2_PROVIDER=package \
 	-DgRPC_SSL_PROVIDER=package \
 	-DgRPC_ZLIB_PROVIDER=package \
-	-DgRPC_ABSL_PROVIDER=package \
 	-DgRPC_NATIVE_CPP_PLUGIN=$(HOST_DIR)/bin/grpc_cpp_plugin
 
 # grpc can use __atomic builtins, so we need to link with
@@ -64,13 +64,14 @@ GRPC_CONF_OPTS += \
 	-DCMAKE_CXX_FLAGS="$(GRPC_CXXFLAGS)"
 
 HOST_GRPC_CONF_OPTS = \
+	-DgRPC_ABSL_PROVIDER=package \
 	-D_gRPC_CARES_LIBRARIES=cares \
 	-DgRPC_CARES_PROVIDER=none \
 	-DgRPC_PROTOBUF_PROVIDER=package \
 	-DgRPC_RE2_PROVIDER=package \
 	-DgRPC_SSL_PROVIDER=package \
-	-DgRPC_ZLIB_PROVIDER=package \
-	-DgRPC_ABSL_PROVIDER=package
+	-DgRPC_ZLIB_PROVIDER=package
+
 
 $(eval $(cmake-package))
 $(eval $(host-cmake-package))
Signature · 1 line
2.25.1
#3 lore raw

PATCH 2/3 package/protobuf: bump version to 3.13

In reply to Michael Nosthoff
Quoted 20 lines · On Fri, 11 Sep 2020 15:29:07 +0200 Michael Nosthoff via buildroot…
---
 package/protobuf/protobuf.hash | 2 +-
 package/protobuf/protobuf.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/protobuf/protobuf.hash +1 -1
index aa9d871561..c11f54edc3 100644
@@ -1,3 +1,3 @@
 # Locally calculated
 sha256  6e5e117324afd944dcf67f36cf329843bc1a92229a8cd9bb573d7a83130fea7d  LICENSE
-sha256  ccfbaaba52f67e0e6536a05f3df3f6618620d255513cfca3a07f5935b624e26b  protobuf-cpp-3.12.4.tar.gz
+sha256  f8a547dfe143a9f61fadafba47fa6573713a33cb80909307c1502e26e1102298  protobuf-cpp-3.13.0.tar.gz
package/protobuf/protobuf.mk +0 -0
index 04fea3063e..2395221313 100644

package/protobuf/protobuf.mk line 10

Quoted 5 lines
package/protobuf/protobuf.mk +1 -1
@@ -7,7 +7,7 @@
 # When bumping this package, make sure to also verify if the
 # python-protobuf package still works, as they share the same
 # version/site variables.
-PROTOBUF_VERSION = 3.12.4
+PROTOBUF_VERSION = 3.13.0

You need to update package/python-protobuf/python-protobuf.hash as well. We should actually update the comment above to make this clear.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 2/3 package/protobuf: bump version to 3.13

Hi,

Quoted 12 lines · Thomas Petazzoni

package/protobuf/protobuf.mk line 10

Quoted 5 lines · On Fri, 11 Sep 2020 15:29:07 +0200 Michael Nosthoff via buildroot…

# When bumping this package, make sure to also verify if the

 # python-protobuf package still works, as they share the same
 # version/site variables.
package/protobuf/protobuf.mk +1 -1
-PROTOBUF_VERSION = 3.12.4
+PROTOBUF_VERSION = 3.13.0

You need to update package/python-protobuf/python-protobuf.hash as well. We should actually update the comment above to make this clear.

Oops, that slipped me. I'll update this as well.

What I noticed: the python-protobuf description contains a link to the protobuf-c project [0]. Which is, from what I take from the description on its website, an independently developed project. So it doesn't seem to have a connection to the python package. Wouldn't it make more sense to put the link to the google protobuf site [1] as it is in the protobuf package?

Regards,
Michael

[0] https://github.com/protobuf-c/protobuf-c
[1] https://developers.google.com/protocol-buffers