From d5a9c1629fd79cf21701c1700ec1f42828e41cd4 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Wed, 28 Aug 2024 11:05:37 +0300 Subject: [PATCH] guile.eclass: change directory back exclicitly in guile_foreach_impl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit einstalldocs notably benefits from the PWD being the correct source directory. Signed-off-by: Alfred Wingate Signed-off-by: Arsen Arsenović --- eclass/guile.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/guile.eclass b/eclass/guile.eclass index 9310cd060da9a..323d04ef11524 100644 --- a/eclass/guile.eclass +++ b/eclass/guile.eclass @@ -190,8 +190,9 @@ _guile_multibuild_wrapper() { local -x SLOTTED_ED="${SLOTTED_D}${EPREFIX}/" local -x GUILE_EFFECTIVE_VERSION="${GUILE_CURRENT_VERSION}" mkdir -p "${BUILD_DIR}" || die - cd "${BUILD_DIR}" || die + pushd "${BUILD_DIR}" >/dev/null || die "$@" + popd >/dev/null || die } # @VARIABLE: SLOTTED_D