clamav/clamav.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 233
f5f6e93f3dc6
child 498
c6b0e6c7f67d
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.

     1 diff -Nau clamav-milter/clamav-milter.c.orig clamav-milter/clamav-milter.c
     2 Index: clamav-milter/clamav-milter.c
     3 --- clamav-milter/clamav-milter.c.orig	2009-10-28 16:34:13.000000000 +0100
     4 +++ clamav-milter/clamav-milter.c	2009-11-01 15:26:46.212861448 +0100
     5 @@ -32,7 +32,7 @@
     6  #include <syslog.h>
     7  #endif
     8  #include <time.h>
     9 -#include <libmilter/mfapi.h>
    10 +#include "milter/mfapi.h"
    12  #include "clamav.h"
    14 diff -Nau clamav-milter/clamfi.c.orig clamav-milter/clamfi.c
    15 Index: clamav-milter/clamfi.c
    16 --- clamav-milter/clamfi.c.orig	2009-10-28 16:34:13.000000000 +0100
    17 +++ clamav-milter/clamfi.c	2009-11-01 15:26:46.214251049 +0100
    18 @@ -29,7 +29,7 @@
    19  #include <unistd.h>
    20  #include <ctype.h>
    22 -#include <libmilter/mfapi.h>
    23 +#include "milter/mfapi.h"
    25  #include "shared/optparser.h"
    26  #include "shared/output.h"
    27 diff -Nau clamav-milter/clamfi.h.orig clamav-milter/clamfi.h
    28 Index: clamav-milter/clamfi.h
    29 --- clamav-milter/clamfi.h.orig	2009-07-06 15:21:58.000000000 +0200
    30 +++ clamav-milter/clamfi.h	2009-11-01 15:26:46.214882752 +0100
    31 @@ -22,7 +22,7 @@
    32  #define _CLAMFI_H
    34  #include "shared/optparser.h"
    35 -#include <libmilter/mfapi.h>
    36 +#include "milter/mfapi.h"
    38  extern uint64_t maxfilesize;
    39  extern int addxvirus;
    40 diff -Nau configure.orig configure
    41 Index: configure
    42 --- configure.orig	2009-10-28 16:34:13.000000000 +0100
    43 +++ configure	2009-11-01 15:29:06.145022137 +0100
    44 @@ -16692,9 +16692,6 @@
    46          save_LIBS="$LIBS"
    47      CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
    48 -    if test -d /usr/lib/libmilter ; then
    49 -	CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
    50 -    fi
    51      LIBS="$LIBS -lmilter $CLAMAV_MILTER_LIBS"
    52      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
    53  $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
    54 @@ -16842,9 +16839,9 @@
    55  fi
    57      LIBS="$save_LIBS"
    58 -    for ac_header in libmilter/mfapi.h
    59 +    for ac_header in milter/mfapi.h
    60  do :
    61 -  ac_fn_c_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
    62 +  ac_fn_c_check_header_mongrel "$LINENO" "milter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
    63  if test "x$ac_cv_header_libmilter_mfapi_h" = x""yes; then :
    64    cat >>confdefs.h <<_ACEOF
    65  #define HAVE_LIBMILTER_MFAPI_H 1
    66 diff -Nau libclamav/others.c.orig libclamav/others.c
    67 Index: libclamav/others.c
    68 --- libclamav/others.c.orig	2009-10-28 16:34:13.000000000 +0100
    69 +++ libclamav/others.c	2009-11-01 15:26:46.257883269 +0100
    70 @@ -177,8 +177,10 @@
    71      if(is_rar_initd) return;
    72      is_rar_initd = 1;
    74 +#if 0
    75      rhandle = lt_dlfind("libclamunrar_iface", "unrar");
    76      if (!rhandle)
    77 +#endif
    78  	return;
    80      if (!(cli_unrar_open = (int(*)(int, const char *, unrar_state_t *))lt_dlsym(rhandle, "libclamunrar_iface_LTX_unrar_open")) ||
    81 diff -Nau shared/output.c.orig shared/output.c
    82 Index: shared/output.c
    83 --- shared/output.c.orig	2009-10-28 16:34:13.000000000 +0100
    84 +++ shared/output.c	2009-11-01 15:26:46.259056039 +0100
    85 @@ -67,7 +67,7 @@
    86  pthread_mutex_t logg_mutex = PTHREAD_MUTEX_INITIALIZER;
    87  #endif
    89 -#ifdef  C_LINUX
    90 +#if 0
    91  #include <libintl.h>
    92  #include <locale.h>

mercurial