[MacPorts] #34930: Precompiled binary packages incompatible with installed dependencies
MacPorts
noreply at macports.org
Tue Jun 19 06:05:07 PDT 2012
#34930: Precompiled binary packages incompatible with installed dependencies
---------------------------------------+------------------------------------
Reporter: macports.org@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.1
Keywords: precompiled binaries | Port: py26-gobject
---------------------------------------+------------------------------------
Trying to launch a GTK2 application, I was getting the following error on
startup:
{{{
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
import gobject as _gobject
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/gobject/__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add,
timeout_add_seconds, \
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/glib/__init__.py", line 22, in <module>
from glib._glib import *
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/glib/_glib.so, 2): Symbol not found:
_PyUnicodeUCS2_DecodeUTF8
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/glib/_glib.so
Expected in: flat namespace
in
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/gtk-2.0/glib/_glib.so
}}}
I tried reinstalling gobject several times as the file in question is
provided by that port and it *still* wouldn't work. Engaging my brain and
actually looking at the logs, I finally realized that macports was
downloading the binary packages instead of the source…
And it turns out that binary package apparently uses the default
compilation options, my local Python 2.6 is installed with {{{+ucs4}}},
and those are of course binary incompatible but Macports's binary build
system seems unable to understand the distinction, leading to installing a
broken binary package.
--
Ticket URL: <https://trac.macports.org/ticket/34930>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list