Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337370 - Prefix/Cygwin: //home/* is not a working EPREFIX
Summary: Prefix/Cygwin: //home/* is not a working EPREFIX
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Other
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 21:34 UTC by Al
Modified: 2014-01-14 19:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al 2010-09-14 21:34:36 UTC
On windows //home/* is different from /home/*. //home/* as EPREFIX breaks emerging. 

Maybe all occurrances of EROOT="${ROOT}${EPREFIX}"
should be replaced with  EROOT="${ROOT%/}${EPREFIX}".

Similar bug #334271

Reproducible: Always

Steps to Reproduce:
Emerge Gentoo Prefix on Cygwin.
Actual Results:  
Example: Emerging of Python breaks while python.eselect is executed from bin/eselect.


In the special case of eselect I found the issue in 

gentoo/usr/bin/eselect: EROOT="${ROOT}${EPREFIX}" line 49:

# Support variables for Gentoo Prefix
EPREFIX="/home/prefix/gentoo"
EROOT="${ROOT}${EPREFIX}"

A simple overall search gives me up to 7 occurrances of the ${ROOT}${EPREFIX} pair.

 $ grep -R '${ROOT}${EPREFIX}' gentoo/
gentoo/usr/bin/bashcomp-config:EROOT="${ROOT}${EPREFIX}"
gentoo/usr/bin/eselect:EROOT="${ROOT}${EPREFIX}"
gentoo/usr/bin/kernel-config:EROOT="${ROOT}${EPREFIX}"
gentoo/usr/bin/profile-config:EROOT="${ROOT}${EPREFIX}"
gentoo/usr/bin/rc-config:EROOT="${ROOT}${EPREFIX}"
gentoo/usr/portage/app-admin/eselect-rails/eselect-rails-0.15.ebuild:   sed -i -e "s|\${ROOT}|\${ROOT}${EPREFIX}|g" rails.eselect || die
gentoo/usr/portage/eclass/elisp-common.eclass:  local sitelisp=${ROOT}${EPREFIX}${SITELISP}
gentoo/usr/portage/scripts/deapify:             # expand ${EROOT} into ${ROOT}${EPREFIX}

Al
Comment 1 Fabian Groffen gentoo-dev 2014-01-14 19:51:19 UTC
this really should be reevaluated