rpms/inkscape/devel inkscape-0.45-python.patch,1.1,1.2

Denis Leroy (denis) fedora-extras-commits at redhat.com
Thu Feb 8 02:43:04 UTC 2007


Author: denis

Update of /cvs/extras/rpms/inkscape/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27542

Modified Files:
	inkscape-0.45-python.patch 
Log Message:
Adjusted python patch for python 2.5

inkscape-0.45-python.patch:

Index: inkscape-0.45-python.patch
===================================================================
RCS file: /cvs/extras/rpms/inkscape/devel/inkscape-0.45-python.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- inkscape-0.45-python.patch	8 Feb 2007 00:50:21 -0000	1.1
+++ inkscape-0.45-python.patch	8 Feb 2007 02:42:32 -0000	1.2
@@ -9,3 +9,28 @@
          if test "$?" -gt "0"; then
              with_python="no"
          else
+--- inkscape-0.45/src/extension/script/inkscape_py_wrap.cpp.orig	2007-02-07 17:11:42.000000000 -0800
++++ inkscape-0.45/src/extension/script/inkscape_py_wrap.cpp	2007-02-07 18:19:21.000000000 -0800
+@@ -802,7 +802,7 @@
+     obj = pyobj;
+     if (PyCFunction_Check(obj)) {
+       /* here we get the method pointer for callbacks */
+-      char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
++      const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+       c = doc ? strstr(doc, "swig_ptr: ") : 0;
+       if (c) {
+ 	c += 10;
+@@ -977,11 +977,11 @@
+ 		       swig_type_info **types_initial) {
+   int i;
+   for (i = 0; methods[i].ml_name; ++i) {
+-    char *c = methods[i].ml_doc;
++    const char *c = methods[i].ml_doc;
+     if (c && (c = strstr(c, "swig_ptr: "))) {
+       int j;
+       swig_const_info *ci = 0;
+-      char *name = c + 10;
++      const char *name = c + 10;
+       for (j = 0; const_table[j].type; j++) {
+ 	if (strncmp(const_table[j].name, name, 
+ 		    strlen(const_table[j].name)) == 0) {




More information about the fedora-extras-commits mailing list