summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-05 08:32:33 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-05 08:32:33 +0000
commit4c3b9c374a2ee1d751a0089890fdf08cdc0ec60e (patch)
treed342fa61556a619b6cd0b81a039f8967932a6d48 /app-text/calibre
parentUse bundled copy of libopenal.so.0 (OpenAL Demo 0.0.8) because app-emulation/... (diff)
downloadgentoo-2-4c3b9c374a2ee1d751a0089890fdf08cdc0ec60e.tar.gz
gentoo-2-4c3b9c374a2ee1d751a0089890fdf08cdc0ec60e.tar.bz2
gentoo-2-4c3b9c374a2ee1d751a0089890fdf08cdc0ec60e.zip
Bug #287067 - Disable unnecessary privilege dropping during src_install.
(Portage version: 2.2_rc43_p14493/cvs/Linux i686)
Diffstat (limited to 'app-text/calibre')
-rw-r--r--app-text/calibre/ChangeLog5
-rw-r--r--app-text/calibre/calibre-0.6.16-r1.ebuild7
2 files changed, 10 insertions, 2 deletions
diff --git a/app-text/calibre/ChangeLog b/app-text/calibre/ChangeLog
index 6a83385dece3..784d023343ed 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.52 2009/10/05 07:48:36 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.53 2009/10/05 08:32:33 zmedico Exp $
+
+ 05 Oct 2009; Zac Medico <zmedico@gentoo.org> calibre-0.6.16-r1.ebuild:
+ Bug #287067 - Disable unnecessary privilege dropping during src_install.
05 Oct 2009; Zac Medico <zmedico@gentoo.org> calibre-0.6.16-r1.ebuild:
Avoid sandbox violations when xdg-mime is called during src_install,
diff --git a/app-text/calibre/calibre-0.6.16-r1.ebuild b/app-text/calibre/calibre-0.6.16-r1.ebuild
index 9eca2129db66..0f3e39343f77 100644
--- a/app-text/calibre/calibre-0.6.16-r1.ebuild
+++ b/app-text/calibre/calibre-0.6.16-r1.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.16-r1.ebuild,v 1.2 2009/10/05 07:48:36 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.6.16-r1.ebuild,v 1.3 2009/10/05 08:32:33 zmedico Exp $
EAPI=2
NEED_PYTHON=2.6
@@ -55,6 +55,11 @@ src_prepare() {
-e "s:xdg-mime install:xdg-mime install --mode user:" \
-e "s:old_udev = '/etc:old_udev = '${D}etc:" \
-i src/calibre/linux.py || die "sed'ing in the IMAGE path failed"
+
+ # Disable unnecessary privilege dropping for bug #287067.
+ sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
+ -i setup/install.py || die "sed'ing in the IMAGE path failed"
+
distutils_src_prepare
}