From 470a67d9047ccabe3b624238f31c0381793404be Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 12 Jun 2013 17:42:25 +0100 Subject: gnome-doc-utils: drop the usage of create_wrapper 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 Signed-off-by: Saul Wold --- meta/recipes-gnome/gnome/gnome-doc-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-gnome/gnome/gnome-doc-utils.inc') diff --git a/meta/recipes-gnome/gnome/gnome-doc-utils.inc b/meta/recipes-gnome/gnome/gnome-doc-utils.inc index 9d243a171a..b0433ad338 100644 --- a/meta/recipes-gnome/gnome/gnome-doc-utils.inc +++ b/meta/recipes-gnome/gnome/gnome-doc-utils.inc @@ -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}/*" -- cgit 1.2.3-korg