diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-06-01 13:38:16 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-06-01 13:38:16 +0000 |
commit | a7d44ce5405fd13d653880bcb3f446eb186cbab6 (patch) | |
tree | ea4fceb7d5f8597ade21e9e7f6d02f95d48fcda4 /lang/python34 | |
parent | ac6ecfc4c4f6de40fdc0085e9f3ab85abf795b0b (diff) | |
download | pkgsrc-a7d44ce5405fd13d653880bcb3f446eb186cbab6.tar.gz |
Fix Undefined symbol "_PyMp_sem_unlink" error while importing _multiprocessing
module under DragonFly
DragonFly has not sem_open/sem_unlink etc.
Make consistent with POSIX named semaphore conditionals.
Diffstat (limited to 'lang/python34')
-rw-r--r-- | lang/python34/distinfo | 3 | ||||
-rw-r--r-- | lang/python34/patches/patch-Modules___multiprocessing_multiprocessing.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/python34/distinfo b/lang/python34/distinfo index 423710fb4f4..4b1ac15c82b 100644 --- a/lang/python34/distinfo +++ b/lang/python34/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.10 2014/06/01 10:11:29 wiz Exp $ +$NetBSD: distinfo,v 1.11 2014/06/01 13:38:16 ryoon Exp $ SHA1 (Python-3.4.1.tar.xz) = 143e098efe7ee7bec8a4904ec4b322f28a067a03 RMD160 (Python-3.4.1.tar.xz) = 276fda8bd4ef515da83645ddd5f01eb0f68522a5 Size (Python-3.4.1.tar.xz) = 14125788 bytes SHA1 (patch-Lib_distutils_unixccompiler.py) = 39cb8d1e1e3e76e2b6b5dbc1a6b5e0815300b2ce +SHA1 (patch-Modules___multiprocessing_multiprocessing.c) = 29b3820ec7baeb9796361fdf92e0230ea279dde5 SHA1 (patch-aa) = 14359f8d0527eff08073c0aea60dfe8961d9255d SHA1 (patch-ah) = b3a1363f6d210f855f3769650e3891b0df5c531d SHA1 (patch-al) = 1867e7145d8ab008338461ee6c662d653479443d diff --git a/lang/python34/patches/patch-Modules___multiprocessing_multiprocessing.c b/lang/python34/patches/patch-Modules___multiprocessing_multiprocessing.c new file mode 100644 index 00000000000..dd727676862 --- /dev/null +++ b/lang/python34/patches/patch-Modules___multiprocessing_multiprocessing.c @@ -0,0 +1,16 @@ +$NetBSD: patch-Modules___multiprocessing_multiprocessing.c,v 1.1 2014/06/01 13:38:16 ryoon Exp $ + + + +--- Modules/_multiprocessing/multiprocessing.c.orig 2014-05-19 05:19:39.000000000 +0000 ++++ Modules/_multiprocessing/multiprocessing.c +@@ -128,7 +128,9 @@ static PyMethodDef module_methods[] = { + {"recv", multiprocessing_recv, METH_VARARGS, ""}, + {"send", multiprocessing_send, METH_VARARGS, ""}, + #endif ++#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) + {"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""}, ++#endif + {NULL} + }; + |