Opened 15 years ago

Closed 14 years ago

#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: nerdling (Jeremy Lavergne)
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 (1)

bonobo.diff (1.5 KB) - added by neric27@… 15 years ago.
patch file to have bonobo.ui working with gtk +quartz

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by neric27@…

Attachment: bonobo.diff added

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

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to pguyot@…

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from pguyot@… to macports-tickets@…

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Cc: snc@… added
Resolution: fixed
Status: newclosed

This was fixed by r55721.

Note: See TracTickets for help on using tickets.