diff --git a/libvdpau.changes b/libvdpau.changes index b3e814d..bf1ee8e 100644 --- a/libvdpau.changes +++ b/libvdpau.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Sep 2 13:03:40 UTC 2015 - sndirsch@suse.com + +- added missing BuildRequires for pkgconfig(dri2proto) +- u_src-mesa_dri2.c-define-_GNU_SOURCE.patch + * Without having defined _GNU_SOURCE __USE_GNU isn't defined + either. Though secure_getenv() in stdlib.h isn't declared. + ------------------------------------------------------------------- Tue Sep 1 14:02:11 UTC 2015 - sndirsch@suse.com diff --git a/libvdpau.spec b/libvdpau.spec index 053c697..91bcfbe 100644 --- a/libvdpau.spec +++ b/libvdpau.spec @@ -28,6 +28,7 @@ Source1: http://people.freedesktop.org/~aplattner/vdpau/vdpauinfo-1.0.tar Source2: README Source99: baselibs.conf Source100: %{name}-rpmlintrc +Patch0: u_src-mesa_dri2.c-define-_GNU_SOURCE.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: doxygen @@ -36,6 +37,7 @@ BuildRequires: gcc-c++ BuildRequires: graphviz BuildRequires: libtool BuildRequires: pkgconfig +BuildRequires: pkgconfig(dri2proto) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -83,6 +85,7 @@ Its usage is documented in the README. %prep %setup -q -b1 +%patch0 -p1 %build autoreconf -fi diff --git a/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch b/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch new file mode 100644 index 0000000..c303915 --- /dev/null +++ b/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch @@ -0,0 +1,26 @@ +From 61c933961b9dd02c9dfb77f086c25b83749f4b37 Mon Sep 17 00:00:00 2001 +From: Stefan Dirsch +Date: Wed, 2 Sep 2015 14:57:35 +0200 +Subject: [PATCH] src/mesa_dri2.c: define _GNU_SOURCE + +Without having defined _GNU_SOURCE __USE_GNU isn't defined either. +Though secure_getenv() in stdlib.h isn't declared. +--- + src/mesa_dri2.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c +index 51e8794..8594c1f 100644 +--- a/src/mesa_dri2.c ++++ b/src/mesa_dri2.c +@@ -35,6 +35,7 @@ + + + #define NEED_REPLIES ++#define _GNU_SOURCE + #include + #include + #include +-- +1.8.4.5 +