mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
xf86-video-nouveau: Rootless xorg
This commit is contained in:
parent
184a882527
commit
93b6a53f1f
@ -1,5 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
patch -p1 < rootless-nouveau.patch
|
||||
|
||||
export LDFLAGS="-Wl,-z,lazy"
|
||||
|
||||
./configure \
|
||||
|
@ -1 +1,2 @@
|
||||
304060806415579cdb5c1f71f1c54d11cacb431b5552b170decbc883ed43bf06 xf86-video-nouveau-1.0.16.tar.bz2
|
||||
e9197c97db81da40b9f1abc76ae349b4fe42a7563fbe9ac80821a68327e28c01 rootless-nouveau.patch
|
||||
|
@ -1,3 +1,2 @@
|
||||
eudev
|
||||
libdrm
|
||||
xorgproto
|
||||
|
15
xorg/xf86-video-nouveau/patches/rootless-nouveau.patch
Normal file
15
xorg/xf86-video-nouveau/patches/rootless-nouveau.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/src/nv_driver.c b/src/nv_driver.c
|
||||
index 185bba7..7927128 100644
|
||||
--- a/src/nv_driver.c
|
||||
+++ b/src/nv_driver.c
|
||||
@@ -501,6 +501,10 @@ NVEnterVT(VT_FUNC_ARGS_DECL)
|
||||
(pNVEnt->platform_dev->flags & XF86_PDEV_SERVER_FD)))
|
||||
#endif
|
||||
{
|
||||
+ ret = drmIsMaster(pNv->dev->fd);
|
||||
+ if (ret)
|
||||
+ return TRUE;
|
||||
+
|
||||
ret = drmSetMaster(pNv->dev->fd);
|
||||
if (ret)
|
||||
ErrorF("Unable to get master: %s\n", strerror(errno));
|
@ -1 +1,2 @@
|
||||
https://x.org/releases/individual/driver/xf86-video-nouveau-1.0.16.tar.bz2
|
||||
patches/rootless-nouveau.patch
|
||||
|
Loading…
Reference in New Issue
Block a user