Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 266246

Summary: eutils.eclass: enewuser/enewgroup do not work when emerging with --root
Product: Gentoo Linux Reporter: Alexey Charkov <alchark>
Component: EclassesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: hugo.chargois
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexey Charkov 2009-04-15 13:10:16 UTC
I am trying to build a bootable environment using emerge --root=/root/livecd_root --config-root=/root/livecd_conf. The problem I hit is sys-apps/hal not adding the required haldaemon user and plugdev group to the newly-built environment, as I have those in the host system.

Reproducible: Always

Steps to Reproduce:
1. emerge --root=/root/livecd_root sys-apps/hal
2. grep haldaemon /root/livecd_root/etc/passwd
Actual Results:  
Empty output

Expected Results:  
haldaemon:x:102:1003:added by portage for hal:/dev/null:/sbin/nologin or similar

# emerge --info
Portage 2.2_rc30 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1-home-quad x86_64)
=================================================================                                                          
System uname: Linux-2.6.29-gentoo-r1-home-quad-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.0.0        
Timestamp of tree: Wed, 15 Apr 2009 11:30:17 +0000                                                                         
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                  
app-shells/bash:     4.0_p17-r1                                                                                            
dev-java/java-config: 2.1.7                                                                                                
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                                                                    
dev-util/cmake:      2.6.3-r1                                                                                              
sys-apps/baselayout: 2.0.0                                                                                                 
sys-apps/openrc:     0.4.3-r1                                                                                              
sys-apps/sandbox:    1.9                                                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                                                         
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                                                       
sys-devel/binutils:  2.19.1-r1                                                                                             
sys-devel/gcc-config: 1.4.1                                                                                                
sys-devel/libtool:   2.2.6a                                                                                                
virtual/os-headers:  2.6.28-r1                                                                                             
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j10 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/misc"
SYNC="rsync://mirror.yandex.ru/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb berkdb bluetooth branding bzip2 cairo cdr chm cli cracklib crypt cups daap dbusdjvu dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg fftw firefox flac gdbm gif gphoto2 gpm gs gstreamer hal iconv ieee1394 imagemagick ipv6 isdnlog jpeg kde kipi lame ldap libvisual lirc mad midi mikmod mmx mng mp2 mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd qt3support qt4 quicktime readline reflection sdl session speex spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vnc vorbis wavpack webkit wmf x264 xcomposite xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="imon imonlcd" LINGUAS="ru" LIRC_DEVICES="imon imon_knob imon_lcd imon_pad imon_pad2keys" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# emerge --info --config-root=/root/livecd_conf
Portage 2.2_rc30 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1-home-quad x86_64)
=================================================================                                                        
System uname: Linux-2.6.29-gentoo-r1-home-quad-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.0.0      
Timestamp of tree: Wed, 15 Apr 2009 11:30:17 +0000                                                                       
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                
app-shells/bash:     4.0_p17-r1                                                                                          
dev-java/java-config: 2.1.7                                                                                              
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                                                                  
dev-util/cmake:      2.6.3-r1                                                                                            
sys-apps/baselayout: 2.0.0                                                                                               
sys-apps/openrc:     0.4.3-r1                                                                                            
sys-apps/sandbox:    1.9                                                                                                 
sys-devel/autoconf:  2.13, 2.63-r1                                                                                       
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                                                     
sys-devel/binutils:  2.19.1-r1                                                                                           
sys-devel/gcc-config: 1.4.1                                                                                              
sys-devel/libtool:   2.2.6a                                                                                              
virtual/os-headers:  2.6.28-r1                                                                                           
ACCEPT_KEYWORDS="x86 ~x86"                                                                                               
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="usr/include"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages/generic"
PORTAGE_CONFIGROOT="/root/livecd_conf/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amr berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups custom-cxxflags custom-optimization dbus djvu dri dvd dvdr dvdread emboss encode evo exif fam firefox flac gdbm gif gpm gstreamer hal iconv isdnlog jpeg kipi libnotify livecd mad mikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oscar pam pcre pdf png ppds pppd qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl startup-notification svg symlink sysfs tcpd thumbnail tifftruetype unicode usb v4l2 vorbis win32codecs wmf x264 x86 xcomposite xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2009-04-18 17:59:26 UTC

*** This bug has been marked as a duplicate of bug 53269 ***
Comment 2 SpanKY gentoo-dev 2010-07-25 18:42:25 UTC
*** Bug 329289 has been marked as a duplicate of this bug. ***