[oe] [meta-oe][PATCH] mozjs: fix configure host contamination

Mark Asselstine mark.asselstine at windriver.com
Wed Apr 27 15:15:31 UTC 2016


On Tue, Apr 26, 2016 at 5:36 PM, Burton, Ross <ross.burton at intel.com> wrote:
> On 26 April 2016 at 20:08, Mark Asselstine <mark.asselstine at windriver.com>
> wrote:
>
>> | Traceback (most recent call last):
>> |   File "./config.status", line 9, in <module>
>> |     from ConfigStatus import config_status
>> |   File
>> "/build/bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/mozjs17.0.0/js/src/build/ConfigStatus.py",
>> line 11, in <module>
>> |     import sys, re, os, posixpath, ntpath
>> |   File "/usr/lib/python2.7/ntpath.py", line 15, in <module>
>> |     from genericpath import _unicode
>> | ImportError: cannot import name _unicode
>> | WARNING: exit code 1 from a shell command.
>> | ERROR: Function failed: do_configure (log file is located at
>> /build//bitbake_build/tmp/work/corei7-64-wrs-linux/mozjs/17.0.0-r0/temp/do_configure/log.do_configure.1056
>>
>
> I'm not sure using pythonnative is the right fix here.  Executing python
> using the host python should just work, so why does importing ntpath fail
> using your host python?

Correct. Host python should and does work but configure is executing
sysroot python and using host libraries.

>
> What happens if you run the host python in a terminal and do "import
> ntpath"? Does your host's python have a crippled class library or is broken
> in some way?

Again, host python does work, it is a matter of sysroot python being
executed and using host libs. So agreed there are two solutions, fix
things to use host python or the fix I have proposed.

Mark

>
> Ross
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list