diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2025-06-24 11:06:00 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2025-07-06 19:46:44 -0400 |
| commit | f69d50cfe0358296cc7a457dc38ca99802b988c9 (patch) | |
| tree | 8dccc87c485d252ffe771753ce8931747c7e6c86 /meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb | |
| parent | 7c3e7a6d5ddca67cddb1c493620c38a32dc36463 (diff) | |
| download | meta-openembedded-f69d50cfe0358296cc7a457dc38ca99802b988c9.tar.gz | |
python3-protobuf: upgrade from 4.25.3 to 4.25.8
protobuf has upgraded to 4.25.8. Sync with it.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb b/meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb new file mode 100644 index 0000000000..aca30efdee --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-protobuf_4.25.8.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | DESCRIPTION = "Protocol Buffers" | ||
| 2 | HOMEPAGE = "https://developers.google.com/protocol-buffers/" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | |||
| 5 | LICENSE = "BSD-3-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d" | ||
| 7 | |||
| 8 | inherit pypi setuptools3 | ||
| 9 | SRC_URI[sha256sum] = "6135cf8affe1fc6f76cced2641e4ea8d3e59518d1f24ae41ba97bcad82d397cd" | ||
| 10 | |||
| 11 | # http://errors.yoctoproject.org/Errors/Details/184715/ | ||
| 12 | # Can't find required file: ../src/google/protobuf/descriptor.proto | ||
| 13 | CLEANBROKEN = "1" | ||
| 14 | |||
| 15 | UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" | ||
| 16 | |||
| 17 | DEPENDS += "protobuf" | ||
| 18 | |||
| 19 | RDEPENDS:${PN} += " \ | ||
| 20 | python3-datetime \ | ||
| 21 | python3-json \ | ||
| 22 | python3-logging \ | ||
| 23 | python3-netclient \ | ||
| 24 | python3-numbers \ | ||
| 25 | python3-pkgutil \ | ||
| 26 | python3-unittest \ | ||
| 27 | " | ||
| 28 | |||
| 29 | # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) | ||
| 30 | BBCLASSEXTEND = "native nativesdk" | ||
| 31 | |||
| 32 | DISTUTILS_BUILD_ARGS += "--cpp_implementation" | ||
| 33 | DISTUTILS_INSTALL_ARGS += "--cpp_implementation" | ||
| 34 | |||
| 35 | do_compile:prepend:class-native () { | ||
| 36 | export KOKORO_BUILD_NUMBER="1" | ||
| 37 | } | ||
| 38 | |||
| 39 | do_install:append () { | ||
| 40 | # Remove useless and problematic .pth file. python3-protobuf is installed in the standard | ||
| 41 | # location of site packages. No need for such .pth file. | ||
| 42 | # NOTE: do not drop this removal until the following issue in upstream cpython is resolved: | ||
| 43 | # https://github.com/python/cpython/issues/122220 | ||
| 44 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/protobuf-*-nspkg.pth | ||
| 45 | } | ||
