]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnome-doc-utils: drop the usage of create_wrapper
authorRoss Burton <ross.burton@intel.com>
Wed, 12 Jun 2013 16:42:25 +0000 (17:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Jun 2013 16:37:58 +0000 (17:37 +0100)
create_wrapper was previously abused to invoke the Python interpretter directly
instead of relying on #! parsing, which is read into a 128 byte buffer so breaks
with deep build directories.

However now that we already install a "nativepython" binary into the native
sysroot, use sed to change the #! line to /usr/bin/env nativepython.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-gnome/gnome/gnome-doc-utils.inc

index 9d243a171abf9c9ffc65b5611d4ce94440d61d66..b0433ad3385ad93a85315d341cbd9381a16c9785 100644 (file)
@@ -20,7 +20,7 @@ do_install_append() {
 }
 
 do_install_append_class-native () {
-       create_wrapper ${D}${bindir}/xml2po ${STAGING_BINDIR_NATIVE}/python-native/python
+       sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' ${D}${bindir}/xml2po
 }
 
 FILES_${PN} += "${datadir}/xml* ${PYTHON_SITEPACKAGES_DIR}/*"