Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185234 - app-antivirus/clamav -Installs old signature format.
Summary: app-antivirus/clamav -Installs old signature format.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 20:59 UTC by Harley Peters
Modified: 2007-07-21 03:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harley Peters 2007-07-13 20:59:36 UTC
Clamav has changed the way that it stores it signatures. It used to be in files
main.cvd and daily.cvd.
Now they are stored under the directories main.inc and daily.inc.
The ebuild is setting up these new directories but is is also installing the old main.cvd file.
The problem with this is if you don't manually delete this file clamav will load the signatures twice and use twice the memeory.

Reproducible: Always

Steps to Reproduce:
1.emerge clamav
2.start clamav
3.

Actual Results:  
clamd.log file:
Database correctly reloaded (241860 signatures)


Expected Results:  
clamd.log file:
Database correctly reloaded (137360 signatures)
Comment 1 Harley Peters 2007-07-14 15:03:41 UTC
I read this is the clamav mailing list:

The first time the virus database is loaded (or when replacing a 
corrupted database) the .cvd is used. When subsequent scripted 
updates are applied, the .cvd is unpacked into an .inc directory and 
the updates are applied therein.  Versions prior to 0.90 always used 
the .cvd because they didn't support scripted updates and the .inc 
directory structure.

So it looks like the file main.cvd is supposed to be there.
I still don't think there intention was to be loading both but that's the way it works.
Anyway looks like this is more a problem for the clamav developers.

Harley.
 
Comment 2 Harley Peters 2007-07-14 16:02:03 UTC
It looks like this is a problem when you update clamav or reinstall it.
When first installing clamav every thing works correctly the new main.inc and daily.inc directories are created and the daily.cvd and main.cvd files are deleted.
The problem is when you update or reinstall the main.inc and daily.inc directories are already there. And for some reason it doesn't ever delete the main.cvd file.
Comment 3 Harley Peters 2007-07-21 03:40:53 UTC
Seems to work in the latest version of clamav.
Eventually any way.