summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/gstreamer.eclass8
1 files changed, 2 insertions, 6 deletions
diff --git a/eclass/gstreamer.eclass b/eclass/gstreamer.eclass
index 0163493a76b5..37bb7ba85580 100644
--- a/eclass/gstreamer.eclass
+++ b/eclass/gstreamer.eclass
@@ -23,7 +23,7 @@
# plugin, consider adding media-plugins/gst-plugins-meta dependency, but
# also list any packages that provide explicitly requested plugins.
-inherit eutils multilib multilib-minimal toolchain-funcs versionator
+inherit eutils multilib multilib-minimal toolchain-funcs versionator xdg-utils
case "${EAPI:-0}" in
5)
@@ -132,11 +132,7 @@ DEPEND="${DEPEND} ${RDEPEND}"
# >=dev-lang/orc-0.4.23 rely on environment variables to find a place to
# allocate files to mmap.
gstreamer_environment_reset() {
- export XDG_RUNTIME_DIR="${T}/run"
- mkdir -p "${XDG_RUNTIME_DIR}"
- # This directory needs to be owned by the user, and chmod 0700
- # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- chmod 0700 "${XDG_RUNTIME_DIR}"
+ xdg_environment_reset
}
# @FUNCTION: gstreamer_get_plugins