mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
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>
This commit is contained in:
@@ -21,6 +21,16 @@ DEPENDS = "python3-pkgconfig-native \
|
|||||||
hdf5 \
|
hdf5 \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PACKAGESPLITFUNCS =+ "fix_cythonized_sources"
|
||||||
|
|
||||||
|
fix_cythonized_sources() {
|
||||||
|
for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do
|
||||||
|
if [ -e $f ]; then
|
||||||
|
sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
RDEPENDS:${PN} = "python3-numpy \
|
RDEPENDS:${PN} = "python3-numpy \
|
||||||
python3-six \
|
python3-six \
|
||||||
python3-json \
|
python3-json \
|
||||||
|
|||||||
Reference in New Issue
Block a user