Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634776 - /etc/X11/startDM.sh from x11-apps/xinit-1.3.4-r2 fails to start X
Summary: /etc/X11/startDM.sh from x11-apps/xinit-1.3.4-r2 fails to start X
Status: RESOLVED DUPLICATE of bug 634706
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-19 14:58 UTC by Rafal Kupiec
Modified: 2017-10-19 15:02 UTC (History)
0 users

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 Rafal Kupiec 2017-10-19 14:58:22 UTC
New /etc/X11/startDM.sh that belongs to x11-apps/xinit after uograde to 1.3.4-r2 uses /lib/gentoo/functions.sh instead of /etc/init.d/functions.sh, what causes /etc/init.d/xdm script to fail to start:


# service xdm restart
xdm               | * Stopping sddm ...
xdm               | * start-stop-daemon: no matching processes found                                                            [ ok ]
xdm               | * Setting up sddm ...
xdm               |/etc/X11/startDM.sh: line 26: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 27: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 28: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 29: get_options: command not found
xdm               |start-stop-daemon: option '--exec' requires an argument
xdm               |Usage: start-stop-daemon [options] 
xdm               |
xdm               |Options: [ I:KN:PR:Sa:bc:d:e:g:ik:mn:op:s:tu:r:w:x:1:2:ChqVv ]
xdm               |  -I, --ionice <arg>                Set an ionice class:data when starting
xdm               |  -K, --stop                        Stop daemon
xdm               |  -N, --nicelevel <arg>             Set a nicelevel when starting
xdm               |  -R, --retry <arg>                 Retry schedule to use when stopping
xdm               |  -S, --start                       Start daemon
xdm               |  -a, --startas <arg>               deprecated, use --exec or --name
xdm               |  -b, --background                  Force daemon to background
xdm               |  -c, --chuid <arg>                 deprecated, use --user
xdm               |  -d, --chdir <arg>                 Change the PWD
xdm               |  -e, --env <arg>                   Set an environment string
xdm               |  -k, --umask <arg>                 Set the umask for the daemon
xdm               |  -g, --group <arg>                 Change the process group
xdm               |  -i, --interpreted                 Match process name by interpreter
xdm               |  -m, --make-pidfile                Create a pidfile
xdm               |  -n, --name <arg>                  Match process name
xdm               |  -o, --oknodo                      deprecated
xdm               |  -p, --pidfile <arg>               Match pid found in this file
xdm               |  -s, --signal <arg>                Send a different signal
xdm               |  -t, --test                        Test actions, don't do them
xdm               |  -u, --user <arg>                  Change the process user
xdm               |  -r, --chroot <arg>                Chroot to this directory
xdm               |  -w, --wait <arg>                  Milliseconds to wait for daemon start
xdm               |  -x, --exec <arg>                  Binary to start/stop
xdm               |  -1, --stdout <arg>                Redirect stdout to file
xdm               |  -2, --stderr <arg>                Redirect stderr to file
xdm               |  -P, --progress                    Print dots each second while waiting
xdm               |  -h, --help                        Display this help output
xdm               |  -C, --nocolor                     Disable color output
xdm               |  -V, --version                     Display software version
xdm               |  -v, --verbose                     Run verbosely
xdm               |  -q, --quiet                       Run quietly (repeat to suppress errors)
xdm               | * ERROR: could not start the Display Manager



I set this as a major issue (unable to start whole XOrg)

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-apps/xinit-1.3.4-r2
2. /etc/init.d/xdm start

Actual Results:  
# service xdm restart
xdm               | * Stopping sddm ...
xdm               | * start-stop-daemon: no matching processes found                                                            [ ok ]
xdm               | * Setting up sddm ...
xdm               |/etc/X11/startDM.sh: line 26: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 27: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 28: get_options: command not found
xdm               |/etc/X11/startDM.sh: line 29: get_options: command not found
xdm               |start-stop-daemon: option '--exec' requires an argument
xdm               |Usage: start-stop-daemon [options] 
xdm               |
xdm               |Options: [ I:KN:PR:Sa:bc:d:e:g:ik:mn:op:s:tu:r:w:x:1:2:ChqVv ]
xdm               |  -I, --ionice <arg>                Set an ionice class:data when starting
xdm               |  -K, --stop                        Stop daemon
xdm               |  -N, --nicelevel <arg>             Set a nicelevel when starting
xdm               |  -R, --retry <arg>                 Retry schedule to use when stopping
xdm               |  -S, --start                       Start daemon
xdm               |  -a, --startas <arg>               deprecated, use --exec or --name
xdm               |  -b, --background                  Force daemon to background
xdm               |  -c, --chuid <arg>                 deprecated, use --user
xdm               |  -d, --chdir <arg>                 Change the PWD
xdm               |  -e, --env <arg>                   Set an environment string
xdm               |  -k, --umask <arg>                 Set the umask for the daemon
xdm               |  -g, --group <arg>                 Change the process group
xdm               |  -i, --interpreted                 Match process name by interpreter
xdm               |  -m, --make-pidfile                Create a pidfile
xdm               |  -n, --name <arg>                  Match process name
xdm               |  -o, --oknodo                      deprecated
xdm               |  -p, --pidfile <arg>               Match pid found in this file
xdm               |  -s, --signal <arg>                Send a different signal
xdm               |  -t, --test                        Test actions, don't do them
xdm               |  -u, --user <arg>                  Change the process user
xdm               |  -r, --chroot <arg>                Chroot to this directory
xdm               |  -w, --wait <arg>                  Milliseconds to wait for daemon start
xdm               |  -x, --exec <arg>                  Binary to start/stop
xdm               |  -1, --stdout <arg>                Redirect stdout to file
xdm               |  -2, --stderr <arg>                Redirect stderr to file
xdm               |  -P, --progress                    Print dots each second while waiting
xdm               |  -h, --help                        Display this help output
xdm               |  -C, --nocolor                     Disable color output
xdm               |  -V, --version                     Display software version
xdm               |  -v, --verbose                     Run verbosely
xdm               |  -q, --quiet                       Run quietly (repeat to suppress errors)
xdm               | * ERROR: could not start the Display Manager

Expected Results:  
Xorg started
Comment 1 Rafal Kupiec 2017-10-19 15:00:23 UTC
Manually editing /etc/X11/startDM.sh and changing path from /lib/gentoo/functions.sh to /etc/init.d/functions.sh fixed the problem.
Comment 2 Rafal Kupiec 2017-10-19 15:00:48 UTC
Have anyone ever tested this before committing change?!
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-10-19 15:02:57 UTC

*** This bug has been marked as a duplicate of bug 634706 ***