The Boost build system executes Python in the compile task to
import the Numpy module and print the include directory.

We must specify the python3-native executable in the user-config.jam
so that the python.jam can execute it properly.

Without this change, it specifies a non-existant python executable
and reports "No such file or directory" in log.do_compile.

Signed-off-by: Rob Woolley <[email protected]>
---
 meta/recipes-support/boost/boost.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/boost/boost.inc 
b/meta/recipes-support/boost/boost.inc
index 7a343e54f6..a718a735dd 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -173,7 +173,7 @@ do_configure() {
 
        # If we want Python then we need to tell Boost *exactly* where to find 
it
        if ${@bb.utils.contains('BOOST_LIBS', 'python', 'true', 'false', d)}; 
then
-               echo "using python : ${PYTHON_BASEVERSION} : 
${STAGING_DIR_HOST}${bindir}/python3 : 
${STAGING_DIR_HOST}${includedir}/${PYTHON_DIR}${PYTHON_ABI} : 
${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR} ;" >> ${WORKDIR}/user-config.jam
+               echo "using python : ${PYTHON_BASEVERSION} : 
${STAGING_DIR_NATIVE}${bindir}/python3-native/python3 : 
${STAGING_DIR_HOST}${includedir}/${PYTHON_DIR}${PYTHON_ABI} : 
${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR} ;" >> ${WORKDIR}/user-config.jam
        fi
 
        if ${@bb.utils.contains('BOOST_LIBS', 'mpi', 'true', 'false', d)}; then

-- 
2.49.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243140): 
https://lists.openembedded.org/g/openembedded-core/message/243140
Mute This Topic: https://lists.openembedded.org/mt/120688983/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to