SF.net SVN: gar:[22263] csw/mgar/pkg/lang-python/pycrypto/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Oct 19 23:06:06 CEST 2013


Revision: 22263
          http://gar.svn.sourceforge.net/gar/?rev=22263&view=rev
Author:   dmichelsen
Date:     2013-10-19 21:06:06 +0000 (Sat, 19 Oct 2013)
Log Message:
-----------
lang-python/pycrypto/trunk: Work around missing sem_open on Solaris 9

Modified Paths:
--------------
    csw/mgar/pkg/lang-python/pycrypto/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/lang-python/pycrypto/trunk/files/0001-Allow-testing-when-sem_open-does-not-exist.-See-http.patch

Modified: csw/mgar/pkg/lang-python/pycrypto/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/pycrypto/trunk/Makefile	2013-10-19 20:07:09 UTC (rev 22262)
+++ csw/mgar/pkg/lang-python/pycrypto/trunk/Makefile	2013-10-19 21:06:06 UTC (rev 22263)
@@ -24,11 +24,12 @@
 MASTER_SITES = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
 DISTFILES += $(DISTNAME).tar.gz
 
+# Make sure to skip test when sem_open is not available. Use patch until this is fixed:
+#   https://github.com/dlitz/pycrypto/pull/61
+PATCHFILES += 0001-Allow-testing-when-sem_open-does-not-exist.-See-http.patch
+
 LICENSE = COPYRIGHT
 
-# We must have sem_open and this is only available in Python for Solaris 10
-PACKAGING_PLATFORMS = solaris10-i386 solaris10-sparc
-
 BUILD_DEP_PACKAGES += CSWlibgmp-dev
 
 PACKAGES += CSWpy-crypto

Added: csw/mgar/pkg/lang-python/pycrypto/trunk/files/0001-Allow-testing-when-sem_open-does-not-exist.-See-http.patch
===================================================================
--- csw/mgar/pkg/lang-python/pycrypto/trunk/files/0001-Allow-testing-when-sem_open-does-not-exist.-See-http.patch	                        (rev 0)
+++ csw/mgar/pkg/lang-python/pycrypto/trunk/files/0001-Allow-testing-when-sem_open-does-not-exist.-See-http.patch	2013-10-19 21:06:06 UTC (rev 22263)
@@ -0,0 +1,29 @@
+From 289eff0caf5199cf95308a6b9ab3c558da800ebe Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Sat, 19 Oct 2013 22:56:33 +0200
+Subject: [PATCH] Allow testing when sem_open does not exist. See
+ https://github.com/dlitz/pycrypto/pull/61
+
+---
+ lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py |    5 +++++
+ 1 file changed, 5 insertions(+)
+
+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 @@ from Crypto.Util.py3compat import *
+ 
+ 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
+ 
+-- 
+1.7.10.3
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list