Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464798 - dev-python/pycairo-1.10.0-r4 can be installed on OS X
Summary: dev-python/pycairo-1.10.0-r4 can be installed on OS X
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-06 04:26 UTC by MATSUI Tetsushi
Modified: 2017-12-03 17:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
change ${ED} to ${D} (pycairo-1.10.0-r4-double-prefix.patch,416 bytes, patch)
2013-04-06 04:28 UTC, MATSUI Tetsushi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.