summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-04-15 11:04:18 -0700
committerKhem Raj <raj.khem@gmail.com>2023-04-16 07:58:58 -0700
commit1b7380bc0fb523f0cbc2df853846a2dcfebfb2b3 (patch)
tree781cdf727f46cdbc975e6a4343d9ba108259b13c
parent56ac2a69a83eed0b32540b133510ec07b7b90320 (diff)
downloadmeta-openembedded-1b7380bc0fb523f0cbc2df853846a2dcfebfb2b3.tar.gz
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>
-rw-r--r--meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb b/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb
index aa8dfe279d..129c3147cf 100644
--- a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb
@@ -14,6 +14,16 @@ DEPENDS += " \
14 ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \ 14 ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
15" 15"
16 16
17PACKAGESPLITFUNCS =+ "fix_cythonized_sources"
18
19fix_cythonized_sources() {
20 for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do
21 if [ -e $f ]; then
22 sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f
23 fi
24 done
25}
26
17CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations" 27CFLAGS:append:toolchain-clang = " -Wno-error=deprecated-declarations"
18 28
19RDEPENDS:${PN} += " \ 29RDEPENDS:${PN} += " \