Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107374 - fcron-3.0.0 won't compile when root user is not "root"
Summary: fcron-3.0.0 won't compile when root user is not "root"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 03:48 UTC by Thomas Scheffler
Modified: 2005-09-27 07:18 UTC (History)
0 users

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


Attachments
fcron configure patch to use --with-rootname (fcron-rootname.patch,443 bytes, patch)
2005-09-27 03:55 UTC, Thomas Scheffler
Details | Diff
uses egetent to gather root name (fcron-rootname.patch,812 bytes, patch)
2005-09-27 06:28 UTC, Thomas Scheffler
Details | Diff
clean complete emerge process (fcron-rootname.patch,1.54 KB, patch)
2005-09-27 06:44 UTC, Thomas Scheffler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Scheffler 2005-09-27 03:48:28 UTC
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
Comment 1 Thomas Scheffler 2005-09-27 03:55:37 UTC
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
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-09-27 05:02:55 UTC
(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.
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-09-27 05:40:13 UTC
(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.
Comment 4 Thomas Scheffler 2005-09-27 06:28:27 UTC
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()
Comment 5 Thomas Scheffler 2005-09-27 06:44:30 UTC
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
Comment 6 Aaron Walker (RETIRED) gentoo-dev 2005-09-27 07:18:06 UTC
Fixed.