--- eselect-1.2.7/bin/eselect.in +++ eselect-1.2.7/bin/eselect.in @@ -44,9 +44,9 @@ # Global options ESELECT_OPTIONS="" -# Support variables for Gentoo Alt/Prefix +# Support variables for Gentoo Prefix EPREFIX="@EPREFIX@" EROOT="${ROOT}${EPREFIX}" # Remove all alias definitions. Unset functions and variables that are # known to cause trouble. --- eselect-1.2.7/libs/skel.bash.in +++ eselect-1.2.7/libs/skel.bash.in @@ -293,7 +293,7 @@ # If $D is set, we're adding from portage so we want to respect sandbox. # Otherwise, respect the ROOT variable. - local PREFIX=${D:-${EROOT}} + local PREFIX=${D:-${ROOT}}${EPREFIX} # Create directory if necessary if [[ ! -e ${PREFIX}/etc/env.d/${IFACE}/${1} ]]; then