packages: PyCXX/PyCXX.spec, PyCXX/PyCXX-memleak_fix.patch (NEW) - Release 2...

matkor matkor at pld-linux.org
Tue Jul 26 19:02:28 CEST 2011


Author: matkor                       Date: Tue Jul 26 17:02:28 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Release 2. Added memleak fix by Barry Scott.

---- Files affected:
packages/PyCXX:
   PyCXX.spec (1.1 -> 1.2) , PyCXX-memleak_fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/PyCXX/PyCXX.spec
diff -u packages/PyCXX/PyCXX.spec:1.1 packages/PyCXX/PyCXX.spec:1.2
--- packages/PyCXX/PyCXX.spec:1.1	Fri May 27 16:44:36 2011
+++ packages/PyCXX/PyCXX.spec	Tue Jul 26 19:02:23 2011
@@ -6,12 +6,13 @@
 Summary(pl.UTF-8):	Klasy C++ pomocne przy tworzeniu modułów Pythona
 Name:		PyCXX
 Version:	6.2.3
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Libraries
 # http://prdownloads.sourceforge.net/cxx/pycxx-6.2.3.tar.gz
 Source0:	http://downloads.sourceforge.net/cxx/pycxx-%{version}.tar.gz
 # Source0-md5:	4e545ad225df9c14a3b344b1e6224661
+Patch0:         %{name}-memleak_fix.patch
 URL:		http://cxx.sourceforge.net/
 BuildRequires:	python-modules
 Requires:	libstdc++-devel
@@ -31,6 +32,7 @@
 
 %prep
 %setup -q -n pycxx-%{version}
+%patch0 -p1
 
 %build
 
@@ -57,6 +59,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/07/26 17:02:23  matkor
+- Release 2. Added memleak fix by Barry Scott.
+
 Revision 1.1  2011/05/27 14:44:36  matkor
 - Initial version 6.2.3-1.
 

================================================================
Index: packages/PyCXX/PyCXX-memleak_fix.patch
diff -u /dev/null packages/PyCXX/PyCXX-memleak_fix.patch:1.1
--- /dev/null	Tue Jul 26 19:02:28 2011
+++ packages/PyCXX/PyCXX-memleak_fix.patch	Tue Jul 26 19:02:23 2011
@@ -0,0 +1,48 @@
+--- ./CXX/Python2/ExtensionOldType.hxx-memleak_fix	2011-07-26 17:32:57.230429675 +0200
++++ ./CXX/Python2/ExtensionOldType.hxx	2011-07-26 17:34:05.384066472 +0200
+@@ -178,7 +178,7 @@ namespace Py
+             Tuple self( 2 );
+ 
+             self[0] = Object( this );
+-            self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
++            self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
+ 
+             PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() );
+ 
+--- ./CXX/Python2/ExtensionModule.hxx-memleak_fix	2011-07-26 17:34:21.287470428 +0200
++++ ./CXX/Python2/ExtensionModule.hxx	2011-07-26 17:35:49.331193448 +0200
+@@ -139,8 +139,8 @@ namespace Py
+                 static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc );
+ 
+                 Tuple args( 2 );
+-                args[0] = Object( self );
+-                args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
++                args[0] = Object( self, true );
++                args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
+ 
+                 PyObject *func = PyCFunction_New
+                                     (
+--- ./CXX/Python3/ExtensionModule.hxx.memleak_fix	2011-07-26 18:55:45.910115406 +0200
++++ ./CXX/Python3/ExtensionModule.hxx	2011-07-26 18:56:55.327162541 +0200
+@@ -137,8 +137,8 @@ namespace Py
+                 static PyObject *self = PyCObject_FromVoidPtr( this, do_not_dealloc );
+ 
+                 Tuple args( 2 );
+-                args[0] = Object( self );
+-                args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
++                args[0] = Object( self, true );
++                args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
+ 
+                 PyObject *func = PyCFunction_New
+                                     (
+--- ./CXX/Python3/ExtensionOldType.hxx.memleak_fix	2011-07-26 18:54:39.309749026 +0200
++++ ./CXX/Python3/ExtensionOldType.hxx	2011-07-26 18:55:25.346669091 +0200
+@@ -178,7 +178,7 @@ namespace Py
+             Tuple self( 2 );
+ 
+             self[0] = Object( this );
+-            self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ) );
++            self[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
+ 
+             PyObject *func = PyCFunction_New( &method_def->ext_meth_def, self.ptr() );
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/PyCXX/PyCXX.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list