summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2009-08-01 14:10:22 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2009-08-01 14:10:22 +0000
commita3053c4d57374cd02039d187a0e9797787ed302d (patch)
tree4b4ae9b348591d16e413292aa0e5e4b642bbed95 /dev-libs/libunique/libunique-1.0.8.ebuild
parentKeywording for ppc. (diff)
downloadgentoo-2-a3053c4d57374cd02039d187a0e9797787ed302d.tar.gz
gentoo-2-a3053c4d57374cd02039d187a0e9797787ed302d.tar.bz2
gentoo-2-a3053c4d57374cd02039d187a0e9797787ed302d.zip
Workaround for bug 279840 -- Xemake using the user's X instead of spawning Xvfb
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'dev-libs/libunique/libunique-1.0.8.ebuild')
-rw-r--r--dev-libs/libunique/libunique-1.0.8.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-libs/libunique/libunique-1.0.8.ebuild b/dev-libs/libunique/libunique-1.0.8.ebuild
index 12b7a2b58a28..9c6299f23904 100644
--- a/dev-libs/libunique/libunique-1.0.8.ebuild
+++ b/dev-libs/libunique/libunique-1.0.8.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/dev-libs/libunique/libunique-1.0.8.ebuild,v 1.9 2009/05/23 15:30:39 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libunique/libunique-1.0.8.ebuild,v 1.10 2009/08/01 14:10:22 nirbheek Exp $
EAPI="2"
@@ -37,7 +37,13 @@ src_prepare() {
src_test() {
cd "${S}/tests"
- cp "${FILESDIR}/run-tests" .
+ # Fix environment variable leakage (due to `su` etc)
+ unset DBUS_SESSION_BUS_ADDRESS
+
+ # Force Xemake to use Xvfb, bug 279840
+ unset XAUTHORITY
+
+ cp "${FILESDIR}/run-tests" . || die "Unable to cp \${FILESDIR}/run-tests"
Xemake -f run-tests || die "Tests failed"
}