_mask.c is generated by cython and encodes sourcepaths into
comments which are absolute. Edit them out.

Fixes buildpaths QA errors

Signed-off-by: Khem Raj <[email protected]>
---
 .../recipes-devtools/python/python3-pycocotools_2.0.8.bb      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb 
b/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb
index 7226f0fb81..4d4251316c 100644
--- a/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb
+++ b/meta-python/recipes-devtools/python/python3-pycocotools_2.0.8.bb
@@ -11,3 +11,7 @@ SRC_URI[sha256sum] = 
"8f2bcedb786ba26c367a3680f9c4eb5b2ad9dccb2b34eaeb205e0a021e
 
 DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt"
 RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile"
+
+do_compile:append() {
+    sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" 
${B}/pycocotools/_mask.c
+}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#111920): 
https://lists.openembedded.org/g/openembedded-devel/message/111920
Mute This Topic: https://lists.openembedded.org/mt/108075515/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to