[sugar] sugar-jhbuild breakage (something to do with expat)

Andrew Clunis orospakr
Thu Dec 21 01:20:56 EST 2006


Hi all,

I crossed my fingers and did a fresh build of Sugar tonight because the
copy I had was over two weeks old.  However, I've run into two snags.
dbus-python wouldn't build without commenting some lines out (diff
included, just to show what I did).  It was failing with the following message:

#
*** Building dbus-python *** [12/34]
#
 
#
python setup.py build
#
running build
#
running build_py
#
file dbus/introspect_parser.py (for module dbus/introspect_parser) not found
#
file dbus/introspect_parser.py (for module dbus/introspect_parser) not found
#
running build_ext
#
building '_dbus_bindings' extension
#
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I. -Iinclude -I/home/orospakr/olpc/sugar-jhbuild/build/include/dbus-1.0 -I/home/orospakr/olpc/sugar-jhbuild/build/lib/dbus-1.0/include -I/usr/include/python2.4 -c _dbus_bindings/module.c -o build/temp.linux-i686-2.4/_dbus_bindings/module.o
#
_dbus_bindings/module.c:24:20: error: config.h: No such file or directory
#
_dbus_bindings/module.c: In function ?init_dbus_bindings?:
#
_dbus_bindings/module.c:359: error: ?PACKAGE_VERSION? undeclared (first use in this function)
#
_dbus_bindings/module.c:359: error: (Each undeclared identifier is reported only once
#
_dbus_bindings/module.c:359: error: for each function it appears in.)
#
error: command 'gcc' failed with exit status 1
#
*** error during stage build of dbus-python: Error running ['python', 'setup.py', 'build'] *** [12/34]

After commenting out the offending lines and continuing the build, sugar
wouldn't start, instead emitting this traceback:

orospakr at aegir:~/olpc/sugar-jhbuild$ ./sugar-jhbuild run
Running the installed sugar...
error opening security policy file /usr/lib/xserver/SecurityPolicy
Extended Input Devices not yet supported. Impelement it at line 625 in ../../../../hw/kdrive/src/kinput.c
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc101)+us" };
    xkb_geometry             { include "pc(pc101)" };
Could not init font path element /usr/share/fonts/X11/TTF/, removing from list!
Could not init font path element /usr/share/fonts/X11/OTF, removing from list!
Could not init font path element /usr/share/fonts/X11/CID/, removing from list!
Traceback (most recent call last):
  File "/home/orospakr/olpc/sugar-jhbuild/build/bin/sugar-shell", line 38, in ?
    from view.Shell import Shell
  File "/home/orospakr/olpc/sugar-jhbuild/build/share/sugar/shell/view/Shell.py", line 22, in ?
    import dbus
  File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/__init__.py", line 198, in ?
    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus, Interface
  File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/_dbus.py", line 39, in ?
    from dbus.proxies import ProxyObject
  File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/proxies.py", line 28, in ?
    from dbus._expat_introspect_parser import process_introspection_data
ImportError: No module named _expat_introspect_parser

--
Regards,
Andrew Clunis

P.S.  I found that etoys/squeak wouldn't checkout because squeakvm.org wouldn't
resolve.

P.P.S. I apologise for the crappy wrapping.  Maybe I'll attach the logs as
files next time.
-------------- next part --------------
diff --git a/_dbus_bindings/module.c b/_dbus_bindings/module.c
index 616579c..6e0fa18 100644
--- a/_dbus_bindings/module.c
+++ b/_dbus_bindings/module.c
@@ -21,7 +21,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-#include "config.h"
+//#include "config.h"
 
 #include <Python.h>
 #include <structmember.h>
@@ -355,8 +355,8 @@ #define ADD_CONST(x) ADD_CONST_VAL(#x, x
     if (PyModule_AddStringConstant(this_module, "__docformat__",
                                    "restructuredtext") < 0) return;
 
-    if (PyModule_AddStringConstant(this_module, "__version__",
-                                   PACKAGE_VERSION) < 0) return;
+    //if (PyModule_AddStringConstant(this_module, "__version__",
+    //                               PACKAGE_VERSION) < 0) return;
 
     if (PyModule_AddIntConstant(this_module, "_python_version",
                                 PY_VERSION_HEX) < 0) return;


More information about the Sugar-devel mailing list