On Freitag, 28. Oktober 2011 12:00:00 you wrote:
>
> Dansguardian fails to build from source in Squeeze (and very likely also in
> sid, since it uses the same version). This is probably caused by the
> clamav update in 6.0.3 (it built fine with earlier Squeeze releases):
>
> hecking for PCRE... yes
> checking for backtrace on segfault support... no
> checking for large file support... yes
> checking for original destination IP checking support... no
> checking for type collision with off_t... no
> checking for libclamav support... yes
> checking for CLAMAV... configure: error: Package requirements (libclamav >=
> 4) were not met:
>
> Requested 'libclamav >= 4' but version of libclamav is 0.97.2
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables CLAMAV_CFLAGS
> and CLAMAV_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
The bug is still present in stable. I'm attaching the patch we used for
Univention Corporate Server.
Cheers,
Moritz
--
Moritz Mühlenhoff [email protected]
Open Source Software Engineer and Consultant
Univention GmbH Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99
http://www.univention.de
diff -aur dansguardian-2.10.1.1.orig/configure.ac dansguardian-2.10.1.1/configure.ac
--- dansguardian-2.10.1.1.orig/configure.ac 2009-03-16 13:10:35.000000000 +0100
+++ dansguardian-2.10.1.1/configure.ac 2012-01-16 14:16:09.602574161 +0100
@@ -333,7 +333,7 @@
CLAMAVSHM="!! Not supported on this platform !!"
else
AC_MSG_RESULT(yes)
- PKG_CHECK_MODULES([CLAMAV],[libclamav >= 4])
+ PKG_CHECK_MODULES([CLAMAV],[libclamav >= 0.95])
AC_DEFINE([HAVE_CLAMAV],[],[Define to enable ClamAV content scanner])
diff -aur dansguardian-2.10.1.1.orig/debian/control dansguardian-2.10.1.1/debian/control
--- dansguardian-2.10.1.1.orig/debian/control 2012-01-16 13:21:58.000000000 +0100
+++ dansguardian-2.10.1.1/debian/control 2012-01-16 14:16:23.622565092 +0100
@@ -2,7 +2,7 @@
Section: web
Priority: optional
Maintainer: Alexander Wirt <[email protected]>
-Build-Depends: debhelper (>= 5), zlib1g-dev, autotools-dev, dpatch, libclamav-dev (>= 0.90), libpcre3-dev
+Build-Depends: debhelper (>= 5), zlib1g-dev, autotools-dev, dpatch, libclamav-dev (>= 0.90), libpcre3-dev, autoconf, automake
Standards-Version: 3.8.4
Package: dansguardian
diff -aur dansguardian-2.10.1.1.orig/debian/rules dansguardian-2.10.1.1/debian/rules
--- dansguardian-2.10.1.1.orig/debian/rules 2012-01-16 13:22:17.715565000 +0100
+++ dansguardian-2.10.1.1/debian/rules 2012-01-16 14:16:09.602574161 +0100
@@ -37,6 +37,7 @@
configure-stamp:
dh_testdir
cp -p /usr/share/misc/config.* .
+ autoreconf
# Add here commands to configure the package.
CC=$(CC) CXX="$(CXX)" /bin/bash ./configure \
--mandir=/usr/share/man/ \