Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] sanity.bbclass: make sure python is a full install
@ 2013-06-03  7:37 Jesse Zhang
  2013-06-03  7:37 ` [PATCH 1/1] " Jesse Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Zhang @ 2013-06-03  7:37 UTC (permalink / raw)
  To: openembedded-core

Robert sent a fix on the same bug. This is a rework per Ross Burton's advice.

jesse

The following changes since commit 73dae11852c656adbf5a2b0e44ac4c7e0078cd8d:

  rpm: remove .real hacks in argument parsing (2013-05-31 14:02:45 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib szhang/glib
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=szhang/glib

Jesse Zhang (1):
  sanity.bbclass: make sure python is a full install

 meta/classes/sanity.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
1.7.11.7



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] sanity.bbclass: make sure python is a full install
  2013-06-03  7:37 [PATCH 0/1] sanity.bbclass: make sure python is a full install Jesse Zhang
@ 2013-06-03  7:37 ` Jesse Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Jesse Zhang @ 2013-06-03  7:37 UTC (permalink / raw)
  To: openembedded-core

Components of the Standard Library should be available. Add a sanity
check for xml.parsers.expat; we might add more in the future.

[YOCTO #4424]

Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
---
 meta/classes/sanity.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3b01acf..6cad4bc 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -387,6 +387,12 @@ def check_sanity(sanity_data):
     import sys
     if sys.hexversion < 0x020600F0:
         messages = messages + 'The system requires at least Python 2.6 to run. Please update your Python interpreter.\n'
+    # Check the python install is complete. glib-2.0-natives requries
+    # xml.parsers.expat
+    try:
+        import xml.parsers.expat
+    except ImportError:
+        messages = messages + 'Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n'
 
     if (LooseVersion(bb.__version__) < LooseVersion(minversion)):
         messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__)
-- 
1.7.11.7



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-03  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03  7:37 [PATCH 0/1] sanity.bbclass: make sure python is a full install Jesse Zhang
2013-06-03  7:37 ` [PATCH 1/1] " Jesse Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox