summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-08 07:44:28 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-08 07:44:28 +0000
commit35998daeeb032f0c537ab51eac0708ed12af600e (patch)
tree92e4aebab995f6e932b3b82ffbd68f8dd87c1c81 /app-text
parentVersion bump. (diff)
downloadgentoo-2-35998daeeb032f0c537ab51eac0708ed12af600e.tar.gz
gentoo-2-35998daeeb032f0c537ab51eac0708ed12af600e.tar.bz2
gentoo-2-35998daeeb032f0c537ab51eac0708ed12af600e.zip
Bug #295672 - Override XDG_CONFIG_HOME to avoid sandbox violations.
(Portage version: 2.2_rc56_p14963/cvs/Linux i686)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/calibre/ChangeLog5
-rw-r--r--app-text/calibre/calibre-0.6.26.ebuild11
2 files changed, 10 insertions, 6 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog
index 1a66445ab75f..12d09539337c 100644
--- a/app-text/calibre/ChangeLog
+++ b/app-text/calibre/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-text/calibre
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.63 2009/12/07 04:23:21 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.64 2009/12/08 07:44:28 zmedico Exp $
+
+ 08 Dec 2009; Zac Medico <zmedico@gentoo.org> calibre-0.6.26.ebuild:
+ Bug #295672 - Override XDG_CONFIG_HOME to avoid sandbox violations.
*calibre-0.6.26 (07 Dec 2009)
diff --git a/app-text/calibre/calibre-0.6.26.ebuild b/app-text/calibre/calibre-0.6.26.ebuild
index 5e01896c19a3..b75842a087c9 100644
--- a/app-text/calibre/calibre-0.6.26.ebuild
+++ b/app-text/calibre/calibre-0.6.26.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.6.26.ebuild,v 1.1 2009/12/07 04:23:21 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.6.26.ebuild,v 1.2 2009/12/08 07:44:28 zmedico Exp $
EAPI=2
NEED_PYTHON=2.6
@@ -82,10 +82,11 @@ src_install() {
# violation with kbuildsycoca as in bug #287067, comment #13.
export -n DISPLAY
- # Bug #295672 - Try to avoid sandbox violation in ~/.config by forcing
- # CALIBRE_CONFIG_DIRECTORY to point to our fake temporary $HOME.
- export CALIBRE_CONFIG_DIRECTORY="$HOME/.config/calibre"
- mkdir -p "$CALIBRE_CONFIG_DIRECTORY"
+ # Bug #295672 - Aavoid sandbox violation in ~/.config by forcing
+ # variables to point to our fake temporary $HOME.
+ export XDG_CONFIG_HOME="$HOME/.config"
+ export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre"
+ mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY"
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share"