Dear All,
I am a bit confused with the meaning of EROOT.
In a usual Prefix installation, ROOT=/ and EPREFIX=/opt/gentoo,
EROOT=/opt/gentoo/.
Naturally, EROOT=${EPREFIX}${ROOT}, right?
But for example in ./python.eclass
EROOT="${ROOT%/}${EPREFIX}/"
and in LocationsManager.py of portage
self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep
What is the logic behind this construction?
The problem rises when I want to cross-compile under Prefix. Taking
armv7a-hardfloat-linux-gnueabi for example,
ROOT=/usr/armv7a-hardfloat-linux-gnueabi/, EPREFIX=/opt/gentoo. I'd
expect EROOT to be ${EPREFIX}${ROOT}, therefore,
/opt/gentoo/usr/armv7a-hardfloat-linux-gnueabi/. At present
EROOT=/usr/armv7a-hardfloat-linux-gnueabi/opt/gentoo/, which is
completely useless.
Cheers,
Benda