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

Burton, Ross ross.burton at intel.com
Tue Apr 26 21:36:44 UTC 2016


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?

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?

Ross



More information about the Openembedded-devel mailing list