From: Matt Jolly <kang…@gentoo.org> Changing directory to ${S} inside this function means that Rust sources in subdirectories are unable to fetch their dependencies. Signed-off-by: Matt Jolly <kang…@gentoo.org> --- eclass/cargo.eclass | 4 ---- 1 file changed, 4 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index c6415e4f1484..863e37a4dda3 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -637,8 +637,6 @@ cargo_live_src_unpack() { umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}" fi - pushd "${S}" > /dev/null || die - # Respect user settings before cargo_gen_config is called. if [[ ! ${CARGO_TERM_COLOR} ]]; then [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && export CARGO_TERM_COLOR=never @@ -669,8 +667,6 @@ cargo_live_src_unpack() { ln -sv "${ECARGO_REGISTRY_DIR}/git" "${ECARGO_HOME}/git" || die fi - popd > /dev/null || die - # Restore settings if needed. [[ ${unset_color} ]] && unset CARGO_TERM_COLOR [[ ${unset_verbose} ]] && unset CARGO_TERM_VERBOSE
-- 2.56.0