From 80c917aacd33202e4a1a9defd6ad408a2158698fd0dc627f8e24f40ea589ce90 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 10 Feb 2021 13:24:14 +0000 Subject: [PATCH] - u_gcc11.patch * fixes build against gcc11 (boo#1181871) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libmfx?expand=0&rev=30 --- libmfx.changes | 6 ++++++ libmfx.spec | 3 ++- u_gcc11.patch | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 u_gcc11.patch diff --git a/libmfx.changes b/libmfx.changes index 1cd322f..95620b0 100644 --- a/libmfx.changes +++ b/libmfx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 10 13:16:39 UTC 2021 - Stefan Dirsch + +- u_gcc11.patch + * fixes build against gcc11 (boo#1181871) + ------------------------------------------------------------------- Sat Oct 10 20:29:30 UTC 2020 - Dirk Mueller diff --git a/libmfx.spec b/libmfx.spec index b027a4c..7927b03 100644 --- a/libmfx.spec +++ b/libmfx.spec @@ -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++ diff --git a/u_gcc11.patch b/u_gcc11.patch new file mode 100644 index 0000000..5dd3359 --- /dev/null +++ b/u_gcc11.patch @@ -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 + #include + #include "cmrt_cross_platform.h" ++// needed for GCC11 (boo#1181871) ++#include + + using std::min; + using std::max;