summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2011-11-16 21:12:31 +0100
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2011-11-16 21:15:33 +0100
commit223102f2c5b678df0f8a924c8292f322daaaec4e (patch)
treea7e46d0cbde39c30f9877d315bdbd547c3eb0c1d
parentin ::gnome (diff)
downloadkeruspe-223102f2c5b678df0f8a924c8292f322daaaec4e.tar.gz
keruspe-223102f2c5b678df0f8a924c8292f322daaaec4e.tar.bz2
keruspe-223102f2c5b678df0f8a924c8292f322daaaec4e.zip
update gnome2.eclass
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-rw-r--r--eclass/gnome2.eclass17
1 files changed, 4 insertions, 13 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index 4bfff1c1..2b196a79 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -90,6 +90,8 @@ gnome2_src_unpack() {
gnome2_src_prepare() {
# Reset various variables inherited via the environment.
# Causes test failures, introspection-build failures, and access violations
+ # FIXME: seems to have no effect for exported variables, at least with
+ # portage-2.2.0_alpha74
unset DBUS_SESSION_BUS_ADDRESS
unset DISPLAY
unset GNOME_KEYRING_CONTROL
@@ -97,19 +99,8 @@ gnome2_src_prepare() {
unset XAUTHORITY
unset XDG_SESSION_COOKIE
- # Reset the XDG_* directories to avoid access violations
- export XDG_DATA_HOME="${T}/.local/share"
- export XDG_CONFIG_HOME="${T}/.config"
- export XDG_CACHE_HOME="${T}/.cache"
- export XDG_RUNTIME_DIR="${T}/run"
- mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" \
- "${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}"
-
- # GST_REGISTRY is to work around gst utilities trying to read/write /root
- export GST_REGISTRY="${T}/registry.xml"
+ # Prevent assorted access violations and test failures
+ gnome2_environment_reset
# Prevent scrollkeeper access violations
gnome2_omf_fix