summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-01 07:21:23 +0100
committerSam James <sam@gentoo.org>2022-10-04 05:12:59 +0100
commit75c077cf32fee0bd5c496487e53c68f460775f12 (patch)
treecac21fcdd5c3a64680e01c9063504f8748c62964
parentsys-libs/rpmatch-standalone: Stabilize 1.0 ppc, #874789 (diff)
downloadgentoo-75c077cf32fee0bd5c496487e53c68f460775f12.tar.gz
gentoo-75c077cf32fee0bd5c496487e53c68f460775f12.tar.bz2
gentoo-75c077cf32fee0bd5c496487e53c68f460775f12.zip
xdg-utils.eclass: reset XDG_STATE_HOME
XDG_STATE_HOME is defined in the basedir spec just like XDG_DATA_HOME and XDG_CONFIG_HOME, so we should cover it. We have to set in eclass because we still have < EAPI 7 ebuilds in tree (no ENV_UNSET). Closes: https://bugs.gentoo.org/873802 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/xdg-utils.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index ae2b71cd2495..9a58add23d36 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2021 Gentoo Authors
+# Copyright 2004-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: xdg-utils.eclass
@@ -42,9 +42,10 @@ xdg_environment_reset() {
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
+ export XDG_STATE_HOME="${HOME}/.local/state"
export XDG_RUNTIME_DIR="${T}/run"
mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" \
- "${XDG_RUNTIME_DIR}" || die
+ "${XDG_STATE_HOME}" "${XDG_RUNTIME_DIR}" || die
# This directory needs to be owned by the user, and chmod 0700
# https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
chmod 0700 "${XDG_RUNTIME_DIR}" || die