Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 464798

Summary: dev-python/pycairo-1.10.0-r4 can be installed on OS X
Product: Gentoo/Alt Reporter: MATSUI Tetsushi <VED03370>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: change ${ED} to ${D}

Description MATSUI Tetsushi 2013-04-06 04:26:30 UTC
Currently pycairo-1.10.0-r4 is masked in package.mask of the profile as:

# Fabian Groffen <grobian@gentoo.org> (11 May 2011)
# Uses the horribly broken build-system waf.  When hacked far enough,
# produces a MH_OBJ with invalid install_name called _cairo.bundle.
~dev-python/pycairo-1.10.0

but if you change ${ED} to ${D} in darwin specific clause in src_install,
it can be installed.

Without this change, it fails with:

python3_3: running fix_darwin_install_names
install_name_tool: can't open file: /Users/tetsushi/Gentoo/var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/Users/tetsushi/Gentoo//Users/tetsushi/Gentoo/usr/lib/python3.3/site-packages/cairo/_cairo.bundle (No such file or directory)

As you see, there is a double prefix in the referring path.
The change solves it.

After emerge, I can import cairo on python interpreters,
I can emerge dev-python/pygtk (need patch of #370079) which depends on pycairo,
and I can run dev-gfx/mirage (not keyworded) which depends on pygtk.
Do I need more tests?
Comment 1 MATSUI Tetsushi 2013-04-06 04:28:45 UTC
Created attachment 344590 [details, diff]
change ${ED} to ${D}
Comment 2 Fabian Groffen gentoo-dev 2017-12-03 17:57:32 UTC
pycairo is installing fine with the current ebuilds.