All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/5] python3: correctly adjust include paths in sysconfigdata
@ 2022-11-09 20:21 Alexander Kanavin
  2022-11-09 20:21 ` [PATCH v2 2/5] python3: use the standard shell version of python3-config Alexander Kanavin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Alexander Kanavin @ 2022-11-09 20:21 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

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.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-devtools/python/python3_3.11.0.bb | 4 ++--
 1 file 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() {
                 -e "s,^ 'LIBDIR'.*, 'LIBDIR': '${STAGING_LIBDIR}'\,,g" \
                 -e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
                 -e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
-                -e "/^ 'INCLDIRSTOMAKE'/{N; s,/usr/include,${STAGING_INCDIR},g}" \
-                -e "/^ 'INCLUDEPY'/s,/usr/include,${STAGING_INCDIR},g" \
+                -e "s,^ 'INCLUDEPY'.*, 'INCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
+                -e "s,^ 'CONFINCLUDEPY'.*, 'CONFINCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
                 -e "s,${B},/build/path/unavailable/,g" \
                 $sysconfigfile
         cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-26 20:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 20:21 [PATCH v2 1/5] python3: correctly adjust include paths in sysconfigdata Alexander Kanavin
2022-11-09 20:21 ` [PATCH v2 2/5] python3: use the standard shell version of python3-config Alexander Kanavin
2022-11-09 20:21 ` [PATCH v2 3/5] python3targetconfig.bbclass: use PYTHONPATH to point to the target config Alexander Kanavin
2022-11-09 20:21 ` [PATCH v2 4/5] vala: install vapigen-wrapper into /usr/bin/crosscripts and stage only that Alexander Kanavin
2022-11-09 20:21 ` [PATCH v2 5/5] sanity.bbclass: do not check for presence of distutils Alexander Kanavin
2024-02-26 20:30   ` [OE-core] " Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.