Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283580 - dev-python/pycairo-1.8.8: python.eclass / doins conflict
Summary: dev-python/pycairo-1.8.8: python.eclass / doins conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Interix
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 11:43 UTC by Markus Duft (RETIRED)
Modified: 2009-09-03 16:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Duft (RETIRED) gentoo-dev 2009-09-03 11:43:04 UTC
I'm getting this error now on all interix machines when emerging dev-python/pycairo - should be there on all others too:

...[snip]
running install_egg_info
Writing /opt/gentoo/var/tmp/portage/dev-python/pycairo-1.8.8/image/opt/gentoo/usr/lib/python2.6/site-packages/pycairo-1.8.8-py2.6.egg-info
-------------------------------------------------------
You should not use ${EPREFIX} with helpers.
  --> /opt/gentoo/usr/lib/python2.6/site-packages/cairo
-------------------------------------------------------
 * ERROR: dev-python/pycairo-1.8.8 failed:
 *    failed with Python 2.6 in installation() function
 * 
 * Call stack:
 *               ebuild.sh:  51: <call call-ebuildshell 'src_install'>
 *             environment: 393: <call src_install>
 *             environment:3208: <call python_execute_function '-q' 'installation'>
 *             environment:2859:                     die "${failure_message}";
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

the message "You should not ..." comes from doins. Any ideas?
Comment 1 Fabian Groffen gentoo-dev 2009-09-03 11:45:55 UTC
yeah. get_python_libdir returns the EPREFIX, so you need to strip that off before putting it into doins

we recently changed this behaviour, get_python_libdir used not to return the EPREFIX.
Comment 2 Markus Duft (RETIRED) gentoo-dev 2009-09-03 11:51:59 UTC
so - pycairo neither calls get_python_libdir, nor does it call doins... so the problem must be somewhere else... but where?
Comment 3 Markus Duft (RETIRED) gentoo-dev 2009-09-03 11:52:34 UTC
(In reply to comment #2)
> so - pycairo neither calls get_python_libdir, nor does it call doins... so the
> problem must be somewhere else... but where?
> 

strike that out.... damn :) search command was bogus ;)
Comment 4 Markus Duft (RETIRED) gentoo-dev 2009-09-03 11:54:48 UTC
i guess this is the problematic code:

76     installation() {
77         insinto "$(python_get_sitedir)/cairo"
78         doins src/__init__.py
79     }
80     python_execute_function -q installation


is "local pysite=$(python_get_sitedir)/cairo"; insinto "${pysite#${EPREFIX}}" the preferred solution?
Comment 5 Fabian Groffen gentoo-dev 2009-09-03 11:55:37 UTC
put on two lines, yes
Comment 6 Markus Duft (RETIRED) gentoo-dev 2009-09-03 12:00:21 UTC
done