Update to 2.3.27, plus fix for perl backend [1].

Submitted by:	Xavier Beaudouin <kiwi oav net> [1]
		Joerg Pulz <Joerg Pulz frm2 tum de>
PR:		ports/102235 [1]
		ports/102294
This commit is contained in:
Xin LI 2006-08-20 06:31:42 +00:00
parent ad5b6da6b9
commit 19827fa007
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171001
5 changed files with 56 additions and 4 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= openldap
DISTVERSION= 2.3.26
DISTVERSION= 2.3.27
PORTREVISION= ${OPENLDAP_PORTREVISION}
CATEGORIES= net databases
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \

View file

@ -1,3 +1,3 @@
MD5 (openldap-2.3.26.tgz) = c74713403396100b8ec8fa4deee7a8ca
SHA256 (openldap-2.3.26.tgz) = daf3837efa286422cab4eef5589afa149b03e442d2c658180e36422d28b97479
SIZE (openldap-2.3.26.tgz) = 3757103
MD5 (openldap-2.3.27.tgz) = 0fbae4e9279aaa586adcd9f19b66a5ed
SHA256 (openldap-2.3.27.tgz) = 6ddf211d65aa62bb2165a612f96545d5dc8baf01d269e0f7945ebe066c282ed7
SIZE (openldap-2.3.27.tgz) = 3757519

View file

@ -0,0 +1,11 @@
--- servers/slapd/back-perl/bind.c.orig Fri Aug 18 16:04:41 2006
+++ servers/slapd/back-perl/bind.c Fri Aug 18 16:05:14 2006
@@ -32,7 +32,7 @@
PerlBackend *perl_back = (PerlBackend *) op->o_bd->be_private;
-#ifdef HAVE_WIN32_ASPERL
+#if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
PERL_SET_CONTEXT( PERL_INTERPRETER );
#endif

View file

@ -0,0 +1,31 @@
--- servers/slapd/back-perl/init.c.orig Fri Aug 18 16:01:34 2006
+++ servers/slapd/back-perl/init.c Fri Aug 18 16:04:28 2006
@@ -35,7 +35,9 @@
BackendInfo *bi
)
{
- bi->bi_open = perl_back_open;
+ char *embedding[] = { "", "-e", "0" };
+
+ bi->bi_open = NULL;
bi->bi_config = 0;
bi->bi_close = perl_back_close;
bi->bi_destroy = 0;
@@ -63,16 +65,8 @@
bi->bi_connection_init = 0;
bi->bi_connection_destroy = 0;
- return 0;
-}
-
-int
-perl_back_open(
- BackendInfo *bi
-)
-{
- char *embedding[] = { "", "-e", "0" };
+ // injecting code from perl_back_open, because using fonction reference (bi->bi_open) is not fonctionnal
Debug( LDAP_DEBUG_TRACE, "perl backend open\n", 0, 0, 0 );
if( PERL_INTERPRETER != NULL ) {

View file

@ -0,0 +1,10 @@
--- servers/slapd/back-perl/proto-perl.h.orig Fri Aug 18 16:05:27 2006
+++ servers/slapd/back-perl/proto-perl.h Fri Aug 18 16:05:40 2006
@@ -22,7 +22,6 @@
extern BI_init perl_back_initialize;
-extern BI_open perl_back_open;
extern BI_close perl_back_close;
extern BI_db_init perl_back_db_init;