python_get_includedir and python_get_libdir does not repect ${EROOT}. This causes problems for some ebuilds(esp. newly ecopied) in gentoo prefix.
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.
Created attachment 264225 [details, diff] patch that using EROOT
(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.
(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.
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.
Okay, I see. Close.