summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-15 17:31:37 +0000
committerZac Medico <zmedico@gentoo.org>2011-07-15 17:31:37 +0000
commitaf76ec3f5c1b2d4d70abd7ba2cad159b64b2a76a (patch)
tree7bc214028307ecfd1bfd4aaac870f43942cd9347 /eclass
parentppc/ppc64 stable wrt #364593 (diff)
downloadgentoo-2-af76ec3f5c1b2d4d70abd7ba2cad159b64b2a76a.tar.gz
gentoo-2-af76ec3f5c1b2d4d70abd7ba2cad159b64b2a76a.tar.bz2
gentoo-2-af76ec3f5c1b2d4d70abd7ba2cad159b64b2a76a.zip
Bug #345659 - fix hardcoded /root/.gnome2
This uses a special $(unset HOME; echo ~) trick to query the home directory that gnome-vfs uses from the password database, as suggested by Jonathan Callen <abcd@gentoo.org> in bug 345659, comment #24.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnome2.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index e25994cfefc5..b417ebbe5111 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.97 2011/07/08 11:35:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.98 2011/07/15 17:31:37 zmedico Exp $
# @ECLASS: gnome2.eclass
# @MAINTAINER:
@@ -116,8 +116,8 @@ gnome2_src_configure() {
G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
fi
- # Avoid sandbox violations caused by misbehaving packages (bug #128289)
- addwrite "/root/.gnome2"
+ # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659)
+ addwrite "$(unset HOME; echo ~)/.gnome2"
# GST_REGISTRY is to work around gst-inspect trying to read/write /root
GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF}