[OE-core] [PATCH 07/18] python-pygobject: fix buildpath QA issue

Hongxu Jia hongxu.jia at windriver.com
Thu Mar 10 07:23:12 UTC 2016


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 <hongxu.jia at 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..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




More information about the Openembedded-core mailing list