python-utils-r1: some files are being installed to /build/${BOARD}/build/${BOARD} |
||||||
Issue description
python-utils-r1.eclass uses EPREFIX to strip the leading part of
the sysroot for use with the portage ...into functions. Since EPREFIX is
empty this sometimes results paths of the form /build/${BOARD}/build/${BOARD}. There is a possibility the eclass variable PYTHON isn't set correctly under some circumstances.
After running ./build_packages --board=sand the following affected files show up:
/build/sand/build/sand/usr/lib64/python2.7/site-packages/epython.py
/build/sand/build/sand/usr/lib64/python2.7/site-packages/epython.pyc
/build/sand/build/sand/usr/lib64/python2.7/site-packages/epython.pyo
/build/sand/build/sand/usr/include/python2.7/Imaging.h
/build/sand/build/sand/usr/include/python2.7/ImPlatform.h
This also breaks the package: namespace-google
I have uploaded a Cl that fixes the symptoms here:
https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/1395317
but it is probably not be the best way of solving the problem.
,
Jan 18
(5 days ago)
,
Jan 18
(4 days ago)
,
Jan 18
(4 days ago)
I don't thing the CL I uploaded is the right way to fix this (even though it works).
I suspect the places where the PYTHON eclass variable are set might pick the wrong binary (the one inside /build/${BOARD}) which wouldn't even work for arm boards.
From:
https://devmanual.gentoo.org/eclass-reference/python-utils-r1.eclass/index.html#lbAE
"""
PYTHON
The absolute path to the current Python interpreter.
This variable is set automatically in the following contexts:
python-r1: Set in functions called by python_foreach_impl() or after calling python_export_best().
python-single-r1: Set after calling python-single-r1_pkg_setup().
distutils-r1: Set within any of the python sub-phase functions.
Example value:
/usr/bin/python2.7
"""
,
Jan 18
(4 days ago)
,
Jan 18
(4 days ago)
I am editing the name and description of the bug to better match what needs to be fixed.
,
Jan 18
(4 days ago)
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by allenwebb@google.com
, Jan 15