[oe-commits] [openembedded-core] 01/02: python3: fix INCLDIRSTOMAKE in _sysconfigdata.py

git at git.openembedded.org git at git.openembedded.org
Tue Feb 19 16:36:49 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e1a498334018e1f09dd5c4955a978f8d12b2abea
Author: Changqing Li <changqing.li at windriver.com>
AuthorDate: Tue Feb 19 09:10:33 2019 +0800

    python3: fix INCLDIRSTOMAKE in _sysconfigdata.py
    
    recipe glade do_configure failed after python upgrade
    to 3.7.2, it will do runtime check of python headers
    with native python3 under recipe-sysroot-native, it will check under
    path INCLDIRSTOMAKE, but this value is '/usr/include /usr/include
    /usr/include/python3.7m /usr/include/python3.7m', which will cause
    below error:
    
    ERROR: This autoconf log indicates errors, it looked at host include and/or
    library paths while determining system capabilities.
    
    fix it by replace /usr/include to STAGING_INCDIR
    
    Signed-off-by: Changqing Li <changqing.li at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python3_3.7.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3_3.7.2.bb b/meta/recipes-devtools/python/python3_3.7.2.bb
index 8f9d7dc..4a1cbae 100644
--- a/meta/recipes-devtools/python/python3_3.7.2.bb
+++ b/meta/recipes-devtools/python/python3_3.7.2.bb
@@ -124,6 +124,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" \
                 ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list