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 we replace it by invoking "which python". [YOCTO #7058] Signed-off-by: Hongxu Jia <hongxu....@windriver.com> --- 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..6082d35 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}:\`which python\`:g" \ + ${D}${bindir}/pygobject-codegen-2.0 +} -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core