Patchwork [1/1] glib-2.0: inherit pythonnative

login
register
mail settings
Submitter xin.ouyang@windriver.com
Date Nov. 1, 2012, 8:53 a.m.
Message ID <97f30a7d4fa7b7ed6a9992512f5c727af5dc4504.1351759577.git.Xin.Ouyang@windriver.com>
Download mbox | patch
Permalink /patch/38753/
State New
Headers show

Comments

xin.ouyang@windriver.com - Nov. 1, 2012, 8:53 a.m.
glib-2.0 needs to inherit pythonnative because it will run python
scripts to generate codes while do_compile.

This has caused problems on some hosts(SLED11.2) if no python-xml
installed.

[Yocto 2843]

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
---
 meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Richard Purdie - Nov. 1, 2012, 11:45 a.m.
On Thu, 2012-11-01 at 16:53 +0800, Xin Ouyang wrote:
> glib-2.0 needs to inherit pythonnative because it will run python
> scripts to generate codes while do_compile.
> 
> This has caused problems on some hosts(SLED11.2) if no python-xml
> installed.
> 
> [Yocto 2843]
> 
> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
> ---
>  meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

This is going to adversely affect build speed. Can we not document that
python-xml needs to be installed on these hosts? I'd have thought that
would be available on most systems we support running on these days?

Cheers,

Richard

Patch

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
index 10c0b61..5181f9d 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
@@ -1,8 +1,10 @@ 
 require glib.inc
 
-PR = "r6"
+PR = "r7"
 PE = "1"
 
+inherit pythonnative
+
 DEPENDS += "libffi python-argparse-native zlib"
 DEPENDS_virtclass-native += "libffi-native python-argparse-native"
 DEPENDS_virtclass-nativesdk += "nativesdk-libffi python-argparse-native nativesdk-zlib ${BPN}-native"