commit 38af8e0042ed7be5d7e5d87c10eb40a087677943
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Sep 4 10:14:58 2014 +0200

    - rel 2; try to fix segfault when using non-intel gpu but libdrm checks 
intel related stuff

 libdrm-intel-init.patch | 19 +++++++++++++++++++
 libdrm.spec             |  4 +++-
 2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/libdrm.spec b/libdrm.spec
index 2d29cdd..7082bc0 100644
--- a/libdrm.spec
+++ b/libdrm.spec
@@ -2,11 +2,12 @@ Summary:      Userspace interface to kernel DRM services
 Summary(pl.UTF-8):     Interfejs przestrzeni użytkownika do usług DRM jądra
 Name:          libdrm
 Version:       2.4.56
-Release:       1
+Release:       2
 License:       MIT
 Group:         Libraries
 Source0:       http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
 # Source0-md5: 93fdb76d392ce27b23561afb8f70db81
+Patch0:                libdrm-intel-init.patch
 URL:           http://dri.freedesktop.org/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.10
@@ -53,6 +54,7 @@ Statyczna biblioteka libdrm.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/libdrm-intel-init.patch b/libdrm-intel-init.patch
new file mode 100644
index 0000000..ce2de25
--- /dev/null
+++ b/libdrm-intel-init.patch
@@ -0,0 +1,19 @@
+--- libdrm-2.4.56/intel/intel_bufmgr_gem.c~    2014-02-07 17:58:41.000000000 
+0100
++++ libdrm-2.4.56/intel/intel_bufmgr_gem.c     2014-09-04 10:14:00.629857376 
+0200
+@@ -2924,7 +2924,7 @@
+ get_pci_device_id(drm_intel_bufmgr_gem *bufmgr_gem)
+ {
+       char *devid_override;
+-      int devid;
++      int devid = 0;
+       int ret;
+       drm_i915_getparam_t gp;
+ 
+@@ -2936,7 +2936,6 @@
+               }
+       }
+ 
+-      VG_CLEAR(devid);
+       VG_CLEAR(gp);
+       gp.param = I915_PARAM_CHIPSET_ID;
+       gp.value = &devid;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdrm.git/commitdiff/38af8e0042ed7be5d7e5d87c10eb40a087677943

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to