Date: Mon, 10 Apr 2006 15:00:04 +0800 (CST) From: Xin LI <delphij@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: vsevolod@FreeBSD.org Subject: ports/95569: [PATCH] Update py-ldap2 to 2.2.0 Message-ID: <200604100700.k3A704g6009973@tarsier.delphij.net> Resent-Message-ID: <200604100700.k3A70SC8073756@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 95569 >Category: ports >Synopsis: [PATCH] Update py-ldap2 to 2.2.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Apr 10 07:00:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Xin LI >Release: FreeBSD 6.1-RC i386 >Organization: The FreeBSD Simplified Chinese Project >Environment: System: FreeBSD tarsier.delphij.net 6.1-RC FreeBSD 6.1-RC #26: Sun Apr 9 04:27:53 CST 2006 delphij@tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386 >Description: The update would update python-ldap in the port to 2.2.0, which fixes a lot of bugs (including two memory leaks that prevents py-ldap2 from being able to be used in a daemon). Please note that the local patch is no longer needed, and should be removed. This PR superceds ports/95341. >How-To-Repeat: >Fix: --- patch-py-ldap2 begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/py-ldap2/Makefile,v retrieving revision 1.32 diff -u -r1.32 Makefile --- Makefile 5 Apr 2006 07:57:56 -0000 1.32 +++ Makefile 10 Apr 2006 06:50:15 -0000 @@ -5,7 +5,7 @@ # $FreeBSD: ports/net/py-ldap2/Makefile,v 1.32 2006/04/05 07:57:56 sem Exp $ PORTNAME= ldap2 -PORTVERSION= 2.0.11 +PORTVERSION= 2.2.0 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= python-ldap Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/py-ldap2/distinfo,v retrieving revision 1.14 diff -u -r1.14 distinfo --- distinfo 5 Apr 2006 07:57:56 -0000 1.14 +++ distinfo 10 Apr 2006 06:50:33 -0000 @@ -1,3 +1,3 @@ -MD5 (python-ldap-2.0.11.tar.gz) = 1c20cdbe8cfab1c92b39848f7deeb6ec -SHA256 (python-ldap-2.0.11.tar.gz) = c320ca3502426de75a5b982da2a57c44dc20c1024986d169a782299663f1c69f -SIZE (python-ldap-2.0.11.tar.gz) = 71715 +MD5 (python-ldap-2.2.0.tar.gz) = f17b02ef1dc6ab12d819bfef9c036627 +SHA256 (python-ldap-2.2.0.tar.gz) = 143e42559817d139ae4cbc01e52bba339531a146e3f739641604b96045adc784 +SIZE (python-ldap-2.2.0.tar.gz) = 70993 Index: files/patch-Modules-LDAPObject.c =================================================================== RCS file: files/patch-Modules-LDAPObject.c diff -N files/patch-Modules-LDAPObject.c --- files/patch-Modules-LDAPObject.c 5 Apr 2006 07:57:56 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,26 +0,0 @@ -Index: LDAPObject.c -=================================================================== -RCS file: /cvsroot/python-ldap/python-ldap/Modules/LDAPObject.c,v -retrieving revision 1.72 -diff -u -r1.72 LDAPObject.c ---- Modules/LDAPObject.c 11 Mar 2006 21:05:57 -0000 1.72 -+++ Modules/LDAPObject.c 23 Mar 2006 21:48:33 -0000 -@@ -971,8 +971,16 @@ - if (pmsg == NULL) { - retval = NULL; - } else { -- retval = Py_BuildValue("(OOiO)", result_str, pmsg, res_msgid, -- pyctrls ? pyctrls : PyList_New(0)); -+ if (pyctrls != NULL) { -+ retval = Py_BuildValue("(OOiO)", result_str, pmsg, res_msgid, -+ pyctrls); -+ } else { -+ PyObject *pNewList = PyList_New(0); -+ retval = Py_BuildValue("(OOiO)", result_str, pmsg, res_msgid, -+ pNewList); -+ Py_DECREF(pNewList); -+ } -+ - if (pmsg != Py_None) { - Py_DECREF(pmsg); - } --- patch-py-ldap2 ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604100700.k3A704g6009973>