Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252353 - x11-misc/slim-1.3.1-r2 -- new default slim.conf has deamon mode commented -> disabled, creates boot problems
Summary: x11-misc/slim-1.3.1-r2 -- new default slim.conf has deamon mode commented -> ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-24 07:01 UTC by Alex Alexander (RETIRED)
Modified: 2008-12-26 17:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Alexander (RETIRED) gentoo-dev 2008-12-24 07:01:07 UTC
The new default config file in x11-misc/slim-1.3.1-r2 has "daemon yes" commented.

Usually commented options are the default, so one would think this is the default value of "daemon".

Unfortunately this is not the case, so slim runs in the foreground and its process never finishes, holding back all the ttys and any service set to start after xdm indefinitely.

Reproducible: Always

Steps to Reproduce:
1. Install x11-misc/slim-1.3.1-r2
2. Use new configuration
3. Reboot

Actual Results:  
Slim runs in the foreground, halting the boot process. You can login to X and work but any service set to start after xdm never does and you can't use any non-X console. 

This happens in both normal and parallel (openrc 0.4) booting.

Expected Results:  
Slim should be backgrounded to allow for the rest of the boot process to continue. 

Since the default mode of Slim is to run in the foreground, I recommend removing the comment from "daemon yes" in the new default config to avoid user confusion and boot problems.

Portage 2.2_rc18 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Tue, 23 Dec 2008 12:45:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.0
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_US en el ja ja_JP"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/berkano /usr/local/portage/layman/voyageur /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-crazy /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amrnb amrwb audiofile avahi bash-completion berkdb bindist bluetooth bzip2 cdaudio cdda cddb cdio cdr chm cjk cli color-console cracklib crypt cups custom-cflags custom-optimization dbus dell dhclient dhcp dhcpcd disk-partition dri dv dvd dvdr dvdread encode exif ffmpeg firefox3 flac fontconfig ftp gd gdbm geoip gif git glib glitz gpm gtk hal hddtemp howl-compat icecast iconv id3 id3tag isdnlog jpeg jpeg2k laptop libsamplerate libsysfs lm_sensors lzo mad matroska mdnsresponder-compat midi mmx mmxext mng modplug mp2 mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nemesi network nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl png pnm pppd prime python qt3support qt4 quicktime radio rar readline reflection rtc samba session sndfile spl sqlite srt sse sse2 ssl ssse3 stream subversion suid svg sysfs taglib tcpd tga theora threads tiff truetype twolame unicode upnp vcd vcdinfo vcdx vim-syntax vim-with-x vorbis wavpack wmf x264 xanim xcomposite xinerama xml xorg xosd xpm xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en el ja ja_JP" USERLAND="GNU" VIDEO_CARDS="nvidia nv fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2008-12-25 06:33:07 UTC
Thanks for reporting this issue -- assigning to maintainers.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-25 06:34:47 UTC
Ah, I didn't see a problem when I initially tried this out. I will revert here soon.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-26 06:14:06 UTC
Nico, Did you have this problem or was it simply an oversight on my part? Please provide your input here. Thanks.
Comment 4 Nico R. Wohlgemuth 2008-12-26 17:26:37 UTC
uhhh, daemon mode should be on by default! this was first done in the ebuild but since this part was a bit hackish, I included that in my diff - the config diff in portage does not enable daemon mode - this is wrong. the sessionstop cmd is missing too.

you need to change/add the following in slim-1.3.1-config.diff in portage:

-# daemon       yes
+daemon         yes

+sessionstop_cmd                /usr/bin/sessreg -d -l :0.0 %user
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-26 17:50:39 UTC
(In reply to comment #4)
> uhhh, daemon mode should be on by default! this was first done in the ebuild
> but since this part was a bit hackish, I included that in my diff - the config
> diff in portage does not enable daemon mode - this is wrong. the sessionstop
> cmd is missing too.
> 
> you need to change/add the following in slim-1.3.1-config.diff in portage:
> 
> -# daemon       yes
> +daemon         yes
> 
> +sessionstop_cmd                /usr/bin/sessreg -d -l :0.0 %user
> 

Thanks! Silly mistakes on my part then. Regardless, this is fixed up in slim-1.3.1-r4