Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356923 - python.eclass should support prefixed path
Summary: python.eclass should support prefixed path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 04:23 UTC by Benda Xu
Modified: 2011-03-01 11:35 UTC (History)
0 users

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


Attachments
patch that using EROOT (python.eclass.patch,1.61 KB, patch)
2011-03-01 06:53 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2011-03-01 04:23:46 UTC
python_get_includedir and python_get_libdir does not repect ${EROOT}.

This causes problems for some ebuilds(esp. newly ecopied) in gentoo prefix.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-01 04:38:22 UTC
Likely "wontfix" - eclasses are not definable one way or another because of how functions are used. What helps one ebuild may very well break another one, etc.
Comment 2 Benda Xu gentoo-dev 2011-03-01 06:53:18 UTC
Created attachment 264225 [details, diff]
patch that using EROOT
Comment 3 Benda Xu gentoo-dev 2011-03-01 06:57:01 UTC
(In reply to comment #1)
> Likely "wontfix" - eclasses are not definable one way or another because of how
> functions are used. What helps one ebuild may very well break another one, etc.

in python.eclass, some functions are already using EROOT, and there is a helper function to determine EROOT (see the patch)

Maybe you are right. Then we need to maintain ebuild patches against non-prefixed python includedir and lib.
Comment 4 Benda Xu gentoo-dev 2011-03-01 06:59:49 UTC
(In reply to comment #1)
> Likely "wontfix" - eclasses are not definable one way or another because of how
> functions are used. What helps one ebuild may very well break another one, etc.
> 

In gentoo-x86 ${EROOT} is defined as ${ROOT} which in turn is "/". The only scene of breaking another ebuild would be double prefix, with which we can unpatch and do that systematically with eclass.
Comment 5 Fabian Groffen gentoo-dev 2011-03-01 08:19:23 UTC
I think this was/is by design, as ROOT isn't used either.  The eclass requires callers to prepend ROOT/EPREFIX when necessary, e.g. when not used with helpers.
Comment 6 Benda Xu gentoo-dev 2011-03-01 11:35:23 UTC
Okay, I see. Close.