The variable PYTHON is assigned with native python.
But for target, it caused pygobject-codegen has
build path.
vim ${S}/codegen/pygobject-codegen-2.0.in
[snip]...
exec @PYTHON@ $codegendir/codegen.py "$@"
[snip]...
So use "${bindir}/python" to replace.
[YOCTO #7058]
Signed-off-by: Hongxu Jia <[email protected]>
---
meta/recipes-devtools/python/python-pygobject_2.28.3.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/python/python-pygobject_2.28.3.bb
b/meta/recipes-devtools/python/python-pygobject_2.28.3.bb
index 81d37b4..c6a9446 100644
--- a/meta/recipes-devtools/python/python-pygobject_2.28.3.bb
+++ b/meta/recipes-devtools/python/python-pygobject_2.28.3.bb
@@ -51,3 +51,8 @@ FILES_${PN}-lib = "${libdir}/lib*.so.*"
FILES_${PN}-dev += "${bindir} ${datadir}"
BBCLASSEXTEND = "native"
+
+do_install_append_class-target() {
+ sed -i -e "s:${PYTHON}:${bindir}/python:g" \
+ ${D}${bindir}/pygobject-codegen-2.0
+}
--
1.9.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core