xinit: re-add patches mistakenly removed
This commit is contained in:
parent
f4ddde7fc5
commit
73846deac0
3 changed files with 39 additions and 1 deletions
24
srcpkgs/xinit/patches/dont-use-active-vt.patch
Normal file
24
srcpkgs/xinit/patches/dont-use-active-vt.patch
Normal 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
|
14
srcpkgs/xinit/patches/fs25361.patch
Normal file
14
srcpkgs/xinit/patches/fs25361.patch
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue