summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-01-26 01:04:09 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-01-26 01:07:03 +1100
commitd9e14c7b831181db69599a11d4c27eca5d71c0d3 (patch)
tree23bad35580c9465276686ee354cecd5182c648dd /eclass
parentcmake-utils.eclass: reorder a bit (diff)
downloadgentoo-d9e14c7b831181db69599a11d4c27eca5d71c0d3.tar.gz
gentoo-d9e14c7b831181db69599a11d4c27eca5d71c0d3.tar.bz2
gentoo-d9e14c7b831181db69599a11d4c27eca5d71c0d3.zip
cmake-utils.eclass: declare some variables local
Prevents them from spanning multilibs. Gentoo-bug: 513170
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index ce4708688f2a..b0e9bb021327 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -449,7 +449,7 @@ enable_cmake-utils_src_configure() {
_modify-cmakelists
# 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
@@ -520,7 +520,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