cmake-utils.eclass: Use xdg_environment_reset from xdg-utils.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 2 Dec 2017 18:30:50 +0000 (19:30 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 6 Dec 2017 11:41:05 +0000 (12:41 +0100)
Closes: https://bugs.gentoo.org/639460

eclass/cmake-utils.eclass

index 28b29eb3f0f906c8760632924839772baf09f2c2..7b12a6e7d7f31fef0ae55ad94af86bbdcc013b37 100644 (file)
@@ -110,7 +110,7 @@ case ${EAPI} in
 esac
 
 inherit toolchain-funcs multilib ninja-utils flag-o-matic eutils \
-       multiprocessing versionator
+       multiprocessing versionator xdg-utils
 
 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
 
@@ -491,7 +491,7 @@ cmake-utils_src_configure() {
        _cmake_check_build_dir
 
        # Fix xdg collision with sandbox
-       local -x XDG_CONFIG_HOME="${T}"
+       xdg_environment_reset
 
        # @SEE CMAKE_BUILD_TYPE
        if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then