When trying to emerge fcron-3.0.0 the root username has to be known by the configure script. If this is not the default "root" the configure will fail... Reproducible: Always Steps to Reproduce: 1. rename root in passwd and shadow to "myroot" 2. emerge fcron-3.0.0 3. Actual Results: checking root's username... configure: error: Cannot determine root's username: try option --with-rootname=USERNAME !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/fcron-3.0.0/work/fcron-3.0.0/config.log !!! ERROR: sys-process/fcron-3.0.0 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: It should succeed Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20040808-r1,glibc-2.3.5-r1, 2.6.11-gentoo-r6-router i686) ================================================================= System uname: 2.6.11-gentoo-r6-router i686 Pentium III (Katmai) Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -march=pentium3 -mtune=pentium3 -funroll-loops -fomit-frame-pointer -mfpmath=sse -msse -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=pentium3 -mtune=pentium3 -funroll-loops -fomit-frame-pointer -mfpmath=sse -msse -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE.utf8" MAKEOPTS="-j2" 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 X aac aalib acl acpi acpi4linux alsa apache2 apm avi berkdb bzlib cli commercial crypt cups curl cvsgraph dba dedicated dga distcache divx4linux dlloader dnd drac eds emboss encode enscript esd fam fax flac foomaticdb gd gdbm gif gstreamer iconv imap imlib imlib2 insecure-drivers ipv6 ithreads java jce jikes jpeg jpeg2k largeterminal ldap libg++ libwww log4j mad maildir mikmod mldonkeypango mmx mp3 mpeg mpeg4 mplayer mpm-worker mysql nas ncurses nls nptl nptlonly ogg oggvorbis oss pam passfile pcre pdflib pear perl pic png posix python qemu-fast quicktime readline samba sasl sdl session sis slang slp spell sse ssl svg svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vhosts vorbis xerces xml2 xmms xprint xrandr xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Created attachment 69328 [details, diff] fcron configure patch to use --with-rootname this patch adds --with-rootname=`getent passwd uid 0|cut -d':' -f1` to the configure options
(In reply to comment #1) > Created an attachment (id=69328) [edit] > fcron configure patch to use --with-rootname > > this patch adds > > --with-rootname=`getent passwd uid 0|cut -d':' -f1` > > to the configure options Using getent is not an option, as it is a glibc-ism and therefore unportable. eutils.eclass' egetent function would be doable if it supported looking up by uid/gid.
(In reply to comment #2) > eutils.eclass' egetent function would be doable if it supported looking up by > uid/gid. Ok, looks like only the BSD portion of egetent didn't support lookup by uid/gid. Probably my fault since I wrote that portion ages ago. That's fixed now.
Created attachment 69339 [details, diff] uses egetent to gather root name I modified the gathering of the root name: using now the portage function egetent and moved detection to pkg_setup()
Created attachment 69340 [details, diff] clean complete emerge process finally resolved issues in the install phase and replaced hard coded username "root" in src_install() by $ROOTUSER. fcron-3.0.0 finally emerges fine on my site
Fixed.