grpc: update from 1.8.5 -> 1.14.1
PATCH v3 1/1 grpc: update from 1.8.5 -> 1.14.1
Update gRPC to 1.14.1 and fix cause for issues like
https://stackoverflow.com/questions/49975541/how-to-port-grpc-helloworldcpp-example-on-yocto
For release notes check https://github.com/grpc/grpc/releases
Signed-off-by Jens Rehsack <[email protected]>
---
...ix-grpc_cpp_plugin-path-during-cross.patch | 8 +--
...Fix-libraries-installation-for-Linux.patch | 61 ++++++++++---------
...-Find-c-ares-in-target-sysroot-alone.patch | 42 -------------
.../grpc/{grpc_1.8.5.bb => grpc_1.14.1.bb} | 14 +++--
4 files changed, 46 insertions(+), 79 deletions(-)
delete mode 100644 meta-networking/recipes-devtools/grpc/grpc/0004-CMakeLists.txt-Find-c-ares-in-target-sysroot-alone.patch
rename meta-networking/recipes-devtools/grpc/{grpc_1.8.5.bb => grpc_1.14.1.bb} (80%)meta-networking/recipes-devtools/grpc/grpc/0001-CMakeLists.txt-Fix-grpc_cpp_plugin-path-during-cross.patch +4 -4
@@ -14,7 +14,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt index f9cd630..9663934 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -328,6 +328,13 @@ function(protobuf_generate_grpc_cpp) +@@ -170,6 +170,13 @@ function(protobuf_generate_grpc_cpp) return() endif()
@@ -25,7 +25,7 @@ index f9cd630..9663934 100644 + set(gRPC_CPP_PLUGIN $<TARGET_FILE:grpc_cpp_plugin>) + endif() + - set(_protobuf_include_path -I . -I ${PROTOBUF_WELLKNOWN_IMPORT_DIR}) + set(_protobuf_include_path -I . -I ${_gRPC_PROTOBUF_WELLKNOWN_INCLUDE_DIR}) foreach(FIL ${ARGN}) get_filename_component(ABS_FIL ${FIL} ABSOLUTE) @@ -345,7 +352,7 @@ function(protobuf_generate_grpc_cpp)
@@ -41,7 +41,7 @@ diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.templa index 64daf04..a7e8629 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template -@@ -373,6 +373,13 @@ +@@ -209,6 +209,13 @@ return() endif()
@@ -52,7 +52,7 @@ index 64daf04..a7e8629 100644 + set(gRPC_CPP_PLUGIN $<TARGET_FILE:grpc_cpp_plugin>) + endif() + - set(_protobuf_include_path -I . -I <%text>${PROTOBUF_WELLKNOWN_IMPORT_DIR}</%text>) + set(_protobuf_include_path -I . -I <%text>${_gRPC_PROTOBUF_WELLKNOWN_INCLUDE_DIR}</%text>) foreach(FIL <%text>${ARGN}</%text>) get_filename_component(ABS_FIL <%text>${FIL}</%text> ABSOLUTE) @@ -390,7 +397,7 @@
meta-networking/recipes-devtools/grpc/grpc/0001-CMakeLists.txt-Fix-libraries-installation-for-Linux.patch +33 -28
151 lines not on this page · raw message
meta-networking/recipes-devtools/grpc/grpc/0004-CMakeLists.txt-Find-c-ares-in-target-sysroot-alone.patch deleted +0 -42
42 lines not on this page · raw message
meta-networking/recipes-devtools/grpc/grpc_1.14.1.bb renamed from meta-networking/recipes-devtools/grpc/grpc_1.8.5.bb +9 -5
@@ -10,11 +10,10 @@ DEPENDS = "gflags c-ares protobuf protobuf-native protobuf-c protobuf-c-native o DEPENDS_append_class-target = " gtest grpc-native " S = "${WORKDIR}/git" -SRCREV = "db68cb3652cc7697647e9934b5316d98a6ba04d1" -BRANCH = "v1.8.x" +SRCREV = "d8020cb6daa87f1a3bb3b0c299bc081c4a3de1e8" +BRANCH = "v1.14.x" SRC_URI = "git://github.com/grpc/grpc.git;protocol=https;branch=${BRANCH} \ file://0001-CMakeLists.txt-Fix-libraries-installation-for-Linux.patch \ - file://0004-CMakeLists.txt-Find-c-ares-in-target-sysroot-alone.patch \ " SRC_URI_append_class-target = " file://0001-CMakeLists.txt-Fix-grpc_cpp_plugin-path-during-cross.patch"
@@ -26,8 +25,13 @@ EXTRA_OECMAKE = " \ -DgRPC_SSL_PROVIDER=package \ -DgRPC_PROTOBUF_PROVIDER=package \ -DgRPC_GFLAGS_PROVIDER=package \ - -DgRPC_INSTALL=1 \ + -DgRPC_INSTALL=ON \ + -DCMAKE_CROSSCOMPILING=ON \ -DBUILD_SHARED_LIBS=ON \ " -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" + +SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" + +FILES_${PN}-dev += "${bindir}"
Signature · 1 line
2.17.1