--- /usr/portage/eclass/subversion.eclass 2013-07-27 04:31:17.000000000 -0600 +++ subversion.eclass 2013-09-20 20:06:23.740048739 -0600 @@ -443,9 +443,10 @@ # want the logs to stick around if packages are uninstalled without messing with # config protection. subversion_pkg_preinst() { + has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" local pkgdate=$(date "+%Y%m%d %H:%M:%S") if [[ -n ${ESCM_LOGDIR} ]]; then - local dir="${ROOT}/${ESCM_LOGDIR}/${CATEGORY}" + local dir="${EROOT}/${ESCM_LOGDIR}/${CATEGORY}" if [[ ! -d ${dir} ]]; then mkdir -p "${dir}" || eerror "Failed to create '${dir}' for logging svn revision" fi