[MacPorts] #55051: py-matplotlib: pre-C99 compatibility patch
MacPorts
noreply at macports.org
Tue Oct 17 17:52:24 UTC 2017
#55051: py-matplotlib: pre-C99 compatibility patch
----------------------------+----------------------
Reporter: ccorn | Owner: sean@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: py-matplotlib |
----------------------------+----------------------
Comment (by udbraumann):
Your proposed patch looks likes this and might be not valid:
{{{
diff --git a/python/py-matplotlib/files/patch-src-macosx.m.diff b/python
/py-matplotlib/files/patch-src-macosx.m.diff
index 18dea4aa13..2b68c7f79f 100644
--- a/python/py-matplotlib/files/patch-src-macosx.m.diff
+++ b/python/py-matplotlib/files/patch-src-macosx.m.diff
@@ -1,5 +1,5 @@
---- src/_macosx.m.orig 2015-11-29 10:44:55.000000000 -0700
-+++ src/_macosx.m 2015-11-29 11:02:16.000000000 -0700
+--- src/_macosx.m.orig 2017-10-03 08:50:44.000000000 +0200
++++ src/_macosx.m 2017-10-10 12:40:29.000000000 +0200
@@ -1,5 +1,8 @@
#include <Cocoa/Cocoa.h>
#include <ApplicationServices/ApplicationServices.h>
@@ -8,4 +8,14 @@
+#endif
#include <sys/socket.h>
#include <Python.h>
- #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+
+@@ -1319,7 +1322,8 @@ NavigationToolbar_get_active (Navigation
+ }
+ Py_ssize_t list_index = 0;
+ PyObject* list = PyList_New(m);
+- for (size_t state_index = 0; state_index < n; state_index++)
++ size_t state_index;
++ for (state_index = 0; state_index < n; state_index++)
+ {
+ if(states[state_index]==1)
+ {
}}}
--
Ticket URL: <https://trac.macports.org/ticket/55051#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list