Bug#683738: unblock: joblib/0.6.4-3
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package joblib
Had to fix kfreebsd compatibility issue which was detected/triggered by
statsmodels unittests ran at build time
unblock joblib/0.6.4-3
neurodebian@head2:~/deb/builds/joblib$ debdiff 0.6.4-1/joblib_0.6.4-1.dsc 0.6.4-3/joblib_0.6.4-3.dsc
diff -Nru joblib-0.6.4/debian/changelog joblib-0.6.4/debian/changelog
--- joblib-0.6.4/debian/changelog 2012-05-07 22:35:53.000000000 -0400
+++ joblib-0.6.4/debian/changelog 2012-07-23 14:36:37.000000000 -0400
@@ -1,3 +1,18 @@
+joblib (0.6.4-3) unstable; urgency=low
+
+ * debian/patches/up_no_parallel_if_no_locking -- needed more work for
+ python2.6 compatibility where the exception was not triggered.
+
+ -- Yaroslav Halchenko <debian@onerussian.com> Mon, 23 Jul 2012 14:35:45 -0400
+
+joblib (0.6.4-2) unstable; urgency=low
+
+ * debian/patches/up_no_parallel_if_no_locking -- additional check for
+ availability of locking mechanisms to decide upon using multiprocessing.
+ Needed for robust functioning on kfrebsd systems.
+
+ -- Yaroslav Halchenko <debian@onerussian.com> Mon, 16 Jul 2012 22:59:47 -0400
+
joblib (0.6.4-1) unstable; urgency=low
* New upstream release
diff -Nru joblib-0.6.4/debian/patches/series joblib-0.6.4/debian/patches/series
--- joblib-0.6.4/debian/patches/series 2012-05-07 22:35:53.000000000 -0400
+++ joblib-0.6.4/debian/patches/series 2012-07-23 14:36:37.000000000 -0400
@@ -0,0 +1 @@
+up_no_parallel_if_no_locking
diff -Nru joblib-0.6.4/debian/patches/up_no_parallel_if_no_locking joblib-0.6.4/debian/patches/up_no_parallel_if_no_locking
--- joblib-0.6.4/debian/patches/up_no_parallel_if_no_locking 1969-12-31 19:00:00.000000000 -0500
+++ joblib-0.6.4/debian/patches/up_no_parallel_if_no_locking 2012-07-23 14:36:37.000000000 -0400
@@ -0,0 +1,30 @@
+From: Yaroslav Halchenko <debian@onerussian.com>
+Subject: joblib uses .Pool which requres locking to be available on the platform
+
+e.g. needed on kfreebsd systems -- otherwise would try to initiate the .Pool
+and would backtrace -- leads to FTBFS of any package which excercizes
+build-time tests using joblib, e.g. statsmodels
+
+Origin: Debian
+Forwarded: https://github.com/joblib/joblib/pull/39
+Last-Update: 2012-07-16
+
+--- a/joblib/parallel.py
++++ b/joblib/parallel.py
+@@ -28,6 +28,16 @@ if multiprocessing:
+ except ImportError:
+ multiprocessing = None
+
++# 2nd stage: validate that locking is available on the system and
++# issue a warning if not
++if multiprocessing:
++ try:
++ _sem = multiprocessing.Semaphore()
++ del _sem # cleanup
++ except (ImportError, OSError), e:
++ multiprocessing = None
++ warnings.warn('%s. joblib will operate in serial mode' % (e,))
++
+ from .format_stack import format_exc, format_outer_frames
+ from .logger import Logger, short_format_time
+ from .my_exceptions import TransportableException, _mk_exception
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: