xorg-server: always rootless

This commit is contained in:
Dylan Araps 2019-10-09 00:06:58 +03:00
parent f5efc12367
commit 0deee6aa92
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 23 additions and 5 deletions

View File

@ -1,7 +1,10 @@
#!/bin/sh -e
patch -p1 < rootless_modesetting.patch
./configure \
--prefix=/usr \
--localstatedir=/var \
--disable-systemd-logind \
--disable-xwayland \
--disable-unit-tests \
@ -20,6 +23,3 @@ make
make DESTDIR="$1" install
rm -f "$1/usr/share/X11/xorg.conf.d/10-evdev.conf"
# Set suid for xorg.
chmod u+s "$1/usr/bin/Xorg"

View File

@ -1 +1,2 @@
a81d8243f37e75a03d4f8c55f96d0bc25802be6ec45c3bfa5cb614c6d01bac9d xorg-server-1.20.5.tar.bz2
c98ad9376f20ab25463ef74bb19f2dbe874a19918b27b430c8e632d272379129 rootless_modesetting.patch

View File

@ -1,3 +1,4 @@
bzip2
eudev
freetype-harfbuzz
libX11
@ -19,4 +20,5 @@ mesa
pixman
xinit
xkeyboard-config
xtrans
xtrans make
zlib

View File

@ -0,0 +1,14 @@
--- xorg-server-1.20.3/hw/xfree86/drivers/modesetting/driver.c
+++ xorg-server-1.20.3/hw/xfree86/drivers/modesetting/driver.c
@@ -1528,6 +1528,10 @@
if (ms->fd_passed)
return TRUE;
+ ret = drmIsMaster(ms->fd);
+ if (ret)
+ return TRUE;
+
ret = drmSetMaster(ms->fd);
if (ret)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "drmSetMaster failed: %s\n",

View File

@ -1 +1,2 @@
https://www.x.org/releases/individual/xserver/xorg-server-1.20.5.tar.bz2
patches/rootless_modesetting.patch

View File

@ -1 +1 @@
1.20.5 7
1.20.5 8