From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PzxD3-0004nC-EB for garchives@archives.gentoo.org; Wed, 16 Mar 2011 20:20:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E84E41C01F; Wed, 16 Mar 2011 20:20:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B74E41C01F for ; Wed, 16 Mar 2011 20:20:36 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16EC41BC1EF for ; Wed, 16 Mar 2011 20:20:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6A1EB8006E for ; Wed, 16 Mar 2011 20:20:35 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: Subject: [gentoo-commits] proj/gnome:master commit in: eclass/ X-VCS-Repository: proj/gnome X-VCS-Files: eclass/gnome2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: c63c943813469df5904140ad94e820b3a0444d1e Date: Wed, 16 Mar 2011 20:20:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: c721473d075816b246716bae470dea2d commit: c63c943813469df5904140ad94e820b3a0444d1e Author: Nirbheek Chauhan gentoo org> AuthorDate: Wed Mar 16 20:20:24 2011 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Wed Mar 16 20:20:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3Dc63c9438 gnome2.eclass: unset more vars, set XDG_* vars --- eclass/gnome2.eclass | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index f206fc1..878cd50 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -55,9 +55,25 @@ gnome2_src_unpack() { } =20 gnome2_src_prepare() { - # Don't use the session bus address inherited via the environment - # causes test and introspection-building failures + # Reset various variables inherited via the environment. + # Causes test failures, introspection-build failures, and access violat= ions unset DBUS_SESSION_BUS_ADDRESS + unset DISPLAY + unset GNOME_KEYRING_CONTROL + unset GNOME_KEYRING_PID + unset XAUTHORITY + unset XDG_SESSION_COOKIE + + # Reset the XDG_* directories to avoid access violations + export XDG_DATA_HOME=3D"${T}/.local/share" + export XDG_CONFIG_HOME=3D"${T}/.config" + export XDG_CACHE_HOME=3D"${T}/.cache" + export XDG_RUNTIME_DIR=3D"${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.htm= l + chmod 0700 "${XDG_RUNTIME_DIR}" =20 # Prevent scrollkeeper access violations gnome2_omf_fix