2
0
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:
Dylan Araps 2020-03-07 22:51:20 +02:00
parent 184a882527
commit 93b6a53f1f
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
5 changed files with 19 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < rootless-nouveau.patch
export LDFLAGS="-Wl,-z,lazy"
./configure \

View File

@ -1 +1,2 @@
304060806415579cdb5c1f71f1c54d11cacb431b5552b170decbc883ed43bf06 xf86-video-nouveau-1.0.16.tar.bz2
e9197c97db81da40b9f1abc76ae349b4fe42a7563fbe9ac80821a68327e28c01 rootless-nouveau.patch

View File

@ -1,3 +1,2 @@
eudev
libdrm
xorgproto

View 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));

View File

@ -1 +1,2 @@
https://x.org/releases/individual/driver/xf86-video-nouveau-1.0.16.tar.bz2
patches/rootless-nouveau.patch