[MacPorts] #50517: py27-cairo needs x11 variant?
#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
#50517: py27-cairo needs x11 variant? -----------------------------+-------------------------------- Reporter: oliverlupton@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: py27-cairo | -----------------------------+-------------------------------- Changes (by devans@…): * status: new => closed * resolution: => invalid Comment: Adding a +x11 variant will not help if you build with -x11. Now that cairo (and others) install both quartz and x11 backends by default, building with +quartz -x11 is not necessary and as you have shown can cause problems. I recommend building with just +quartz, although X11 support will be built with cairo (in addition to quartz) it will not interfere with your +quartz build. -- Ticket URL: <https://trac.macports.org/ticket/50517#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts