[MacPorts] #50517: py27-cairo needs x11 variant?
MacPorts
noreply at macports.org
Tue Feb 2 08:34:20 PST 2016
#50517: py27-cairo needs x11 variant?
----------------------------+--------------------------------
Reporter: oliverlupton@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: py27-cairo
----------------------------+--------------------------------
Hi,
I have the following variants set on my system:
+quartz
-x11
This led to a broken py-cairo install:
$ python
>>> import gi
>>> gi.require_foreign("cairo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gi/__init__.py", line 137, in require_foreign
raise ImportError(str(e))
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/cairo/_cairo.so, 2): Symbol not found:
_cairo_xlib_surface_get_depth
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/cairo/_cairo.so
Expected in: /opt/local/lib/libcairo.2.dylib
in
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/cairo/_cairo.so
Building cairo with the +x11 variant solved it; I think the problem is
that the binary py-cairo package assumed x11 support in cairo but did not
request it?
--
Ticket URL: <https://trac.macports.org/ticket/50517>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list