<div dir="ltr">For some reason git send-email didn't attach the patch. I've attached it here.<div><br></div><div>Thanks,</div><div>~vsergeev</div><div>Ivan Sergeev</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Nov 18, 2013 at 2:35 PM, Ivan Sergeev <span dir="ltr"><<a href="mailto:vsergeev@kumunetworks.com" target="_blank">vsergeev@kumunetworks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
dbus-python requires xml.parsers.expat, which is provided by the pyexpat module. This patch enables the pyexpat module when dbus-python is selected.<br>
<br>
Before:<br>
<br>
# systemd-analyze<br>
Traceback (most recent call last):<br>
  File "/usr/bin/systemd-analyze", line 3, in <module><br>
    import dbus, sys<br>
  File "/usr/lib/python2.7/site-packages/dbus/__init__.py", line 100, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 46, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 46, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 42, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 35, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/_expat_introspect_parser.py", line 26, in <module><br>
ImportError: No module named xml.parsers.expat<br>
# python<br>
Python 2.7.3 (default, Nov 18 2013, 14:12:39)<br>
[GCC 4.7.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import dbus<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/__init__.py", line 100, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 46, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 46, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 42, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 35, in <module><br>
  File "/usr/lib/python2.7/site-packages/dbus/_expat_introspect_parser.py", line 26, in <module><br>
ImportError: No module named xml.parsers.expat<br>
>>><br>
#<br>
<br>
After:<br>
<br>
# systemd-analyze<br>
Startup finished in 2252ms (kernel) + 973ms (userspace) = 3225ms<br>
# python<br>
Python 2.7.3 (default, Nov 18 2013, 13:07:32)<br>
[GCC 4.7.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import dbus<br>
>>><br>
#<br>
<br>
NOTE: I had to delete output/build/python-2.7.3/ for the enabled pyexpat to take effect during a rebuild (simple "make") of buildroot. I presume this is because it's configured and built with python-2.7.3, but perhaps this should be handled automatically  -- marking python-2.7.3 "dirty" somehow?<br>

<br>
Thanks,<br>
~vsergeev<br>
<span class="HOEnZb"><font color="#888888">Ivan Sergeev<br>
<br>
</font></span></blockquote></div><br></div>