[Python-modules-commits] r26190 - in packages/python-crypto/trunk/debian (3 files)
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Thu Oct 17 20:09:09 UTC 2013
Date: Thursday, October 17, 2013 @ 20:09:07
Author: sramacher
Revision: 26190
debian/patches/multiprocessing-test.patch: Check if
multiprocessing.synchronize is working before running tests that use it.
Fixes build failures on kfreebsd-*.
Added:
packages/python-crypto/trunk/debian/patches/multiprocessing-test.patch
Modified:
packages/python-crypto/trunk/debian/changelog
packages/python-crypto/trunk/debian/patches/series
Modified: packages/python-crypto/trunk/debian/changelog
===================================================================
--- packages/python-crypto/trunk/debian/changelog 2013-10-17 20:06:15 UTC (rev 26189)
+++ packages/python-crypto/trunk/debian/changelog 2013-10-17 20:09:07 UTC (rev 26190)
@@ -1,3 +1,11 @@
+python-crypto (2.6.1-2) unstable; urgency=low
+
+ * debian/patches/multiprocessing-test.patch: Check if
+ multiprocessing.synchronize is working before running tests that use it.
+ Fixes build failures on kfreebsd-*.
+
+ -- Sebastian Ramacher <sramacher at debian.org> Thu, 17 Oct 2013 22:02:39 +0200
+
python-crypto (2.6.1-1) unstable; urgency=high
[ Jakub Wilk ]
Added: packages/python-crypto/trunk/debian/patches/multiprocessing-test.patch
===================================================================
--- packages/python-crypto/trunk/debian/patches/multiprocessing-test.patch (rev 0)
+++ packages/python-crypto/trunk/debian/patches/multiprocessing-test.patch 2013-10-17 20:09:07 UTC (rev 26190)
@@ -0,0 +1,25 @@
+Description: Do not run multiprocessing test if multiprocessing.synchronize is not working
+ On platforms that do not have a working sem_open implementation, importing
+ multiprocessing.synchronize will fail with an ImportError. While creating a
+ multiprocessing.Pool instance, multiprocessing.synchronize will be imported and
+ might throw an ImportError.
+Author: Sebastian Ramacher <sramacher at debian.org>
+Forwarded: yes, https://github.com/dlitz/pycrypto/pull/61
+Last-Update: 2013-10-17
+
+diff --git a/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py b/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py
+index 771a663..3fd7ad4 100644
+--- a/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py
++++ b/lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py
+@@ -39,6 +39,11 @@
+
+ try:
+ import multiprocessing
++ # multiprocessing.Pool uses classes from multiprocessing.synchronize, so we
++ # need to check if multiprocessing.semaphore will work. Otherwise creating a
++ # multiprocessing.Pool instance will fail with an ImportError. See Python
++ # bug #3770 for details.
++ import multiprocessing.synchronize
+ except ImportError:
+ multiprocessing = None
+
Modified: packages/python-crypto/trunk/debian/patches/series
===================================================================
--- packages/python-crypto/trunk/debian/patches/series 2013-10-17 20:06:15 UTC (rev 26189)
+++ packages/python-crypto/trunk/debian/patches/series 2013-10-17 20:09:07 UTC (rev 26190)
@@ -5,3 +5,4 @@
reenable-redefined-tests.patch
fix-py3-errors.patch
fix-except-shadows-builtin.patch
+multiprocessing-test.patch
More information about the Python-modules-commits
mailing list