packages: python-PyPAM/python-PyPAM-destructor.patch (NEW), python-PyPAM/py...
lkrotowski
lkrotowski at pld-linux.org
Mon Jan 4 18:01:31 CET 2010
Author: lkrotowski Date: Mon Jan 4 17:01:31 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- initial version
---- Files affected:
packages/python-PyPAM:
python-PyPAM-destructor.patch (NONE -> 1.1) (NEW), python-PyPAM-dlopen.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-PyPAM/python-PyPAM-destructor.patch
diff -u /dev/null packages/python-PyPAM/python-PyPAM-destructor.patch:1.1
--- /dev/null Mon Jan 4 18:01:31 2010
+++ packages/python-PyPAM/python-PyPAM-destructor.patch Mon Jan 4 18:01:26 2010
@@ -0,0 +1,12 @@
+- use proper memmory deallocation (see: http://docs.python.org/c-api/memory.html)
+--- PyPAM-0.5.0/PAMmodule.c.org 2010-01-04 17:35:21.937278677 +0100
++++ PyPAM-0.5.0/PAMmodule.c 2010-01-04 17:46:09.922153881 +0100
+@@ -541,7 +541,7 @@
+ pam_end(self->pamh, PAM_SUCCESS);
+ dlclose(self->dlh2);
+ dlclose(self->dlh1);
+- PyMem_DEL(self);
++ PyObject_DEL(self);
+ }
+
+ static PyObject * PyPAM_getattr(PyPAMObject *self, char *name)
================================================================
Index: packages/python-PyPAM/python-PyPAM-dlopen.patch
diff -u /dev/null packages/python-PyPAM/python-PyPAM-dlopen.patch:1.1
--- /dev/null Mon Jan 4 18:01:31 2010
+++ packages/python-PyPAM/python-PyPAM-dlopen.patch Mon Jan 4 18:01:26 2010
@@ -0,0 +1,14 @@
+- do not require -devel package
+--- PyPAM-0.5.0/PAMmodule.c.org 2010-01-04 17:35:21.937278677 +0100
++++ PyPAM-0.5.0/PAMmodule.c 2010-01-04 17:35:36.688155084 +0100
+@@ -149,8 +149,8 @@
+ Py_INCREF(Py_None);
+ p->user_data = Py_None;
+
+- p->dlh1 = dlopen("libpam.so", RTLD_LAZY | RTLD_GLOBAL);
+- p->dlh2 = dlopen("libpam_misc.so", RTLD_LAZY | RTLD_GLOBAL);
++ p->dlh1 = dlopen("libpam.so.0", RTLD_LAZY | RTLD_GLOBAL);
++ p->dlh2 = dlopen("libpam_misc.so.0", RTLD_LAZY | RTLD_GLOBAL);
+
+ return (PyObject *) p;
+ }
================================================================
More information about the pld-cvs-commit
mailing list