summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-04-15 10:49:10 -0700
committerKhem Raj <raj.khem@gmail.com>2023-04-16 07:58:58 -0700
commit56ac2a69a83eed0b32540b133510ec07b7b90320 (patch)
tree0f86db265ff1193fb871d30e75e21c0ee23510ec /meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
parent5564dbb8ff22d9ca4296a68f92f3c9d05fbdf99f (diff)
downloadmeta-openembedded-56ac2a69a83eed0b32540b133510ec07b7b90320.tar.gz
python3-h5py: Fix TMPDIR references in dbg files
These are embedded into comments in C source code generated with cython during do_compile. Fixes WARNING: python3-h5py-3.8.0-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-h5py/3.8.0-r0/h5py/_conv.c in package python3-h5py-src contains reference to TMPDIR File /usr/src/debug/python3-h5py/3.8.0-r0/h5py/h5fd.c in package python3-h5py-src contains reference to TMPDIR [buildpaths] Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb b/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
index 75a41e29dc..3436444695 100644
--- a/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
+++ b/meta-python/recipes-devtools/python/python3-h5py_3.8.0.bb
@@ -21,6 +21,16 @@ DEPENDS = "python3-pkgconfig-native \
21 hdf5 \ 21 hdf5 \
22 " 22 "
23 23
24PACKAGESPLITFUNCS =+ "fix_cythonized_sources"
25
26fix_cythonized_sources() {
27 for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do
28 if [ -e $f ]; then
29 sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f
30 fi
31 done
32}
33
24RDEPENDS:${PN} = "python3-numpy \ 34RDEPENDS:${PN} = "python3-numpy \
25 python3-six \ 35 python3-six \
26 python3-json \ 36 python3-json \