Subject: pkg/29321: clamav wrongly links in libclamav from LOCALBASE/lib if installed
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 02/10/2005 05:20:00
>Number:         29321
>Category:       pkg
>Synopsis:       clamav wrongly links in libclamav from LOCALBASE/lib if installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 10 05:20:00 +0000 2005
>Originator:     grant beattie
>Release:        Linux 2.4.26
>Organization:
>Environment:
System: Linux liz 2.4.26 #2 Sat Jun 26 19:24:28 EST 2004 i686 unknown unknown GNU/Linux
Architecture: i386
Machine: i386
>Description:
if mail/clamav is built while it is already installed, libclamav.a
from LOCALBASE/lib is linked in, instead of the newly built version in
the WRKDIR, and when the versions differ, this results in freshclam(1)
being confused about the version.

>How-To-Repeat:
install clamav 0.80.
build clamav 0.82 before uninstalling 0.80.

clamav% /usr/pkg/bin/freshclam
ClamAV update process started at Thu Feb 10 16:10:29 2005
WARNING: Your ClamAV installation is OUTDATED - please update immediately!
WARNING: Local version: 0.80 Recommended version: 0.82
main.cvd is up to date (version: 29, sigs: 29086, f-level: 3, builder: tomek)
daily.cvd is up to date (version: 703, sigs: 1507, f-level: 4, builder: ccordes)
WARNING: Your ClamAV installation is OUTDATED - please update immediately!
WARNING: Current functionality level = 3, required = 4

clamav% pkg_info | grep clamav
clamav-0.80         Anti-virus toolkit

>Fix:
my workaround is to remove the installed clamav package before building
the new version.

I haven't looked at a real fix yet.