xinit: re-add patches mistakenly removed

This commit is contained in:
Alessio Sergi 2018-03-12 20:52:12 +01:00
parent f4ddde7fc5
commit 73846deac0
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,24 @@
Revert this change that was committed to fix an issue with systemd.
We want to keep the original behaviour, i.e use the first unused vt.
--- startx.cpp.orig 2018-03-10 02:46:03.000000000 +0100
+++ startx.cpp 2018-03-12 20:18:16.065493050 +0100
@@ -200,17 +200,6 @@
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

View file

@ -0,0 +1,14 @@
--- startx.cpp.orig 2018-03-10 02:46:03.000000000 +0100
+++ startx.cpp 2018-03-12 20:30:43.041201031 +0100
@@ -296,9 +296,9 @@
XCOMM now add the same credentials to the client authority file
XCOMM if '$displayname' already exists do not overwrite it as another
XCOMM server may need it. Add them to the '$xserverauthfile' instead.
- for displayname in $authdisplay $hostname$authdisplay; do
+ for displayname in $authdisplay $hostname/unix$authdisplay; do
authcookie=`XAUTH list "$displayname" @@
- | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
+ | sed -n "s/.*$displayname\/unix$authdisplay[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
if [ "z${authcookie}" = "z" ] ; then
XAUTH -q << EOF
add $displayname . $mcookie

View file

@ -1,7 +1,7 @@
# Template build file for 'xinit'.
pkgname=xinit
version=1.4.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-xinitdir=/etc/X11/xinit"
hostmakedepends="pkg-config"