From owner-freebsd-ports@FreeBSD.ORG Thu Mar 24 22:38:02 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEB6A16A4CE for ; Thu, 24 Mar 2005 22:38:02 +0000 (GMT) Received: from mail.npubs.com (npubs.com [209.66.100.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C99343D1F for ; Thu, 24 Mar 2005 22:38:02 +0000 (GMT) (envelope-from nielsen@memberwebs.com) From: Nielsen User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------020406080001090303040406" Message-Id: <20050324225957.9D0B0840428@mail.npubs.com> X-Virus-Scanned: ClamAV using ClamSMTP Date: Thu, 24 Mar 2005 22:59:58 +0000 (GMT) Subject: Threading patch for net/py-ldap X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 22:38:02 -0000 This is a multi-part message in MIME format. --------------020406080001090303040406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In some cases python runs without threading support. Such as when running mod_python inside of apache 1.3 [1]. The py-ldap port is compiled with threading by default. The attach patch allows one to disable that option by supplying the WITHOUT_THREADS=1 variable. Cheers, Nate PS: This is the address listed for the maintainair of the py-ldap port, if this patch should be sent elsewhere, please let me know. [1] http://www.freebsd.org/cgi/url.cgi?ports/www/mod_python/pkg-descr -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCQ0Ede/sRCNknZa8RAm+7AJ9d9lVfP4iG7wTXjU/0KW7f+GQkmgCfdnFr 6zsftAG+ZFKSS6E6J12psrI= =b7J5 -----END PGP SIGNATURE----- --------------020406080001090303040406 Content-Type: text/x-patch; name="py-ldap-port-thread.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="py-ldap-port-thread.patch" --- Makefile.orig Fri Feb 25 21:23:10 2005 +++ Makefile Thu Mar 24 19:24:45 2005 @@ -20,10 +20,16 @@ USE_OPENLDAP= yes USE_REINPLACE= yes +.if defined(WITHOUT_THREADS) +LDAPLIB=ldap +.else +LDAPLIB=ldap_r +.endif + do-configure: @${REINPLACE_CMD} -e "s=/usr/local/openldap-OPENLDAP_REL_ENG_2_2/lib=${LOCALBASE}/lib=" \ -e "s=/usr/local/openldap-OPENLDAP_REL_ENG_2_2/include=${LOCALBASE}/include=" \ - -e "s=ldap_r lber ssl crypto sasl2=ldap_r lber ssl crypto=" \ + -e "s=ldap_r lber ssl crypto sasl2=${LDAPLIB} lber ssl crypto=" \ ${WRKSRC}/setup.cfg .include --------------020406080001090303040406--