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
*** Bug 94711 has been marked as a duplicate of this bug. ***
Created attachment 60343 [details] config.log
What does `id clamav` say on your system?
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 ;-)
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 ...
Created attachment 60424 [details, diff] clamav-0.85.1.ebuild.patch removes the --enable-id-check option to configure
This conflicts with bug #72540. Why doesn't getent find the user anyway?
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?
(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...
what does `id clamav ; echo $?` show ?
(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
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?
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?
not a coreutils issue then
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 :)
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.
*** Bug 98499 has been marked as a duplicate of this bug. ***