Re: [gentoo-dev] meaning of EROOT

2013-02-04 Thread Michael Weber
On 02/03/2013 12:07 PM, heroxbd wrote: self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep wouldn't be this more robust import os os.path.normpath('/some/' + os.path.sep + '/stuff/') + os.path.sep '/some/stuff/' -- Michael Weber Gentoo Developer web: https://xmw.de/

Re: [gentoo-dev] meaning of EROOT

2013-02-04 Thread Zac Medico
On 02/04/2013 03:01 AM, Michael Weber wrote: On 02/03/2013 12:07 PM, heroxbd wrote: self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep wouldn't be this more robust import os os.path.normpath('/some/' + os.path.sep + '/stuff/') + os.path.sep '/some/stuff/' In this

[gentoo-dev] meaning of EROOT

2013-02-03 Thread heroxbd
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

Re: [gentoo-dev] meaning of EROOT

2013-02-03 Thread Zac Medico
On 02/03/2013 03:07 AM, heroxbd wrote: 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? No, it's EROOT=${ROOT%/}${EPREFIX}/ But for example in