Notification time stamped 2021-01-31 17:38:46 UTC
From b2d4580226dffa087af06b151a83e3943dbb46e1 Mon Sep 17 00:00:00 2001
From: vascom <vascom2(a)gmail.com>
Date: Jan 31 2021 17:38:18 +0000
Subject: Fix build with GCC 11.
---
diff --git a/cmake.patch b/cmake.patch
new file mode 100644
index 0000000..2e55e24
--- /dev/null
+++ b/cmake.patch
@@ -0,0 +1,19 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f191b3f..da2b40e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -119,11 +119,9 @@ set(flags_to_test
+ -fPIC
+ -D_FORTIFY_SOURCE=2
+ #-flto
+- -fvisibility=hidden
+- /GS
+- /sdl)
++ -fvisibility=hidden)
+ if(MSVC)
+- list(APPEND flags_to_test /MP)
++ list(APPEND flags_to_test /MP /GS /sdl)
+ else()
+ option(NATIVE "Build for native performance (march=native)")
+ list(INSERT flags_to_test 0 -Wall)
+
diff --git a/svt-vp9.spec b/svt-vp9.spec
index 5e00542..8dafda8 100644
--- a/svt-vp9.spec
+++ b/svt-vp9.spec
@@ -4,7 +4,7 @@
Name: svt-vp9
Version: 0.3.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Scalable Video Technology for VP9 Encoder
# ISC license for Source/Lib/ASM_SSE2/x86inc.asm
@@ -12,6 +12,8 @@ License: BSD-2-Clause-Patent and ISC
URL:
https://github.com/OpenVisualCloud/SVT-VP9
Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0: %url/tarball/%{gitcommit_full}
+#
https://github.com/OpenVisualCloud/SVT-VP9/pull/133
+Patch0: cmake.patch
BuildRequires: gcc
BuildRequires: cmake
@@ -93,6 +95,9 @@ popd
%{_libdir}/gstreamer-1.0/libgstsvtvp9enc.so
%changelog
+* Sun Jan 31 2021 Vasiliy N. Glazov <vascom2(a)gmail.com> - 0.3.0-3
+- Fix build with GCC 11
+
* Wed Jan 27 2021 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.3.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
https://src.fedoraproject.org/rpms/svt-vp9/c/b2d4580226dffa087af06b151a83...