1 |
commit: 98f306bd0d085eae3c1d4e279e656d9de33fe232 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 21 10:39:49 2015 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 21:56:19 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98f306bd |
7 |
|
8 |
gstreamer.eclass: use xdg_environment_reset |
9 |
|
10 |
eclass/gstreamer.eclass | 8 ++------ |
11 |
1 file changed, 2 insertions(+), 6 deletions(-) |
12 |
|
13 |
diff --git a/eclass/gstreamer.eclass b/eclass/gstreamer.eclass |
14 |
index 0163493..37bb7ba 100644 |
15 |
--- a/eclass/gstreamer.eclass |
16 |
+++ b/eclass/gstreamer.eclass |
17 |
@@ -23,7 +23,7 @@ |
18 |
# plugin, consider adding media-plugins/gst-plugins-meta dependency, but |
19 |
# also list any packages that provide explicitly requested plugins. |
20 |
|
21 |
-inherit eutils multilib multilib-minimal toolchain-funcs versionator |
22 |
+inherit eutils multilib multilib-minimal toolchain-funcs versionator xdg-utils |
23 |
|
24 |
case "${EAPI:-0}" in |
25 |
5) |
26 |
@@ -132,11 +132,7 @@ DEPEND="${DEPEND} ${RDEPEND}" |
27 |
# >=dev-lang/orc-0.4.23 rely on environment variables to find a place to |
28 |
# allocate files to mmap. |
29 |
gstreamer_environment_reset() { |
30 |
- export XDG_RUNTIME_DIR="${T}/run" |
31 |
- mkdir -p "${XDG_RUNTIME_DIR}" |
32 |
- # This directory needs to be owned by the user, and chmod 0700 |
33 |
- # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html |
34 |
- chmod 0700 "${XDG_RUNTIME_DIR}" |
35 |
+ xdg_environment_reset |
36 |
} |
37 |
|
38 |
# @FUNCTION: gstreamer_get_plugins |