#5591 LOW Never A: Python DBus install fails under sugar-jhbuild (Gentoo AMD64)
Zarro Boogs per Child
bugtracker at laptop.org
Thu Dec 20 12:09:21 EST 2007
#5591: Python DBus install fails under sugar-jhbuild (Gentoo AMD64)
----------------------+-----------------------------------------------------
Reporter: mcfletch | Owner: jg
Type: defect | Status: new
Priority: low | Milestone: Never Assigned
Component: distro | Version: Git as of bug date
Keywords: | Verified: 0
----------------------+-----------------------------------------------------
The Python DBus wrapper fails under Gentoo AMD64 in a trivial way.
Basically the "install.sh" script is calling Python's compile script to
compile the newly installed modules. It is doing this while pwd is in a
directory which includes a types.py module. If you happen to have '.' or
'' in your pythonpath, and your site.py happens to include *anything* that
imports the standard Python types module (including 'os') the install will
fail.
To fix the problem:
* alter the install.sh script to not call compile (not ideal, as it will
slow down the "real" install (as distinct from sugar-jhbuild) slightly as
each process' load of the module will re-parse the source)
* alter the install.sh script to work from a directory *other* than the
source directory (i.e. ../)
Work arounds:
* forcibly remove '' and '.' from the PYTHONPATH before running the
installation (i.e. run as PYTHONPATH="" ./sugar-jhbuild build )
* tell sugar-jhbuild to skip the install step and continue to finished
(works because under sugar-jhbuild the compilation is extraneous (we're
installing as the current user))
Afraid I don't know enough about makefiles to know how to accomplish the
fixes, but hopefully the dbus folks will know how.
Package with the bug is dbus-python-0.82.3
--
Ticket URL: <http://dev.laptop.org/ticket/5591>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list