From a3053c4d57374cd02039d187a0e9797787ed302d Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 1 Aug 2009 14:10:22 +0000 Subject: Workaround for bug 279840 -- Xemake using the user's X instead of spawning Xvfb (Portage version: 2.2_rc33/cvs/Linux i686) --- dev-libs/libunique/libunique-1.0.8.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'dev-libs/libunique/libunique-1.0.8.ebuild') 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" } -- cgit v1.2.3-65-gdbad