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. (From OE-Core rev: 470a67d9047ccabe3b624238f31c0381793404be) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ec0b81a531
commit
4505618ac3
|
@ -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}/*"
|
||||
|
|
Loading…
Reference in New Issue