[OE-core] [PATCH 0/2] add nativesdk to BBCLASSEXTEND to python-distribute and to fix the side effect of it.

João Henrique Ferreira de Freitas joaohf at gmail.com
Wed Jul 2 01:58:46 UTC 2014


Hi, 

My company has a private python build tool that has python-distribute as dependency.
That tool builds well with -native. And now I need to put the my private tool in toolchain. So
my users could use it.

To accomplish, I added nativesdk to BBCLASSEXTEND. My buildtools-mytool recipe builds and the
toolchain get created. But when I try to install the toolchain I get the this:

$ tmp/deploy/sdk/buildtools-mytool-x86_64-nativesdk-standalone-1.6.1.0.sh 
Enter target directory for SDK (default: /opt/mydistro/mytool/1.6.1.0): 
You are about to install the SDK to "/opt/mydistro/mytool/1.6.1.0". Proceed[Y/n]?
Extracting SDK...done
Setting it up.../opt/mydistro/mytool/1.6.1.0/relocate_sdk.sh: linha 2: erro de sintaxe próximo do `token' não esperado `('

One of the files that relocate_sdk.sh was trying to handle is:

/opt/mydistro/mytool/1.6.1.0/sysroots/x
86_64-linuxsdk-linux/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/script template (dev).py

Maybe there are other recipes when adding nativesdk to BBCLASSEXTEND which this special handler is needed. So it's better 
ensure the correct handler of file name with spaces characters.

João Henrique Ferreira de Freitas (2):
  python-distribute: add nativesdk to BBCLASSEXTEND
  populate_sdk_base: ensure that filenames with empty space character
    are handled

 meta/classes/populate_sdk_base.bbclass                   | 4 ++--
 meta/recipes-devtools/python/python-distribute_0.6.32.bb | 7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

-- 
1.9.1




More information about the Openembedded-core mailing list