Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/dbus-python/files: dbus-python-1.0.0-test-socket-tmpdir.patch
Date: Wed, 29 Feb 2012 16:51:25
Message-Id: 20120229165114.2B1FB2004B@flycatcher.gentoo.org
floppym     12/02/29 16:51:14

  Added:                dbus-python-1.0.0-test-socket-tmpdir.patch
  Log:
  Fix test failure on systems with long values in PORTAGE_TMPDIR. Bug 405985. Thanks to Ian Delaney for reporting here and upstream.
  
  (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/dbus-python/files/dbus-python-1.0.0-test-socket-tmpdir.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/dbus-python/files/dbus-python-1.0.0-test-socket-tmpdir.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/dbus-python/files/dbus-python-1.0.0-test-socket-tmpdir.patch?rev=1.1&content-type=text/plain

Index: dbus-python-1.0.0-test-socket-tmpdir.patch
===================================================================
From c53788657c0cfbd038325e690e7097e31f5e8430 Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie@××××××××××××.uk>
Date: Wed, 29 Feb 2012 13:35:24 +0000
Subject: Put sockets for the regression tests in /tmp, not ${builddir}

Some automated build systems (naming no Portage) have really long build
directories, which can cause dbus-python to hit the length limit for Unix
sockets' names.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46747
Signed-off-by: Simon McVittie <simon.mcvittie@××××××××××××.uk>
---
diff --git a/test/tmp-session-bus.conf.in b/test/tmp-session-bus.conf.in
index 9d172ff..3a2c756 100644
--- a/test/tmp-session-bus.conf.in
+++ b/test/tmp-session-bus.conf.in
@@ -4,7 +4,7 @@
 <busconfig>
   <!-- Our well-known bus type, don't change this -->
   <type>session</type>
-  <listen>unix:tmpdir=@abs_top_builddir@/test</listen>
+  <listen>unix:tmpdir=/tmp</listen>
 
   <servicedir>@abs_top_builddir@/test</servicedir>
 
--
cgit v0.9.0.2-2-gbebe