distutils-r1.eclass: reset XDG env vars
authorMike Gilbert <floppym@gentoo.org>
Mon, 20 Jun 2016 20:30:16 +0000 (16:30 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 3 Jul 2016 18:25:23 +0000 (14:25 -0400)
Bug: https://bugs.gentoo.org/577704

eclass/distutils-r1.eclass

index c5452906e2bdd361b788f31e05caf327ea344ae1..fb0362c30226214e313da1856f11853c7ea41685 100644 (file)
@@ -80,7 +80,7 @@ esac
 if [[ ! ${_DISTUTILS_R1} ]]; then
 
 [[ ${EAPI} == [45] ]] && inherit eutils
-inherit toolchain-funcs
+inherit toolchain-funcs xdg-utils
 
 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
        inherit multiprocessing python-r1
@@ -749,6 +749,7 @@ distutils-r1_src_prepare() {
 
 distutils-r1_src_configure() {
        python_export_utf8_locale
+       xdg_environment_reset # Bug 577704
 
        if declare -f python_configure >/dev/null; then
                _distutils-r1_run_foreach_impl python_configure