16 Commits

Author SHA1 Message Date
Khem Raj
40d9226034 grpc: Link with libatomic on riscv
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e82f1802a60d451f978cdef0f2ff69feb1f12039)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-01-30 18:34:36 -08:00
Khem Raj
a82494272d grpc: Link with libatomic on powerpc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2b8c1fa1cbfa21fc0044a172fffa5986a0fd4ad0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-01-30 18:34:21 -08:00
Khem Raj
189ba6b499 grpc: Link with libatomic on clang/x86
clang does delegate the atomic<double> calls to libatomic on x86 where
as gcc tries to use intrinsics, its debatable who is right, but it does
seem that clang is safe in case pointer is unaligned

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f7a7a2aafe87437aefca21612dc156fde645ac89)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-01-30 18:33:45 -08:00
Khem Raj
c61c89918e grpc: Define libdir and cmakedir in terms of multilib
This helps in avoiding packaging errors seen with distros enabling
multilib

Fixes

ERROR: grpc-1.24.3-r0 do_package: QA Issue: grpc: Files/directories were installed but not shipped in any package:
  /usr/lib/libgrpc++.so.1.24.3
  ...
  /usr/lib/cmake
  /usr/lib/cmake/grpc
  /usr/lib/cmake/grpc/gRPCConfigVersion.cmake
  /usr/lib/cmake/grpc/gRPCConfig.cmake
  /usr/lib/cmake/grpc/gRPCTargets-noconfig.cmake
  /usr/lib/cmake/grpc/gRPCTargets.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or de
lete them within do_install.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e18d8c957034908f27350e6ffcae2a3d05a4387b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-01-05 14:43:51 -08:00
Khem Raj
1ede5a0c18 grpc: Update to 1.24.1
upb dependency needs to fed as source, since it lacks the CMake based
external module builds like some other deps

Forward port the cross lib installation patch

Drop gettid patch as it was a backport which is in this revision

Link with libatomic on mips

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-08 00:54:56 -07:00
Gianfranco Costamagna
26ca085411 grpc: Change gettid patch with the upstream merged version
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-06 08:40:59 -07:00
Gianfranco Costamagna
0c05d49877 grpc: don't use unexisting gettid function on glibc 2.29, it has been implemented only in 2.30
https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92
Signed-off-by: Francesco Mocci <francesco.mocci@abinsula.com>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-06 08:40:59 -07:00
Khem Raj
cac734087e grpc: Update to 1.22.0
Fix build with glibc 2.30
Forward port patches
Add versioiniing to grpcpp_channelz plugin

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-08 10:04:23 -07:00
Douglas Royds
bafc47841a grpc: DEPENDS on googletest
The gtest and gmock projects were combined under googletest in 2015,
and the former gtest recipe has now been renamed to googletest.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-10 09:24:32 -07:00
Jan Kaisrlik
f72160a3dc grpc: fix grpc_cpp_plugin interpfor nativesdk
When building grpc for nativesdk the project tries to execute the
nativesdk grpc_cpp_plugin instead of the host one. Apply the patch
fixing the cross-compilation for nativesdk build and modify its
contents to reflect its new purpose.

Also: add grpc-native to dependencies.

Signed-off-by: Hiram Lew <lew@avast.com>
Signed-off-by: Jan Kaisrlik <jan.kaisrlik@avast.com>
Signed-off-by: Lukas Karas <karas@avast.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-10 08:53:21 -07:00
Khem Raj
08ab868140 grpc-native: Fix buld on ubuntu 14.04 with gcc 4.8
Fixes a compiler error

terminate called after throwing an instance of 'std::system_error'
  what():  Enable multithreading to use std:🧵 Operation not
permitted

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-29 02:10:12 -07:00
Jens Rehsack
948a85f85f 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 <sno@netbsd.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-28 09:37:49 -07:00
Trevor Woerner
5009a6e631 grpc: variable cleanup
Reorder recipe variables according to:

	https://www.openembedded.org/wiki/Styleguide

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-29 12:56:19 -07:00
Trevor Woerner
108f7703a3 grpc: rely on cmake.bbclass to put cmake package files in dev package
The cmake.bbclass in oe-core now ensures that ${libdir}/cmake and
${datadir}/cmake end up in the dev package, so recipes no longer need to
provide custom packaging rules to handles these files.

	http://git.openembedded.org/openembedded-core/commit/?id=d91dc4666683a96e9d03cbbd21b8a546f9069c93

Originally-conceived-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-29 09:12:20 -07:00
Trevor Woerner
46424e8d3e grpc: switch away from github archive
Since we know that github archives which are automatically generated have a
tendency to change their checksums[1], switch to using a git clone.

[1] http://lists.openembedded.org/pipermail/openembedded-devel/2017-September/114916.html

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-23 15:32:05 -07:00
Armin Kuster
251878e8b6 grpc: move it from oe to networking layer
grpc has dependancy on meta-networking packages.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-05-17 08:32:26 -07:00