mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-26 06:10:50 +00:00
python3-pandas: Fix TMPDIR references in dbg files
These are embedded into comments in C source code generated with cython during do_compile. Fixes WARNING: python3-pandas-1.5.3-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pandas/1.5.3-r0/pandas/_libs/hashing.c in package python3-pandas-src contains reference to TMPDIR Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -14,6 +14,16 @@ DEPENDS += " \
|
||||
${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
|
||||
Reference in New Issue
Block a user