freeradius/freeradius.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 48
e12fbbfbe80e
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@47 1 Index: Make.inc.in
michael@306 2 --- Make.inc.in.orig 2010-05-24 07:40:58.000000000 +0200
michael@306 3 +++ Make.inc.in 2010-05-24 23:54:11.000000000 +0200
michael@47 4 @@ -15,7 +15,7 @@
michael@47 5 docdir = @docdir@
michael@47 6 mandir = @mandir@
michael@47 7 datadir = @datadir@
michael@47 8 -dictdir = $(datadir)/freeradius
michael@47 9 +dictdir = $(datadir)
michael@47 10 logdir = @logdir@
michael@47 11 includedir = @includedir@
michael@47 12 raddbdir = @raddbdir@
michael@306 13 @@ -49,7 +49,7 @@
michael@47 14
michael@47 15 LOGDIR = ${logdir}
michael@47 16 RADDBDIR = ${raddbdir}
michael@47 17 -RUNDIR = ${localstatedir}/run/radiusd
michael@47 18 +RUNDIR = ${localstatedir}
michael@47 19 SBINDIR = ${sbindir}
michael@47 20 RADIR = ${radacctdir}
michael@47 21 LIBRADIUS = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la
michael@47 22 Index: raddb/radiusd.conf.in
michael@306 23 --- raddb/radiusd.conf.in.orig 2010-05-24 07:40:58.000000000 +0200
michael@306 24 +++ raddb/radiusd.conf.in 2010-05-24 23:54:11.000000000 +0200
michael@47 25 @@ -66,7 +66,7 @@
michael@47 26
michael@47 27 # Location of config and logfiles.
michael@47 28 confdir = ${raddbdir}
michael@306 29 -run_dir = ${localstatedir}/run/${name}
michael@47 30 +run_dir = ${localstatedir}
michael@47 31
michael@47 32 # Should likely be ${localstatedir}/lib/radiusd
michael@47 33 db_dir = ${raddbdir}
michael@306 34 Index: src/main/event.c
michael@306 35 --- src/main/event.c.orig 2010-05-24 07:40:58.000000000 +0200
michael@306 36 +++ src/main/event.c 2010-05-25 08:53:57.000000000 +0200
michael@306 37 @@ -74,7 +74,9 @@
michael@306 38 #define PTHREAD_MUTEX_LOCK if (have_children) pthread_mutex_lock
michael@306 39 #define PTHREAD_MUTEX_UNLOCK if (have_children) pthread_mutex_unlock
michael@47 40
michael@306 41 +#if defined(HAVE_PTHREAD_H)
michael@306 42 static pthread_t NO_SUCH_CHILD_PID;
michael@306 43 +#endif
michael@306 44 #else
michael@306 45 /*
michael@306 46 * This is easier than ifdef's throughout the code.

mercurial