From e33467b4473aa822964423b97eb7bf424ff3420a Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Wed, 18 Nov 2015 20:29:54 +1100 Subject: cmake-utils.eclass: declare some variables local Prevents them from spanning multilibs. Gentoo-bug: 513170 --- eclass/cmake-utils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass/cmake-utils.eclass') diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index b7265896e63..82e2f19300c 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -460,7 +460,7 @@ enable_cmake-utils_src_configure() { _check_build_dir # Fix xdg collision with sandbox - export XDG_CONFIG_HOME="${T}" + local -x XDG_CONFIG_HOME="${T}" # @SEE CMAKE_BUILD_TYPE if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then @@ -531,7 +531,7 @@ enable_cmake-utils_src_configure() { fi fi - has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= + has "${EAPI:-0}" 0 1 2 && ! use prefix && local EPREFIX= if [[ ${EPREFIX} ]]; then cat >> "${build_rules}" <<- _EOF_ || die -- cgit v1.2.3