2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

xf86-video-ati: Fix rootless xorg

This commit is contained in:
Dylan Araps 2020-02-09 13:42:27 +02:00
parent b2a5d527f7
commit 0cbdf327f5
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 20 additions and 2 deletions

View File

@ -2,6 +2,8 @@
export LDFLAGS="-Wl,-z,lazy"
patch -p1 < rootless-ati.patch
./configure \
--prefix=/usr

View File

@ -1 +1,2 @@
c05c6e0c396a0148113f1836cfab7f2e43f784c9b7041f11e9cab40a4bc0c90f xf86-video-ati-19.1.0.tar.gz
ff007862ac398c5c67a148f2706fec596b25808cd76026627753f82d4873d546 rootless-ati.patch

View File

@ -1,4 +1,3 @@
eudev
expat
libdrm
libpciaccess

View File

@ -0,0 +1,15 @@
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index b3db7c4..e85aee5 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -2168,6 +2168,10 @@ static Bool radeon_set_drm_master(ScrnInfoPtr pScrn)
return TRUE;
#endif
+ err = drmIsMaster(pRADEONEnt->fd);
+ if (err)
+ return TRUE;
+
err = drmSetMaster(pRADEONEnt->fd);
if (err)
ErrorF("Unable to retrieve master\n");

View File

@ -1 +1,2 @@
https://x.org/releases/individual/driver/xf86-video-ati-19.1.0.tar.gz
patches/rootless-ati.patch

View File

@ -1 +1 @@
19.1.0 1
19.1.0 2