Fix missing #includes for gcc-11

This commit is contained in:
Jeff Law 2020-10-17 11:22:29 -06:00
parent 32e61f72b3
commit 92baa573a3
2 changed files with 65 additions and 1 deletions

60
vapoursynth-gcc11.patch Normal file
View File

@ -0,0 +1,60 @@
diff --git a/src/core/exprfilter.cpp b/src/core/exprfilter.cpp
index 8e6f154..1971f18 100644
--- a/src/core/exprfilter.cpp
+++ b/src/core/exprfilter.cpp
@@ -32,6 +32,7 @@
#include <unordered_map>
#include <unordered_set>
#include <vector>
+#include <limits>
#include "VapourSynth.h"
#include "VSHelper.h"
#include "cpufeatures.h"
diff --git a/src/core/genericfilters.cpp b/src/core/genericfilters.cpp
index 613d98f..327512c 100644
--- a/src/core/genericfilters.cpp
+++ b/src/core/genericfilters.cpp
@@ -28,6 +28,7 @@
#include <array>
#include <memory>
#include <vector>
+#include <limits>
#include <VapourSynth.h>
#include <VSHelper.h>
#include "cpufeatures.h"
diff --git a/src/core/kernel/generic.cpp b/src/core/kernel/generic.cpp
index f4477bd..c00c619 100644
--- a/src/core/kernel/generic.cpp
+++ b/src/core/kernel/generic.cpp
@@ -22,6 +22,7 @@
#include <array>
#include <cmath>
#include <cstdint>
+#include <limits>
#include <type_traits>
#include "generic.h"
diff --git a/src/filters/misc/miscfilters.cpp b/src/filters/misc/miscfilters.cpp
index b4a727a..8931cbb 100644
--- a/src/filters/misc/miscfilters.cpp
+++ b/src/filters/misc/miscfilters.cpp
@@ -25,6 +25,7 @@
#include <cstddef>
#include <memory>
#include <vector>
+#include <limits>
#include <VapourSynth.h>
#include <VSHelper.h>
#include "../src/core/filtersharedcpp.h"
diff --git a/src/filters/removegrain/clense.cpp b/src/filters/removegrain/clense.cpp
index 5fdc6b2..2507119 100644
--- a/src/filters/removegrain/clense.cpp
+++ b/src/filters/removegrain/clense.cpp
@@ -26,6 +26,7 @@ OTHER DEALINGS IN THE SOFTWARE.
*/
#include "shared.h"
+#include <limits>
#define CLENSE_RETERROR(x) do { vsapi->setError(out, (x)); vsapi->freeNode(d.cnode); vsapi->freeNode(d.pnode); vsapi->freeNode(d.nnode); return; } while (0)
#define CLAMP(value, lower, upper) do { if (value < lower) value = lower; else if (value > upper) value = upper; } while(0)

View File

@ -4,7 +4,7 @@
Name: vapoursynth
Version: 48
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Video processing framework with simplicity in mind
License: LGPLv2
URL: http://www.vapoursynth.com
@ -12,6 +12,7 @@ URL: http://www.vapoursynth.com
Source0: https://github.com/%{name}/%{name}/archive/R%{version}/%{name}-R%{version}.tar.gz
Patch0: %{name}-version-info.patch
Patch1: https://github.com/vapoursynth/vapoursynth/commit/a53ed4dda74d61d4cb56842dc0c6e6e7c3870e11.patch#/%{name}-python38.patch
Patch2: %{name}-gcc11.patch
ExclusiveArch: %{ix86} x86_64
@ -158,6 +159,9 @@ rm -fr %{buildroot}%{_docdir}/%{name}
%changelog
* Sat Oct 17 2020 Jeff Law <law@redhat.com> - 48-10
- Fix missing #include for gcc-11
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 48-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild