Ticket #20613 (closed defect: fixed)
py25-gnome 2.26.1 import bonobo.ui fails when gtk+quartz is used
| Reported by: | neric27@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.1 |
| Keywords: | Cc: | snc@… | |
| Port: | py25-gnome |
Description
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.
Attachments
Change History
Changed 4 years ago by neric27@…
- Attachment bonobo.diff added
Note: See
TracTickets for help on using
tickets.


patch file to have bonobo.ui working with gtk +quartz