[102648] trunk/dports/python/py-cython

blair at macports.org blair at macports.org
Tue Feb 5 12:09:31 PST 2013


Revision: 102648
          https://trac.macports.org/changeset/102648
Author:   blair at macports.org
Date:     2013-02-05 12:09:31 -0800 (Tue, 05 Feb 2013)
Log Message:
-----------
py-cython: fix SIGSEGV in __Pyx_CyFunction_traverse.

http://mail.python.org/pipermail/cython-devel/2013-February/003333.html

Modified Paths:
--------------
    trunk/dports/python/py-cython/Portfile

Added Paths:
-----------
    trunk/dports/python/py-cython/files/patch-Cython.Utility.CythonFunction.c.diff

Modified: trunk/dports/python/py-cython/Portfile
===================================================================
--- trunk/dports/python/py-cython/Portfile	2013-02-05 17:57:21 UTC (rev 102647)
+++ trunk/dports/python/py-cython/Portfile	2013-02-05 20:09:31 UTC (rev 102648)
@@ -7,7 +7,7 @@
 
 name                py-cython
 version             0.18
-revision            0
+revision            1
 categories-append   devel
 license             Apache-2
 platforms           darwin
@@ -32,6 +32,9 @@
 checksums           rmd160  79b994498cd0ec327793615ed7be8c8af9e08997 \
                     sha256  cf4ad7faed6bcfdb76da42492ce26ebf927129da3d4849d6982dd2e843d7de8c
 
+patchfiles          patch-Cython.Utility.CythonFunction.c.diff
+patch.pre_args      -p1
+
 if {$subport != $name} {
 
     post-destroot {

Added: trunk/dports/python/py-cython/files/patch-Cython.Utility.CythonFunction.c.diff
===================================================================
--- trunk/dports/python/py-cython/files/patch-Cython.Utility.CythonFunction.c.diff	                        (rev 0)
+++ trunk/dports/python/py-cython/files/patch-Cython.Utility.CythonFunction.c.diff	2013-02-05 20:09:31 UTC (rev 102648)
@@ -0,0 +1,14 @@
+# http://mail.python.org/pipermail/cython-devel/2013-February/003333.html
+
+diff -rNu Cython-0.18/Cython/Utility/CythonFunction.c Cython-0.18-jrray/Cython/Utility/CythonFunction.c
+--- Cython-0.18/Cython/Utility/CythonFunction.c	2013-01-28 13:32:47.000000000 -0800
++++ Cython-0.18-jrray/Cython/Utility/CythonFunction.c	2013-02-05 11:39:13.021087177 -0800
+@@ -554,7 +554,7 @@
+     m->defaults = PyMem_Malloc(size);
+     if (!m->defaults)
+         return PyErr_NoMemory();
+-    memset(m->defaults, 0, sizeof(size));
++    memset(m->defaults, 0, size);
+     m->defaults_pyobjects = pyobjects;
+     return m->defaults;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130205/80052dc6/attachment.html>


More information about the macports-changes mailing list