Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289001 - kde-base/kdm-4.3.2 fails to start at boot after replacing config files
Summary: kde-base/kdm-4.3.2 fails to start at boot after replacing config files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 04:54 UTC by chris
Modified: 2009-10-15 02:29 UTC (History)
0 users

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


Attachments
/etc/conf.d/xdm (xdm,722 bytes, text/plain)
2009-10-14 04:57 UTC, chris
Details
/etc/init.d/xdm (xdm,5.19 KB, text/plain)
2009-10-14 04:58 UTC, chris
Details
/etc/init.d/xdm-setup (xdm-setup,339 bytes, text/plain)
2009-10-14 04:59 UTC, chris
Details
/etc/rc.conf (rc.conf,1.61 KB, text/plain)
2009-10-14 05:00 UTC, chris
Details
emerge --info (emerge.info.out,5.27 KB, text/plain)
2009-10-14 05:02 UTC, chris
Details
ls -alh /etc/X11/Sessions (ls.Sessions.out,245 bytes, text/plain)
2009-10-14 05:04 UTC, chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chris 2009-10-14 04:54:35 UTC
After installing kde-base/kdm-4.3.2 (along side kde 3.5.10 & kdm-3.5.10), errors are received during init boot.  Then the system only offers a console login (it previously loaded kdm 3.5 automatically).

When I installed kdm-4.3.2, I ran 'etc-update' and replaced:
/etc/conf.d/xdm
/etc/init.d/xdm



Reproducible: Always

Steps to Reproduce:
1. emerge =kde-base/kdm-4.3.2
2. etc-update
3. press <ENTER>
4. press 1 (replace)
5. press <ENTER>
6. press 1 (replace)
7. reboot system
Actual Results:  
ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm or install x11-apps/xdm package

start-stop-daemon: stat /usr/bin/xdm: No such file or directory (No such file or directory)

ERROR: could not start Display Manager 

Expected Results:  
Should start KDM and offer both KDE 3.5 and KDE 4 options.
Comment 1 chris 2009-10-14 04:57:09 UTC
Created attachment 207045 [details]
/etc/conf.d/xdm
Comment 2 chris 2009-10-14 04:58:34 UTC
Created attachment 207047 [details]
/etc/init.d/xdm
Comment 3 chris 2009-10-14 04:59:31 UTC
Created attachment 207049 [details]
/etc/init.d/xdm-setup
Comment 4 chris 2009-10-14 05:00:59 UTC
Created attachment 207051 [details]
/etc/rc.conf
Comment 5 chris 2009-10-14 05:02:28 UTC
Created attachment 207052 [details]
emerge --info
Comment 6 chris 2009-10-14 05:04:44 UTC
Created attachment 207053 [details]
ls -alh /etc/X11/Sessions
Comment 7 chris 2009-10-14 05:18:19 UTC
I should mention that 'startx' starts kde 4.3.  And ~/.xinitrc has 'exec startkde' in it.
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-14 06:07:43 UTC
I actualy hope one day people will start reading things...

If you take look on what you did:
you rewrote your /etc/conf.d/xdm file which leads us to the current content which is:

<snip>
# What display manager do you use ?  [ xdm | gdm | kdm | kdm-3.5 | kdm-4.3 | gpe | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
# KDE-specific note: kdm-3.5 and kdm-4.0 are just examples. You will find all 
# possible versions by looking at the directories in /usr/kde/.
DISPLAYMANAGER="xdm"
</snip>

Do you see yourself what you need to fix? :]
DISPLAYMANAGER variable should be set on kdm...
Comment 9 chris 2009-10-14 06:55:05 UTC
Okay, thanks, it works with DISPLAYMANAGER="kdm"

*but*

it doesn't work with "kdm-<version>", which it should, especially in my case; where I have both 3.5 and 4 slots installed.

And shouldn't, at least the post install message for KDM mention something about changing this?  Again, I *replaced* the config files w/ 'etc-update'; kdm-4.3.2 should have worked right out of the box in that situation -- correct?

It would be nice to have an 'eselect' option for choosing DM's and even which version of KDE to default to.

Thanks again for you help.

 P.S.  Your insult about "reading things" was pretty low, as I tried several options (including "kdm-4.3"), in several files before asking.  I also read all the relevant info I could find (many of the comments and docs need some revision BTW).
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-14 07:18:35 UTC
Your kde3 is in /usr/kde/3.5 -> kde-3.5 works
your kde4 is not under /usr/kde/4.3 -> kde-4.3 does not work
your kde4 is under /usr/ -> plain kdm works, or even "kde" works.
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2009-10-14 07:25:30 UTC
This is the future config file we are preparing to deploy right now:
http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=blob;f=x11-apps/xinit/files/xdm.confd-2

Hope it explains stuff more clearly.
Comment 12 chris 2009-10-15 02:29:35 UTC
Yes, it does make it more clear.  

While you're at it, you might as well correct the "have't" typo in the upper comment =)