mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-16 03:30:23 -07:00
xorg-server: always rootless
This commit is contained in:
parent
f5efc12367
commit
0deee6aa92
@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
patch -p1 < rootless_modesetting.patch
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--localstatedir=/var \
|
||||||
--disable-systemd-logind \
|
--disable-systemd-logind \
|
||||||
--disable-xwayland \
|
--disable-xwayland \
|
||||||
--disable-unit-tests \
|
--disable-unit-tests \
|
||||||
@ -20,6 +23,3 @@ make
|
|||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
|
||||||
rm -f "$1/usr/share/X11/xorg.conf.d/10-evdev.conf"
|
rm -f "$1/usr/share/X11/xorg.conf.d/10-evdev.conf"
|
||||||
|
|
||||||
# Set suid for xorg.
|
|
||||||
chmod u+s "$1/usr/bin/Xorg"
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
a81d8243f37e75a03d4f8c55f96d0bc25802be6ec45c3bfa5cb614c6d01bac9d xorg-server-1.20.5.tar.bz2
|
a81d8243f37e75a03d4f8c55f96d0bc25802be6ec45c3bfa5cb614c6d01bac9d xorg-server-1.20.5.tar.bz2
|
||||||
|
c98ad9376f20ab25463ef74bb19f2dbe874a19918b27b430c8e632d272379129 rootless_modesetting.patch
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
bzip2
|
||||||
eudev
|
eudev
|
||||||
freetype-harfbuzz
|
freetype-harfbuzz
|
||||||
libX11
|
libX11
|
||||||
@ -19,4 +20,5 @@ mesa
|
|||||||
pixman
|
pixman
|
||||||
xinit
|
xinit
|
||||||
xkeyboard-config
|
xkeyboard-config
|
||||||
xtrans
|
xtrans make
|
||||||
|
zlib
|
||||||
|
14
xorg/xorg-server/patches/rootless_modesetting.patch
Normal file
14
xorg/xorg-server/patches/rootless_modesetting.patch
Normal 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",
|
||||||
|
|
@ -1 +1,2 @@
|
|||||||
https://www.x.org/releases/individual/xserver/xorg-server-1.20.5.tar.bz2
|
https://www.x.org/releases/individual/xserver/xorg-server-1.20.5.tar.bz2
|
||||||
|
patches/rootless_modesetting.patch
|
||||||
|
@ -1 +1 @@
|
|||||||
1.20.5 7
|
1.20.5 8
|
||||||
|
Loading…
Reference in New Issue
Block a user