openldap/openldap.patch

Sat, 24 Mar 2012 21:40:49 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 24 Mar 2012 21:40:49 +0100
changeset 414
fd611cde817f
parent 174
8998cbee3fc3
child 586
e10b124b2f21
permissions
-rw-r--r--

Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.

michael@174 1 Index: include/ac/fdset.h
michael@380 2 --- include/ac/fdset.h.orig 2011-01-05 00:49:56.000000000 +0100
michael@380 3 +++ include/ac/fdset.h 2011-02-12 10:17:43.000000000 +0100
michael@174 4 @@ -22,6 +22,13 @@
michael@174 5 #ifndef _AC_FDSET_H
michael@174 6 #define _AC_FDSET_H
michael@174 7
michael@174 8 +#if defined(HAVE_SYS_TYPES_H)
michael@174 9 +#include <sys/types.h>
michael@174 10 +#endif
michael@174 11 +#if defined(HAVE_SYS_SELECT_H)
michael@174 12 +#include <sys/select.h>
michael@174 13 +#endif
michael@174 14 +
michael@174 15 #if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE )
michael@174 16 # define OPENLDAP_FD_SETSIZE 4096
michael@174 17 #endif
michael@174 18 Index: include/ldap_int_thread.h
michael@380 19 --- include/ldap_int_thread.h.orig 2011-01-06 19:43:20.000000000 +0100
michael@380 20 +++ include/ldap_int_thread.h 2011-02-12 10:17:43.000000000 +0100
michael@380 21 @@ -110,6 +110,7 @@
michael@174 22 * *
michael@174 23 ***********************************/
michael@174 24
michael@174 25 +#define _POSIX_PTHREAD_SEMANTICS
michael@174 26 #define PTH_SYSCALL_SOFT 1
michael@174 27 #include <pth.h>
michael@174 28
michael@174 29 Index: libraries/libldap_r/tpool.c
michael@380 30 --- libraries/libldap_r/tpool.c.orig 2011-01-05 00:50:08.000000000 +0100
michael@380 31 +++ libraries/libldap_r/tpool.c 2011-02-12 10:17:43.000000000 +0100
michael@380 32 @@ -968,6 +968,6 @@
michael@174 33 {
michael@174 34 ldap_int_thread_userctx_t *ctx = vctx;
michael@174 35
michael@174 36 - return ctx->ltu_id;
michael@174 37 + return ctx != NULL ? ctx->ltu_id : 0;
michael@174 38 }
michael@174 39 #endif /* LDAP_THREAD_HAVE_TPOOL */
michael@174 40 Index: servers/slapd/back-perl/config.c
michael@380 41 --- servers/slapd/back-perl/config.c.orig 2011-01-05 00:50:41.000000000 +0100
michael@380 42 +++ servers/slapd/back-perl/config.c 2011-02-12 10:17:43.000000000 +0100
michael@174 43 @@ -49,6 +49,9 @@
michael@174 44 }
michael@174 45
michael@174 46 #ifdef PERL_IS_5_6
michael@174 47 + if (argc > 2)
michael@174 48 + snprintf( eval_str, EVAL_BUF_SIZE, "require \"%s\";", argv[2] );
michael@174 49 + else
michael@174 50 snprintf( eval_str, EVAL_BUF_SIZE, "use %s;", argv[1] );
michael@174 51 eval_pv( eval_str, 0 );
michael@174 52

mercurial