Hello community,

here is the log from the commit of package xf86-video-intel for 
openSUSE:Factory checked in at 2015-08-21 07:36:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xf86-video-intel (Old)
 and      /work/SRC/openSUSE:Factory/.xf86-video-intel.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xf86-video-intel"

Changes:
--------
--- /work/SRC/openSUSE:Factory/xf86-video-intel/xf86-video-intel.changes        
2015-05-28 09:50:45.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xf86-video-intel.new/xf86-video-intel.changes   
2015-08-21 07:36:59.000000000 +0200
@@ -1,0 +2,7 @@
+Sun Aug  2 09:49:52 UTC 2015 - [email protected]
+
+- Add u_uxa-fix-missing-includes-for-fstat.patch and
+  u_sna-fix-missing-includes-for-fstat.patch: fix missing includes
+  for fstat to be declared.
+
+-------------------------------------------------------------------

New:
----
  u_sna-fix-missing-includes-for-fstat.patch
  u_uxa-fix-missing-includes-for-fstat.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xf86-video-intel.spec ++++++
--- /var/tmp/diff_new_pack.rlUjJS/_old  2015-08-21 07:37:00.000000000 +0200
+++ /var/tmp/diff_new_pack.rlUjJS/_new  2015-08-21 07:37:00.000000000 +0200
@@ -33,6 +33,8 @@
 Source0:        %{name}-%{version}.tar.bz2
 Source99:       baselibs.conf
 Patch0:         U_sna-Protect-against-ABI-breakage-in-recent-versions-.patch
+Patch1:         u_sna-fix-missing-includes-for-fstat.patch
+Patch2:         u_uxa-fix-missing-includes-for-fstat.patch
 
 %if %glamor
 Requires:       glamor
@@ -104,6 +106,8 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
 ###    --enable-dri3 \

++++++ u_sna-fix-missing-includes-for-fstat.patch ++++++
>From 8bbf3c3acc5b93f579d7dde77dd1fa27d870cf3b Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <[email protected]>
Date: Sun, 2 Aug 2015 11:39:20 +0200
Subject: [PATCH] sna: fix missing includes for fstat

In order for fstat to be usable, sys/stat.h needs to be included or we
might end up in a build failure like:

sna_driver.c: In function 'sna_handle_uevents':
sna_driver.c:799:6: error: implicit declaration of function 'fstat' 
[-Werror=implicit-function-declaration]
---
 src/sna/sna_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 6db129f..f8231aa 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -67,6 +67,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <sys/ioctl.h>
 #include <sys/fcntl.h>
 #include <sys/poll.h>
+#include <sys/stat.h>
 #include "i915_drm.h"
 
 #ifdef HAVE_VALGRIND
-- 
2.4.5

++++++ u_uxa-fix-missing-includes-for-fstat.patch ++++++
>From 7eac1b87bccdd0494fd8161fa3b7da0e169ab8d4 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <[email protected]>
Date: Sun, 2 Aug 2015 11:46:54 +0200
Subject: [PATCH] uxa: fix missing includes for fstat

Without these headers, we can run into build errors like:

intel_driver.c: In function 'I830HandleUEvents':
intel_driver.c:745:14: error: storage size of 's' isn't known

intel_video.c:104:39: warning: initialization discards 'const' qualifier from 
pointer target type [-Wdiscarded-qualifiers]
{XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"},
                                       ^
intel_driver.c:753:6: error: implicit declaration of function 'fstat' 
[-Werror=implicit-function-declaration]
---
 src/uxa/intel_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 8e685bd..007e1a3 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -44,6 +44,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
+#include <sys/stat.h>
+#include <sys/types.h>
 
 #include "xorg-server.h"
 #include "xf86.h"
-- 
2.4.5


Reply via email to