Date: Thu, 24 Mar 2005 22:59:58 +0000 (GMT) From: Nielsen <nielsen@memberwebs.com> To: ports@freebsd.org Subject: Threading patch for net/py-ldap Message-ID: <20050324225957.9D0B0840428@mail.npubs.com>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> --------------020406080001090303040406--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050324225957.9D0B0840428>