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
this really should be reevaluated