Accepting request 329483 from X11:XOrg

- replaced u_src-mesa_dri2.c-define-_GNU_SOURCE.patch with upstream
  U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch

- 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.

- Update libvdpau to version 1.1.1 (bnc#943967,#943968,#943969)
  libvdpau versions 1.1 and earlier, when used in setuid or setgid
  applications, contain vulnerabilities related to environment
  variable handling that could allow an attacker to execute
  arbitrary code or overwrite arbitrary files.  See CVE-2015-5198,
  CVE-2015-5199, and CVE-2015-5200 for more details.
  This release uses the secure_getenv() function, when available,
  to fix these problems. The updated libvdpau will instead use a
  fallback implementation of secure_getenv() when the platform
  doesn't provide one.
  If you use the NVIDIA .run installer packages, please see
  https://devtalk.nvidia.com/default/topic/873035 for additional
  information.
  This release also adds tracing of HEVC picture structures to
  libvdpau_trace.
- supersedes patch: libvdpau-nopdftex.patch

OBS-URL: https://build.opensuse.org/request/show/329483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvdpau?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2015-09-11 07:02:53 +00:00 committed by Git OBS Bridge
commit 2a5d67975d
6 changed files with 73 additions and 35 deletions

View File

@ -0,0 +1,29 @@
From b9905906439d84ee8e99c648ca2383c32c057c68 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Tue, 1 Sep 2015 10:45:11 +0200
Subject: [PATCH] mesa_dri2: Add missing include of config.h to define
_GNU_SOURCE
Fix build with -Wimplicit-function-declaration while secure_getenv() is
guarded by __USE_GNU.
---
src/mesa_dri2.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c
index 51e8794..420ccee 100644
--- a/src/mesa_dri2.c
+++ b/src/mesa_dri2.c
@@ -33,6 +33,9 @@
* and José Hiram Soltren (jsoltren@nvidia.com)
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define NEED_REPLIES
#include <X11/Xlibint.h>
--
2.5.0

3
libvdpau-1.1.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736
size 429576

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59c8bcfead6410d12284f1dc11ee919d3b11a684424597ba8961211ad8fdf34c
size 424233

View File

@ -1,28 +0,0 @@
diff -ur libvdpau-0.9.orig/configure.ac libvdpau-0.9/configure.ac
--- libvdpau-0.9.orig/configure.ac 2014-12-19 18:32:57.000000000 +0100
+++ libvdpau-0.9/configure.ac 2014-12-23 09:09:51.170774748 +0100
@@ -56,11 +56,9 @@
if test "x$DOCS" != xno; then
AC_CHECK_TOOL([DOXYGEN], [doxygen], [no])
AC_CHECK_TOOL([DOT], [dot], [no])
- AC_CHECK_TOOL([PDFTEX], [pdftex], [no])
else
DOXYGEN=no
DOT=no
- PDFTEX=no
fi
if test "x$DOCS" = xyes; then
if test "x$DOXYGEN" = xno; then
@@ -69,11 +67,8 @@
if test "x$DOT" = xno; then
AC_ERROR([Documentation enabled but dot was not found in your path. Please install graphviz])
fi
- if test "x$PDFTEX" = xno; then
- AC_ERROR([Documentation enabled but pdftex was not found in your path])
- fi
fi
-AM_CONDITIONAL([ENABLE_DOCS], [test "x$DOXYGEN" != xno -a "x$DOT" != xno -a "x$PDFTEX" != xno])
+AM_CONDITIONAL([ENABLE_DOCS], [test "x$DOXYGEN" != xno -a "x$DOT" != xno])
AC_SUBST(DOXYGEN)
# Options

View File

@ -1,3 +1,40 @@
-------------------------------------------------------------------
Mon Sep 7 10:24:35 UTC 2015 - sndirsch@suse.com
- replaced u_src-mesa_dri2.c-define-_GNU_SOURCE.patch with upstream
U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
-------------------------------------------------------------------
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
- Update libvdpau to version 1.1.1 (bnc#943967,#943968,#943969)
libvdpau versions 1.1 and earlier, when used in setuid or setgid
applications, contain vulnerabilities related to environment
variable handling that could allow an attacker to execute
arbitrary code or overwrite arbitrary files. See CVE-2015-5198,
CVE-2015-5199, and CVE-2015-5200 for more details.
This release uses the secure_getenv() function, when available,
to fix these problems. The updated libvdpau will instead use a
fallback implementation of secure_getenv() when the platform
doesn't provide one.
If you use the NVIDIA .run installer packages, please see
https://devtalk.nvidia.com/default/topic/873035 for additional
information.
This release also adds tracing of HEVC picture structures to
libvdpau_trace.
- supersedes patch: libvdpau-nopdftex.patch
-------------------------------------------------------------------
Tue Mar 17 08:38:21 UTC 2015 - sndirsch@suse.com

View File

@ -17,7 +17,7 @@
Name: libvdpau
Version: 1.1
Version: 1.1.1
Release: 0
Summary: VDPAU wrapper and trace libraries
License: MIT
@ -28,8 +28,7 @@ Source1: http://people.freedesktop.org/~aplattner/vdpau/vdpauinfo-1.0.tar
Source2: README
Source99: baselibs.conf
Source100: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE libvdpau-nopdftex.patch -- don't requires pdftex for building
Patch1: libvdpau-nopdftex.patch
Patch0: U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
@ -38,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
@ -85,7 +85,7 @@ Its usage is documented in the README.
%prep
%setup -q -b1
%patch1 -p1
%patch0 -p1
%build
autoreconf -fi