From 5a1e1f48433ba867fb035b9dc31882f8d90f7744 Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Wed, 13 Apr 2011 17:19:19 -0400
Subject: [PATCH] Use JOBLIB_MULTIPROCESSING=0 to suppress use of
 multiprocessing by joblib while running tests to prevent failures in chroots
 without /dev/shm mounted

---
 debian/changelog | 5 ++++-
 debian/rules     | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7e8847008a..ce0ae3fd97 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,11 @@ scikit-learn (0.7.1.dfsg-3) unstable; urgency=low
 
   * Do not build documentation in -a mode, to prevent timeouts on buildd
     servers
+  * Use JOBLIB_MULTIPROCESSING=0 to suppress use of multiprocessing by
+    joblib while running tests to prevent failures in chroots without
+    /dev/shm mounted
 
- -- Yaroslav Halchenko <debian@onerussian.com>  Wed, 13 Apr 2011 16:27:14 -0400
+ -- Yaroslav Halchenko <debian@onerussian.com>  Wed, 13 Apr 2011 17:18:46 -0400
 
 scikit-learn (0.7.1.dfsg-2) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 164ec6eeab..9543666c4f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	: # Run unittests here against installed scikits.learn
 	export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/`; \
 	export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
+	export JOBLIB_MULTIPROCESSING=0; \
 	cd build/; python$* /usr/bin/nosetests -s scikits.learn; \
 			   python$* /usr/bin/nosetests --with-doctest --doctest-extension=rst ../doc/
 else
-- 
GitLab