From 4047caab4369c2715a4126206e96e79cda2e0b3a2b67141ff23d8449e09c2c25 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 16 Mar 2020 12:53:33 +0000 Subject: [PATCH] - u_buildfix-for-gcc10.patch * fixes build against gcc10 (boo#1166609) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libmfx?expand=0&rev=21 --- libmfx.changes | 6 ++++++ libmfx.spec | 2 ++ u_buildfix-for-gcc10.patch | 10 ++++++++++ 3 files changed, 18 insertions(+) create mode 100644 u_buildfix-for-gcc10.patch diff --git a/libmfx.changes b/libmfx.changes index 1a9d5c4..cc8160e 100644 --- a/libmfx.changes +++ b/libmfx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 16 12:40:37 UTC 2020 - Stefan Dirsch + +- u_buildfix-for-gcc10.patch + * fixes build against gcc10 (boo#1166609) + ------------------------------------------------------------------- Tue Mar 3 12:30:43 UTC 2020 - Bjørn Lie diff --git a/libmfx.spec b/libmfx.spec index bb273ea..7eeca80 100644 --- a/libmfx.spec +++ b/libmfx.spec @@ -26,6 +26,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_buildfix-for-gcc10.patch BuildRequires: cmake %if 0%{?suse_version} < 1500 BuildRequires: gcc7-c++ @@ -68,6 +69,7 @@ the Intel Media SDK. %if 0%{?suse_version} < 1500 %patch0 -p1 %endif +%patch1 -p1 %build mkdir -p build diff --git a/u_buildfix-for-gcc10.patch b/u_buildfix-for-gcc10.patch new file mode 100644 index 0000000..fdf3db9 --- /dev/null +++ b/u_buildfix-for-gcc10.patch @@ -0,0 +1,10 @@ +--- MediaSDK-intel-mediasdk-19.4.0/tutorials/common/common_vaapi.cpp.old 2020-03-16 12:19:15.596797932 +0000 ++++ MediaSDK-intel-mediasdk-19.4.0/tutorials/common/common_vaapi.cpp 2020-03-16 12:19:43.133334634 +0000 +@@ -24,6 +24,7 @@ + #include + + #include "common_vaapi.h" ++#include + + struct sharedResponse { + mfxFrameAllocResponse mfxResponse;