Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697718 - app-antivirus/clamav-0.102.0 database directory defaults to /usr/share/clamav
Summary: app-antivirus/clamav-0.102.0 database directory defaults to /usr/share/clamav
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-14 17:51 UTC by Ralph Seichter
Modified: 2019-10-17 11:57 UTC (History)
1 user (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 Ralph Seichter 2019-10-14 17:51:14 UTC
After today's ClamAV update, I found that my existing clamd.conf no longer works. The following error was displayed on startup:

LibClamAV Error: cl_load(): No such file or directory: /usr/share/clamav
ERROR: Can't get file status
Closing the main socket.

If I add "DatabaseDirectory /var/lib/clamav" to both clamd.conf and freshclam.conf, the services start correctly. Looking at the ebuild, I see sed statements in src_install() to rewrite '#DatabaseDirectory' lines, but sed only seems to target commented lines? 

Reproducible: Always

Steps to Reproduce:
1. Update to ClamAV 0.102.0
2. Do not have "DatabaseDirectory /var/lib/clamav" in clamd.conf
3. Observe that clamd fails to start
Comment 1 Larry the Git Cow gentoo-dev 2019-10-17 11:57:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb3db2818946b402973baf317b00cb91b533102

commit dfb3db2818946b402973baf317b00cb91b533102
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2019-10-17 11:48:09 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2019-10-17 11:53:38 +0000

    app-antivirus/clamav: new revision sans killer comment.
    
    One line of the econf command in the clamav-0.102 ebuilds was
    commented out. But, since the comment appeared in the middle of a
    multi-line statement, it accidentally split the command in half. This
    led to some important flags like --with-dbdir being dropped from the
    final ./configure invocation.
    
    This commit adds a new revision to delete the comment. Testing shows
    that this fixes the database directory issue.
    
    Closes: https://bugs.gentoo.org/697718
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../clamav/{clamav-0.102.0-r1.ebuild => clamav-0.102.0-r2.ebuild}        | 1 -
 1 file changed, 1 deletion(-)