Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313287 - x11-apps/xinit: Invalid environment variable in /etc/X11/startDM.sh
Summary: x11-apps/xinit: Invalid environment variable in /etc/X11/startDM.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 18:58 UTC by Michal Januszewski (RETIRED)
Modified: 2019-03-02 05:36 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 Michal Januszewski (RETIRED) gentoo-dev 2010-04-05 18:58:21 UTC
On line 21 of /etc/X11/startDM.sh, the SVCNAME variable is set to 'xdm'.  This doesn't work for openrc, which expects the name of the service to be in RC_SVCNAME.  Ordinarily this doesn't cause any problems as startDM.sh is started from /etc/init.d/xdm so the RC_SVCNAME is already defined by openrc.  However, if  startDM.sh is started by init as a result of `telinit a`, the correct environment variable is not defined and startDM.sh doesn't work.
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2010-04-06 09:36:57 UTC
sigh... xinit again. Every time I start to believe I finally got it figured out, someone proves me wrong...

Thanks for the report :)
Comment 2 Larry the Git Cow gentoo-dev 2019-02-28 17:51:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ad67a504fa8619fff2d6c223b5fe7a288c4d5b3

commit 9ad67a504fa8619fff2d6c223b5fe7a288c4d5b3
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-02-28 17:50:26 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-02-28 17:50:26 +0000

    x11-apps/xinit: s/SVCNAME/RC_SVCNAME/
    
    Closes: https://bugs.gentoo.org/313287
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-apps/xinit/files/startDM.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 William Hubbs gentoo-dev 2019-03-02 05:36:51 UTC
Yes, s/SVCNAME/RC_SVCNAME/ is the correct fix.
SVCNAME is a leftover from baselayout-1.x, which I would like to get rid
of, but there isn't a clean way to do that.