summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-11-09 21:21:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-10 14:29:49 +0000
commitb29c66484a9e0532e9e11e1c21be6c3e7eefae8c (patch)
treed17211d8d97ca3df83712f43ad2229a1b9e7fc7a
parent88385340d3ffea6071d18a8ef76138e485a2e6f6 (diff)
downloadpoky-b29c66484a9e0532e9e11e1c21be6c3e7eefae8c.tar.gz
python3: correctly adjust include paths in sysconfigdata
This was replacing /usr/include regardless of whether it was at the beginning of the full path (correct, when building target python3), or in the middle of it (not correct, when building native or nativesdk python). Through various reasons we haven't been bitten by this until now, but latest setuptools does expose the problem with for example nativesdk-python3-cffi and nativesdk-python3-cryptography which both fail without this fix. I am not aware of anything using INCLDIRSTOMAKE, and it is harder to adjust correctly due to the value being a list; if something is using it, we can look at it specifically. (From OE-Core rev: 4055dd6cc89af16b3723e38b63d4d81efb0e2286) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3_3.11.0.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.11.0.bb b/meta/recipes-devtools/python/python3_3.11.0.bb
index 6b6c983abf..92a1f69320 100644
--- a/meta/recipes-devtools/python/python3_3.11.0.bb
+++ b/meta/recipes-devtools/python/python3_3.11.0.bb
@@ -186,8 +186,8 @@ do_install:append() {
186 -e "s,^ 'LIBDIR'.*, 'LIBDIR': '${STAGING_LIBDIR}'\,,g" \ 186 -e "s,^ 'LIBDIR'.*, 'LIBDIR': '${STAGING_LIBDIR}'\,,g" \
187 -e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ 187 -e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
188 -e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ 188 -e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
189 -e "/^ 'INCLDIRSTOMAKE'/{N; s,/usr/include,${STAGING_INCDIR},g}" \ 189 -e "s,^ 'INCLUDEPY'.*, 'INCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
190 -e "/^ 'INCLUDEPY'/s,/usr/include,${STAGING_INCDIR},g" \ 190 -e "s,^ 'CONFINCLUDEPY'.*, 'CONFINCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
191 -e "s,${B},/build/path/unavailable/,g" \ 191 -e "s,${B},/build/path/unavailable/,g" \
192 $sysconfigfile 192 $sysconfigfile
193 cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py 193 cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py