meta-openembedded/meta-python/recipes-devtools/python/python-grpcio_1.7.0.bb
Derek Straka b938015398 python-grpcio: only modify the compiler arguments on the target build
The modification of the compiler flags causes issues with the native builds of the package:

src/core/lib/surface/lame_client.cc: In function ‘grpc_channel* grpc_lame_client_channel_create(const char*, grpc_status_code, const char*)’:
src/core/lib/surface/lame_client.cc:178:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
    auto chand = reinterpret_cast<grpc_core::ChannelData *>(elem->channel_data);
    ^
src/core/lib/surface/lame_client.cc:178:8: error: ‘chand’ does not name a type
    auto chand = reinterpret_cast<grpc_core::ChannelData *>(elem->channel_data);

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-30 09:13:32 -08:00

26 lines
791 B
BlitzBasic

DESCRIPTION = "Google gRPC"
HOMEPAGE = "http://www.grpc.io/"
SECTION = "devel/python"
DEPENDS = "python-protobuf"
SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch "
RDEPENDS_${PN} = "python-enum34 \
python-futures \
python-protobuf \
python-setuptools \
python-six \
"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
inherit pypi setuptools
SRC_URI[md5sum] = "b564632793132fd35cdff984d6b309b0"
SRC_URI[sha256sum] = "6662af1f07cf7a3d171a7f56afc2cfeff262a5f2c52d15ae5ea581d0c367aea8"
# For usage in other recipes when compiling protobuf files (e.g. by grpcio-tools)
BBCLASSEXTEND = "native"