diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-09-24 13:07:39 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-25 11:09:04 +0100 |
| commit | 52df55540552c95418cece372cf2cda9a8beac56 (patch) | |
| tree | 93fde371d5d0fe26f1b2779064bb501aa08f6783 | |
| parent | 9e8e9a6a4b941729768b27841f2637347a538a4a (diff) | |
| download | poky-52df55540552c95418cece372cf2cda9a8beac56.tar.gz | |
classes/cython: also process .cpp files
Some Python packages, such as python3-frozenlist, generate .cpp files
with cython so we should also process those.
Frustratingly this doesn't actually solve the reproducible problem with
frozenlist as the path is a temporary directory...
(From OE-Core rev: 07f156731a9dd7cade56e1d64444dafa18f57e6f)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/cython.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cython.bbclass b/meta/classes-recipe/cython.bbclass index dd9fc732bc..9ae7a29134 100644 --- a/meta/classes-recipe/cython.bbclass +++ b/meta/classes-recipe/cython.bbclass | |||
| @@ -4,5 +4,5 @@ do_compile[postfuncs] = "strip_cython_metadata" | |||
| 4 | strip_cython_metadata() { | 4 | strip_cython_metadata() { |
| 5 | # Remove the Cython Metadata headers that we don't need after the build, and | 5 | # Remove the Cython Metadata headers that we don't need after the build, and |
| 6 | # may contain build paths. | 6 | # may contain build paths. |
| 7 | find ${S} -name "*.c" -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" | 7 | find ${S} \( -name "*.c" -o -name "*.cpp" \) -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" |
| 8 | } | 8 | } |
