[MacPorts] #20613: py25-gnome 2.26.1 import bonobo.ui fails when gtk+quartz is used
MacPorts
noreply at macports.org
Sat Aug 8 12:41:36 PDT 2009
#20613: py25-gnome 2.26.1 import bonobo.ui fails when gtk+quartz is used
--------------------------------+-------------------------------------------
Reporter: neric27@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: py25-gnome
--------------------------------+-------------------------------------------
Steps to reproduce :
{{{
$ /opt/local/bin/python2.5
Python 2.5.4 (r254:67916, Jun 18 2009, 20:05:17)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
}}}
{{{
>>> import bonobo.ui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/site-packages/gtk-2.0/bonobo/ui.so, 2): Symbol not found:
_bonobo_setup_x_error_handler
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/site-packages/gtk-2.0/bonobo/ui.so
Expected in: dynamic lookup
>>>
}}}
The problem is that when libbonoboui detects that gtk x11 is not used, it
doesn't implement a method called bonobo_setup_x_error_handler. But the
declaration of the bindings is still present in py26-gnome, so python
tries to find the method and fails.
To solve that, I propose that a quartz variant is added to py26-gnome,
which will remove any reference to this method.
Namely add to the portfile :
{{{
variant quartz description {fix bonobo import error when gtk +quartz is
used} {
patchfiles-append bonobo.diff
}
}}}
and add the attached bonobo.diff patch file.
--
Ticket URL: <http://trac.macports.org/ticket/20613>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list