guile.eclass: change directory back exclicitly in guile_foreach_impl

einstalldocs notably benefits from the PWD being the correct source
directory.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
This commit is contained in:
Alfred Wingate
2024-08-28 11:05:37 +03:00
committed by Arsen Arsenović
parent 131b02c5e4
commit d5a9c1629f

View File

@@ -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