Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72540 - clamav-0.80 won't compile without local clamav user
Summary: clamav-0.80 won't compile without local clamav user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 05:03 UTC by Gudleik Rasch
Modified: 2005-06-09 09:21 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 Gudleik Rasch 2004-11-26 05:03:29 UTC
app-antivirus/clamav-0.80 fails to compile:

checking for clamav in /etc/passwd... no
configure: error: User clamav (and/or group clamav) doesn't exist. Please read the documentation !

I use nss_ldap and I have a clamav user in the ldap directory and not in /etc/passwd.
But ClamAV can use getent instead of parsing /etc/passwd.
This patch will fix the problem:

--- /usr/portage/app-antivirus/clamav/clamav-0.80.ebuild        2004-11-15 15:06:41.000000000 +0100
+++ /usr/local/portage/app-antivirus/clamav/clamav-0.80-r1.ebuild       2004-11-26 13:47:01.721198904 +0100
@@ -32,7 +32,7 @@

        local myconf
        use milter && myconf="--enable-milter"
-       econf ${myconf} --with-dbdir=/var/lib/clamav || die
+       econf ${myconf} --with-dbdir=/var/lib/clamav --enable-id-check || die
        emake || die
 }
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-05-14 14:38:41 UTC
This will be fixed in clamav-0.85-r1. Thanks a lot!
Comment 2 Kalin KOZHUHAROV 2005-06-09 09:14:50 UTC
Please REOPEN this bug, a NEW one is inappropriate...

Changing this broke (at least) the upgrade form 0.83 to 0.85-r1:

configure:13468: checking for clamav using id
configure:13538: result: no
configure:13540: error: User clamav (and/or group clamav) doesn't exist. Please
read the documentation !

 # grep clamav /etc/{passwd,group}
/etc/passwd:clamav:x:102:2088:added by portage for clamav:/dev/null:/bin/false
/etc/group:clamav:x:2100:

 # id clamav
uid=102(clamav) gid=2088 groups=2088

No idea what is causing this...

After `userdel clamav`, I could install the 0.85-r1 OK.
The new information is:
/etc/passwd:clamav:x:102:2100:added by portage for clamav:/dev/null:/bin/false
/etc/group:clamav:x:2100:qscand

(I added the qscand manually)

So no idea whatsoever... Perhaps the configure script?
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-06-09 09:21:40 UTC
Please read discussions in bug #94709, which deals with this exact issue.
Basically, the problem here is that clamav user doesn't belong to group clamav
(which was probably removed, or renumbered, but I have absolutely no idea why).