mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-27 12:01:38 +01:00
These grpc python modules contain parts of grpc core.
Each CVE needs to be assessed if the patch applies also to core parts
included in each module.
Note that so far there was never a CVE specific for python module, only
for grpc:grpc and many of those needed to be fixed at leasts in grpcio:
sqlite> select vendor, product, count(*) from products where product like '%grpc%' group by vendor, product;
grpc|grpc|21
grpck|grpck|1
linuxfoundation|grpc_swift|9
microsoft|grpconv|1
opentelemetry|configgrpc|1
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f993cb2ecb)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
53 lines
1.6 KiB
Clojure
53 lines
1.6 KiB
Clojure
DESCRIPTION = "Google gRPC"
|
|
HOMEPAGE = "http://www.grpc.io/"
|
|
SECTION = "devel/python"
|
|
LICENSE = "Apache-2.0 & BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=6e4cf218112648d22420a84281b68b88"
|
|
|
|
DEPENDS += "${PYTHON_PN}-protobuf"
|
|
|
|
SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch"
|
|
SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \
|
|
file://boring_ssl.patch \
|
|
file://mips_bigendian.patch \
|
|
file://0001-absl-always-use-asm-sgidefs.h.patch \
|
|
file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \
|
|
"
|
|
SRC_URI[sha256sum] = "ff2c8b965b0fc25cf281961aa46619c10900543effe3f806ef818231c40aaff3"
|
|
|
|
RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \
|
|
${PYTHON_PN}-setuptools \
|
|
${PYTHON_PN}-six \
|
|
"
|
|
|
|
inherit setuptools3
|
|
inherit pypi
|
|
|
|
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"
|
|
|
|
BORING_SSL_PLATFORM:arm = "linux-arm"
|
|
BORING_SSL_PLATFORM:x86-64 = "linux-x86_64"
|
|
BORING_SSL_PLATFORM ?= "unsupported"
|
|
export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}"
|
|
|
|
BORING_SSL:x86-64 = "1"
|
|
BORING_SSL:arm = "1"
|
|
BORING_SSL ?= "0"
|
|
export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}"
|
|
|
|
do_compile:prepend() {
|
|
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="${@oe.utils.parallel_make(d, False)}"
|
|
}
|
|
|
|
GRPC_CFLAGS ?= ""
|
|
GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions"
|
|
export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}"
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
CVE_PRODUCT += "grpc:grpc"
|
|
|
|
CCACHE_DISABLE = "1"
|