python-native: export some environment variables
PATCH 1/1 python-native: export some environment variables
Need to export these environment variables for python-config to work.
--- meta/classes/pythonnative.bbclass | 4 ++++ 1 file changed, 4 insertions(+)
meta/classes/pythonnative.bbclass +4 -0
@@ -4,3 +4,7 @@ inherit python-dir PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" EXTRANATIVEPATH += "${PYTHON_PN}-native" DEPENDS += " ${PYTHON_PN}-native " +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS
Signature · 1 line
1.7.9.5
Quoted 2 lines · Chong Lu
Need to export these environment variables for python-config to work.
Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?
Sau!
Quoted 18 lines
Signed-off-by Chong Lu <[email protected]>--- meta/classes/pythonnative.bbclass | 4 ++++ 1 file changed, 4 insertions(+)meta/classes/pythonnative.bbclass +4
-0@@ -4,3 +4,7 @@ inherit python-dir PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" EXTRANATIVEPATH += "${PYTHON_PN}-native" DEPENDS += " ${PYTHON_PN}-native " +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS
Quoted 7 lines · Saul Wold
Quoted 2 lines · Chong Lu
Need to export these environment variables for python-config to work.
Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?
Sau!
checking for python script directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
PREFIX = os.path.normpath(sys.prefix).replace(
os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
${libdir}/python2.7/site-packages
checking for python extension module directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
PREFIX = os.path.normpath(sys.prefix).replace(
os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
Above error comes from some packages' do_configure log. This error doesn't block building.
Some packages export above env variables in bb file, but someone not. So I think these env variables should be exported in bbclass file.
Best Regards
Chong
Quoted 20 lines
Quoted 18 lines
Signed-off-by Chong Lu <[email protected]>--- meta/classes/pythonnative.bbclass | 4 ++++ 1 file changed, 4 insertions(+)meta/classes/pythonnative.bbclass +0
-0@@ -4,3 +4,7 @@ inherit python-dirPYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
EXTRANATIVEPATH += "${PYTHON_PN}-native"
DEPENDS += " ${PYTHON_PN}-native "meta/classes/pythonnative.bbclass +4
-0+export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS
ping
Quoted 63 lines · Lu Chong
Quoted 7 lines · Saul Wold
Quoted 2 lines · Chong Lu
Need to export these environment variables for python-config to work.
Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?
Sau!
checking for python script directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>PREFIX = os.path.normpath(sys.prefix).replace(
os.getenv("BUILD_SYS"),os.getenv("HOST_SYS"))
TypeError: expected a character buffer object
${libdir}/python2.7/site-packages
checking for python extension module directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>PREFIX = os.path.normpath(sys.prefix).replace(
os.getenv("BUILD_SYS"),os.getenv("HOST_SYS"))
TypeError: expected a character buffer objectAbove error comes from some packages'
do_configurelog. This error doesn't block building.
Some packages export above env variables in bb file, but someone not. So I think these env variables should be exported in bbclass file.Best Regards
ChongQuoted 5 lines
Quoted 5 lines
Signed-off-by Chong Lu <[email protected]>--- meta/classes/pythonnative.bbclass | 4 ++++ 1 file changed, 4 insertions(+)Quoted 15 lines
meta/classes/pythonnative.bbclass inherit python-dir · line 10
Quoted 13 lines
meta/classes/pythonnative.bbclass +0
-0@@ -4,3 +4,7 @@ inherit python-dirPYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
EXTRANATIVEPATH += "${PYTHON_PN}-native"
DEPENDS += " ${PYTHON_PN}-native "meta/classes/pythonnative.bbclass +4
-0+export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core