diff --git a/xorg/xf86-video-ati/build b/xorg/xf86-video-ati/build index 3054c8be..ac9adef6 100755 --- a/xorg/xf86-video-ati/build +++ b/xorg/xf86-video-ati/build @@ -2,6 +2,8 @@ export LDFLAGS="-Wl,-z,lazy" +patch -p1 < rootless-ati.patch + ./configure \ --prefix=/usr diff --git a/xorg/xf86-video-ati/checksums b/xorg/xf86-video-ati/checksums index 740c30d6..c94c1656 100644 --- a/xorg/xf86-video-ati/checksums +++ b/xorg/xf86-video-ati/checksums @@ -1 +1,2 @@ c05c6e0c396a0148113f1836cfab7f2e43f784c9b7041f11e9cab40a4bc0c90f xf86-video-ati-19.1.0.tar.gz +ff007862ac398c5c67a148f2706fec596b25808cd76026627753f82d4873d546 rootless-ati.patch diff --git a/xorg/xf86-video-ati/depends b/xorg/xf86-video-ati/depends index 0d1c94e3..d0bba431 100644 --- a/xorg/xf86-video-ati/depends +++ b/xorg/xf86-video-ati/depends @@ -1,4 +1,3 @@ -eudev expat libdrm libpciaccess diff --git a/xorg/xf86-video-ati/patches/rootless-ati.patch b/xorg/xf86-video-ati/patches/rootless-ati.patch new file mode 100644 index 00000000..e78f6820 --- /dev/null +++ b/xorg/xf86-video-ati/patches/rootless-ati.patch @@ -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"); diff --git a/xorg/xf86-video-ati/sources b/xorg/xf86-video-ati/sources index b1a4fb8b..7f484946 100644 --- a/xorg/xf86-video-ati/sources +++ b/xorg/xf86-video-ati/sources @@ -1 +1,2 @@ https://x.org/releases/individual/driver/xf86-video-ati-19.1.0.tar.gz +patches/rootless-ati.patch diff --git a/xorg/xf86-video-ati/version b/xorg/xf86-video-ati/version index 119d7b4b..6df2a0b0 100644 --- a/xorg/xf86-video-ati/version +++ b/xorg/xf86-video-ati/version @@ -1 +1 @@ -19.1.0 1 +19.1.0 2