public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] meaning of EROOT
@ 2013-02-03 11:07 heroxbd
  2013-02-03 20:56 ` Zac Medico
  2013-02-04 11:01 ` Michael Weber
  0 siblings, 2 replies; 4+ messages in thread
From: heroxbd @ 2013-02-03 11:07 UTC (permalink / raw
  To: gentoo-dev

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-04 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-03 11:07 [gentoo-dev] meaning of EROOT heroxbd
2013-02-03 20:56 ` Zac Medico
2013-02-04 11:01 ` Michael Weber
2013-02-04 16:07   ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox