Bug 92678 - dbus-python build failure with PYTHON=python3
Summary: dbus-python build failure with PYTHON=python3
Status: RESOLVED INVALID
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: D-Bus Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-26 15:37 UTC by Michael Catanzaro
Modified: 2015-10-26 17:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
build log (104.50 KB, text/plain)
2015-10-26 15:37 UTC, Michael Catanzaro
Details

Description Michael Catanzaro 2015-10-26 15:37:13 UTC
Created attachment 119202 [details]
build log

dbus-python compiles fine with python2, but when I configure it with PYTHON=python3, I get a bajillion warnings and a couple of errors:

abstract.c:626:35: error: ‘PyInt_Type’ undeclared (first use in this function)
     DBusPyIntBase_Type.tp_base = &PyInt_Type;
                                   ^
abstract.c:640:35: error: ‘PyString_Type’ undeclared (first use in this function)
     DBusPyStrBase_Type.tp_base = &PyString_Type;
                                   ^
Makefile:402: recipe for target 'abstract.lo' failed

It builds fine if PYTHON=python3 is not added to the configure line. I am going to attach the entire build log since there is various scary stuff in the build log (looks like a missing include file somewhere, but also there seem to be python files that use python2-style exceptions). I've spent almost no time looking at this; only filing this bug because it was requested.
Comment 1 Michael Catanzaro 2015-10-26 15:44:09 UTC
Well I just noticed that we are building dbus-python 0.83.1 (I am using GNOME jhbuild, and this is the latest version in gnome-world), which is very old. So maybe it's not worth looking at this bug.
Comment 2 Simon McVittie 2015-10-26 16:17:26 UTC
(In reply to Michael Catanzaro from comment #1)
> Well I just noticed that we are building dbus-python 0.83.1

Please update the jhbuild metadata to either update or remove dbus-python.

That version is from 2010. Python 3 support was added in 1.0.0 (early 2012), and the current version is 1.2.0 (mid 2013). There seems little point in having metadata to compile a 5 year old version with known-and-fixed bugs.
Comment 3 Michael Catanzaro 2015-10-26 17:02:58 UTC
I'm just going to leave it be, since it's in the gnome-world moduleset, which we don't maintain; there is way too much broken stuff in there to try fixing everything. I will keep this in mind though in case we ever decide to move it. Sorry for the bogus bug report!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.