Accepting request 870902 from X11:XOrg

- u_gcc11.patch
  * fixes build against gcc11 (boo#1181871)

OBS-URL: https://build.opensuse.org/request/show/870902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmfx?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2021-02-16 21:35:44 +00:00 committed by Git OBS Bridge
commit 65c04b8830
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 10 13:16:39 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>
- u_gcc11.patch
* fixes build against gcc11 (boo#1181871)
-------------------------------------------------------------------
Sat Oct 10 20:29:30 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package libmfx
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,7 @@ Group: Development/Languages/C and C++
URL: https://github.com/Intel-Media-SDK/MediaSDK
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-%{version}.tar.gz
Patch0: cmake-sle12.patch
Patch1: u_gcc11.patch
BuildRequires: cmake
%if 0%{?suse_version} < 1500
BuildRequires: gcc7-c++

11
u_gcc11.patch Normal file
View File

@ -0,0 +1,11 @@
--- MediaSDK-intel-mediasdk-20.3.0/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp.orig 2021-02-10 14:12:52.933078000 +0100
+++ MediaSDK-intel-mediasdk-20.3.0/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp 2021-02-10 14:14:46.421417000 +0100
@@ -45,6 +45,8 @@
#include <climits>
#include <cmath>
#include "cmrt_cross_platform.h"
+// needed for GCC11 (boo#1181871)
+#include <limits>
using std::min;
using std::max;