Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94709 - clamav 0.85.1 doesn't emerge because of lacking users
Summary: clamav 0.85.1 doesn't emerge because of lacking users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
: 94711 98499 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-01 01:17 UTC by kevin
Modified: 2005-07-10 09:33 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,94.76 KB, text/plain)
2005-06-01 01:34 UTC, kevin
Details
clamav-0.85.1.ebuild.patch (clamav-0.85.1.ebuild.patch,480 bytes, patch)
2005-06-01 16:18 UTC, Aurélien Francillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kevin 2005-06-01 01:17:56 UTC
The emerge stops already during configure, telling me there was no clamav
user/group, but both exist already!

checking for ctime_r... yes, and it takes 2 arguments
checking for clamav using id... no
configure: error: User clamav (and/or group clamav) doesn't exist. Please read
the documentation !




Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 22:05:57)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -ffast-math -funroll-loops -fforce-addr
-falign-functions=4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -ffast-math -funroll-loops -fforce-addr
-falign-functions=4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.eliteitminds.com
ftp://mir.zyrianes.net/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow S3TC accessibility acl aim apache2 audiofile authdaemond
bash-completion berkdb bzip2 bzlib calendar cddb chroot clamav crypt cups curl
cyrus db2 distcache divx4linux dnd emacs emacs-w3 ethereal exif faad fam fla
flash ftp gd gif gmtfull gmthigh graphviz gtk gtk2 icq imagemagick imap ithreads
jabber java javacomm javadoc javamail javascript jdepend jikes jpeg latex ldap
libclamav live lzo maildir maildrop mcal md5sum milter mime mmx mmx2 mozcalendar
mozdevelop mozp3p mozsvg mozxmlterm msn mule mysql ncurses network nls nptl oav
objc oci8 odbc oscar pcre pear-db perl pg-hier pg-intdatetime pg-vacuumdelay php
pic png postgres python qhull readline rtc samba sasl slp soap spell ssl stroke
svg tcpd tetex tga theora threads tiff truetype type1 usb v4l2 wmf xchattext xml
xml2 xmlrpc xprint xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 kevin 2005-06-01 01:34:00 UTC
*** Bug 94711 has been marked as a duplicate of this bug. ***
Comment 2 kevin 2005-06-01 01:34:48 UTC
Created attachment 60343 [details]
config.log
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-06-01 05:31:03 UTC
What does `id clamav` say on your system?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-01 14:16:17 UTC
Hmmm well, emerge works here but does not create any user/group - not that I
would need one, I am running this under amavis:amavis ;-)
Comment 5 Aurélien Francillon 2005-06-01 16:17:32 UTC
i have the same bug here with uclibc/x86/hardened gentoo with user and groups
present:
clamav:x:101:407:added by portage for clamav:/dev/null:/bin/false
clamav:x:407:

a work around is to remove the configure option :  --enable-id-check
but this has probabely some side effects ...
Comment 6 Aurélien Francillon 2005-06-01 16:18:44 UTC
Created attachment 60424 [details, diff]
clamav-0.85.1.ebuild.patch

removes the --enable-id-check option to configure
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2005-06-01 16:34:59 UTC
This conflicts with bug #72540. Why doesn't getent find the user anyway?
Comment 8 kevin 2005-06-02 02:25:51 UTC
looks like the 'id' program doesnt exit with 0!

# id clamav
uid=102(clamav) gid=408 groups=408
--> it is there

# id clamav > /dev/null 2>&1 && echo "asdf"
(nothing)

On another gentoo box "asdf" is printed!

# emerge -pv coreutils
sys-apps/coreutils-5.2.1-r6  +acl -build -debug -hardened +nls (-selinux) -static

Any idea?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-06-02 02:46:51 UTC
(In reply to comment #8)
 
> # id clamav > /dev/null 2>&1 && echo "asdf"
> (nothing)

Yup, gcc-3.4.4, glibc-2.3.5-r0, binutils-2.15.92.0.2-r10, coreutils-5.2.1-r6

> On another gentoo box "asdf" is printed!

Yup, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, binutils-2.15.92.0.2-r10,
coreutils-5.2.1-r6

CCing toolchain and base-system to clarify...
Comment 10 SpanKY gentoo-dev 2005-06-02 05:44:32 UTC
what does `id clamav ; echo $?` show ?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-06-02 07:57:42 UTC
(In reply to comment #10)
> what does `id clamav ; echo $?` show ?

/me is confused - this one works the same on both systems.

uid=81(apache) gid=81(apache) groups=81(apache)
0
Comment 12 kevin 2005-06-02 09:36:44 UTC
Well, I found the problem: user and group clamav did exist, but somehow the user
clamav had a non existing group! I never changed anything there, perhaps a bug
in an older ebuild?
Comment 13 Andrej Kacian (RETIRED) gentoo-dev 2005-06-02 10:22:08 UTC
Hm yes, if one of user's groups is non-existant in /etc/group, id returns 1. Did
readding the clamav group (and making user clamav its member) help?
Comment 14 SpanKY gentoo-dev 2005-06-02 10:34:09 UTC
not a coreutils issue then
Comment 15 kevin 2005-06-03 01:50:16 UTC
Yes, giving putting the clamav-user in the right group solved to problem for me.
We could close the bug, if you don't want to find out how the user got its wrong
group :)
Comment 16 Andrej Kacian (RETIRED) gentoo-dev 2005-06-03 02:01:14 UTC
I just checked that all past ebuilds have used the same way to add clamav user
and group. It must have been something on your side, or a supernatural occurance
(also known as software bug). :)

I'm closing this, glad we figured it out.
Comment 17 Andrej Kacian (RETIRED) gentoo-dev 2005-07-10 09:33:50 UTC
*** Bug 98499 has been marked as a duplicate of this bug. ***