Skip to contentSkip to conversation

xf86-video-modesetting: Require sufficiently new libdrm

PATCH New Johannes Pointner 1 participant 1 message Mar 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xf86-video-modesetting: Require sufficiently new libdrm

v2: Fixed file mode of patch file.

This fixes the check of the libdrm version in the configure script.

---
 .../0002-modesetting_libdrm_requirements.patch     | 29 ++++++++++++++++++++++
 .../xorg-xserver/xserver-xorg_1.17.2.bb            |  1 +
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-graphics/xorg-xserver/xserver-xorg/0002-modesetting_libdrm_requirements.patch
meta/recipes-graphics/xorg-xserver/xserver-xorg/0002-modesetting_libdrm_requirements.patch new file +29 -0
new file mode 100644
index 0000000..22b7e6f
@@ -0,0 +1,29 @@
+From bf23db42a4e5943129501223a47b48884cdeb62f Mon Sep 17 00:00:00 2001
+From: Adam Jackson <[email protected]>
+Date: Wed, 27 Jan 2016 11:50:13 -0500
+Subject: modesetting: Require sufficiently new libdrm
+
+Bugzilla: https://bugs.freedesktop.org/93883
+Signed-off-by: Adam Jackson <[email protected]>
+Reviewed-by: Alex Deucher <[email protected]>
+Reviewed-by: Julien Cristau <[email protected]>
+
+Upstream-Status: Backport
+
+diff --git a/configure.ac b/configure.ac
+index ac3bb64..312fc69 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2035,8 +2035,7 @@ if test "x$XORG" = xyes; then
+ 
+ 	if test "x$DRM" = xyes; then
+ 		dnl 2.4.46 is required for cursor hotspot support.
+-		PKG_CHECK_EXISTS(libdrm >= 2.4.46)
+-		XORG_DRIVER_MODESETTING=yes
++		PKG_CHECK_EXISTS(libdrm >= 2.4.46, XORG_DRIVER_MODESETTING=yes, XORG_DRIVER_MODESETTING=no)
+ 	fi
+ 
+ 	AC_SUBST([XORG_LIBS])
+-- 
+cgit v0.10.2
+
meta/recipes-graphics/xorg-xserver/xserver-xorg_1.17.2.bb +1 -0
index 3039d30..f087ecb 100644
@@ -1,6 +1,7 @@
 require xserver-xorg.inc
 
 SRC_URI += "file://0001-use-__GLIBC__-guard-for-glibc-specific-code.patch \
+	    file://0002-modesetting_libdrm_requirements.patch \
            "
 SRC_URI[md5sum] = "397e405566651150490ff493e463f1ad"
 SRC_URI[sha256sum] = "f61120612728f2c5034671d0ca3e2273438c60aba93b3dda4a8aa40e6a257993"
Signature · 1 line
2.7.2