Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697688 - app-antivirus/clamav-0.102.0:20191014-053151.log - sed: can't read .../image//etc/clamav-milter.conf.sample: No such file or directory
Summary: app-antivirus/clamav-0.102.0:20191014-053151.log - sed: can't read .../image/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-14 06:23 UTC by Jeroen Roovers (RETIRED)
Modified: 2019-11-25 04:08 UTC (History)
3 users (show)

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


Attachments
app-antivirus:clamav-0.102.0:20191014-053151.log (app-antivirus:clamav-0.102.0:20191014-053151.log,706.03 KB, text/plain)
2019-10-14 06:23 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2019-10-14 06:23:08 UTC
Created attachment 592670 [details]
app-antivirus:clamav-0.102.0:20191014-053151.log

make[2]: Entering directory '/var/tmp/portage/app-antivirus/clamav-0.102.0/work/clamav-0.102.0'
 /bin/mkdir -p '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/bin'
 /bin/mkdir -p '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/include'
 /bin/mkdir -p '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/lib/pkgconfig'
 /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c -m 644 clamav-types.h clamav-version.h '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/include'
 /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c clamav-config '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/bin'
 /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c -m 644 libclamav.pc '/var/tmp/portage/app-antivirus/clamav-0.102.0/image//usr/lib/pkgconfig'
make[2]: Leaving directory '/var/tmp/portage/app-antivirus/clamav-0.102.0/work/clamav-0.102.0'
make[1]: Leaving directory '/var/tmp/portage/app-antivirus/clamav-0.102.0/work/clamav-0.102.0'
sed: can't read /var/tmp/portage/app-antivirus/clamav-0.102.0/image//etc/clamav-milter.conf.sample: No such file or directory
 * ERROR: app-antivirus/clamav-0.102.0::gentoo failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 3307:  Called die
Comment 1 Dario Sarango 2019-10-14 16:56:46 UTC
Hit by this error too.

If the milter USE flag is enabled, I get this error because clamav-milter.conf.sample is not installed (exists in the work directory, does not exist in the image directory).

Disabling the milter USE flag skips this error, but does not install clamav-milter.
Comment 2 Thomas Raschbacher gentoo-dev 2019-10-15 05:19:00 UTC
hmm odd.. I will have a look later.. seems like I forgot to test- install with USE=milter . sorry for that. seems like it'd just be a simple copy, but I won'T have access to my dev box until later.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-15 06:25:28 UTC
(In reply to Thomas Raschbacher from comment #2)
> hmm odd.. I will have a look later.. seems like I forgot to test- install
> with USE=milter . sorry for that. seems like it'd just be a simple copy, but
> I won'T have access to my dev box until later.

I attached a patch to bug #697686 that should also fix this bug.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-17 18:45:13 UTC
It's more than just a missing config file, https://lists.clamav.net/pipermail/clamav-users/2019-October/008626.html

Caused by https://github.com/Cisco-Talos/clamav-devel/commit/4ea891db60653946b0c48f619e41b8896a247403 (such a change between last RC and final release...).

Incoming mask...
Comment 5 Larry the Git Cow gentoo-dev 2019-10-17 18:50:47 UTC
The bug has been referenced in the following commit(s):

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

commit c11a26b40aaecab5dd7f5f497ebec1711ee36df5
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-10-17 18:47:36 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-10-17 18:50:39 +0000

    package.mask: Mask ~app-antivirus/clamav-0.102.0
    
    Link: https://lists.clamav.net/pipermail/clamav-users/2019-October/008626.html
    Bug: https://bugs.gentoo.org/697688
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 6 Attila Tóth 2019-10-20 15:38:58 UTC
I also noticed, that 0.102's configure doesn't find fanotify and libjson-c-dev (disables clamsubmit), while 0.101.4 correctly detects these.
Comment 7 Larry the Git Cow gentoo-dev 2019-11-25 04:08:05 UTC
The bug has been closed via the following commit(s):

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

commit 0bed854e02879dce0dd783dafb9ab175eb7ca443
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2019-11-25 03:02:23 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2019-11-25 03:54:20 +0000

    app-antivirus/clamav: new version 0.102.1.
    
    This new version fixes some major problems in the last one. The milter
    isn't totally busted, a DoS was patched (CVE-2019-15961), we don't need
    to patch the build system to detect libxml2, and fanotify should now
    be found when it's there.
    
    I've also tweaked the documentation location so that we don't wind up
    with nested "html" directories, and stopped USE="-metadata-analysis-api"
    from clobbering USE="clamsubmit" in the ebuild.
    
    The mailing list reports that there are still intermittent test
    failures and a ./configure bug, but this one might actually be usable.
    
    Closes: https://bugs.gentoo.org/697686
    Closes: https://bugs.gentoo.org/697688
    Closes: https://bugs.gentoo.org/701094
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 app-antivirus/clamav/Manifest                      |   2 +-
 ...mav-0.102.0-r2.ebuild => clamav-0.102.1.ebuild} |  13 +--
 .../files/clamav-0.102.0-libxml2_pkgconfig.patch   | 101 ---------------------
 3 files changed, 5 insertions(+), 111 deletions(-)