x11-apps/xinit: rebase xinit-1.3.4-startx-current-vt.patch
authorMarty E. Plummer <hanetzer@startmail.com>
Sat, 10 Mar 2018 05:32:38 +0000 (23:32 -0600)
committerMatt Turner <mattst88@gentoo.org>
Sat, 10 Mar 2018 05:55:32 +0000 (21:55 -0800)
Patch no longer cleanly applies, fixed it up to apply on new version
using quilt. Builds properly on my system.

Closes: https://bugs.gentoo.org/650066
Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
Closes: https://github.com/gentoo/gentoo/pull/7412

x11-apps/xinit/files/xinit-1.4.0-startx-current-vt.patch [new file with mode: 0644]
x11-apps/xinit/xinit-1.4.0.ebuild

diff --git a/x11-apps/xinit/files/xinit-1.4.0-startx-current-vt.patch b/x11-apps/xinit/files/xinit-1.4.0-startx-current-vt.patch
new file mode 100644 (file)
index 0000000..ecddd3b
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/startx.cpp
++++ b/startx.cpp
+@@ -200,17 +200,6 @@ XCOMM process server arguments
+ if [ x"$server" = x ]; then
+     server=$defaultserver
+-#ifdef __linux__
+-    XCOMM When starting the defaultserver start X on the current tty to avoid
+-    XCOMM the startx session being seen as inactive:
+-    XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
+-    tty=$(tty)
+-    if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
+-        tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
+-        vtarg="vt$tty_num -keeptty"
+-    fi
+-#endif
+-
+     XCOMM For compatibility reasons, only use xserverrc if there were no server command line arguments
+     if [ x"$serverargs" = x -a x"$display" = x ]; then
+       if [ -f "$userserverrc" ]; then
index ea3e115f959fa9e4df4e66d59dc0387e21de411c..c2d2baabb3336921377418eaf98a053a0e2a1aaa 100644 (file)
@@ -28,7 +28,7 @@ PDEPEND="x11-apps/xrdb
 
 PATCHES=(
        "${FILESDIR}/${PN}-1.3.3-gentoo-customizations.patch"
-       "${FILESDIR}/${PN}-1.3.4-startx-current-vt.patch"
+       "${FILESDIR}/${PN}-1.4.0-startx-current-vt.patch"
 )
 
 src_configure() {