Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 818484

Summary: app-antivirus/clamav-0.104.0 fails to install (/var/tmp/portage/app-antivirus/clamav-0.104.0/image/etc/clamav/clamd.conf: No such file or directory)
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED FIXED    
Severity: normal CC: ajak, dan, mjo, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=818490
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: buildlog

Description Harris Landgarten 2021-10-16 18:13:22 UTC
Created attachment 745182 [details]
buildlog

/var/tmp/portage/app-antivirus/clamav-0.104.0/image/etc/clamav/clamd.conf: No such file or directory
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-10-16 18:32:03 UTC
Can reproduce.
Comment 2 Mathieu Carpentier 2021-10-16 19:42:04 UTC
I have the same problem on 2 different installation
Comment 3 Stejarel Veres 2021-10-16 23:25:06 UTC
I managed to both have it build and install with USE=clamapp -doc.
Comment 4 Scott Furry 2021-10-17 01:57:32 UTC
Encountered same and reported in forums here:
https://forums.gentoo.org/viewtopic-p-8668158.html

That the clampp USE flag causes the process to complete tells me that the USE flag logic was not properly extended to the install phase to limit what files to move to final install directory during emerge.

Documentation of package here (https://packages.gentoo.org/packages/app-antivirus/clamav) does not exactly explain what flag does or why it is important.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 02:08:32 UTC
(In reply to Scott Furry from comment #4)
> Encountered same and reported in forums here:
> https://forums.gentoo.org/viewtopic-p-8668158.html
> 
> That the clampp USE flag causes the process to complete tells me that the
> USE flag logic was not properly extended to the install phase to limit what
> files to move to final install directory during emerge.
> 
> Documentation of package here
> (https://packages.gentoo.org/packages/app-antivirus/clamav) does not exactly
> explain what flag does or why it is important.

Mousing over 'clamapp' does give a meaningful description here:
<flag name="clamapp">
Build applications (clamscan, clamd, clamdscan, clamonacc (also has its own USE flag), sigtool, clambc, clamav-milter (also requires milter USE flag), clamdtop, clamsubmit, clamconf).
</flag>
Comment 6 Larry the Git Cow gentoo-dev 2021-10-17 02:11:49 UTC
The bug has been closed via the following commit(s):

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

commit 51e1085b4e7aabda7dfe098e4b7bb25108c81033
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-17 02:10:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-17 02:11:40 +0000

    app-antivirus/clamav: fix installation based on USE=clamapp
    
    Some files only exist with USE=clamapp. We also
    enable clamapp by default as it aligns with
    expectations.
    
    Closes: https://bugs.gentoo.org/818484
    Signed-off-by: Sam James <sam@gentoo.org>

 app-antivirus/clamav/clamav-0.104.0.ebuild | 88 +++++++++++++++---------------
 app-antivirus/clamav/metadata.xml          |  4 +-
 2 files changed, 48 insertions(+), 44 deletions(-)