commit 9ba1764ee64e39bb2e9e53257fb256f78eee4269
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Nov 12 13:45:39 2023 +0000
fix build
HandBrake.spec | 2 ++
add_time_include.patch | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+)
---
diff --git a/HandBrake.spec b/HandBrake.spec
index af40e03..9477136 100644
--- a/HandBrake.spec
+++ b/HandBrake.spec
@@ -43,6 +43,7 @@ Patch2: %{name}-no-fdk_aac.patch
Patch3: %{name}-no-nasm.patch
# Patch from Gentoo
Patch4: %{name}-x265-link.patch
+Patch5: add_time_include.patch
BuildRequires: a52dec-devel >= 0.7.4
BuildRequires: cmake
@@ -146,6 +147,7 @@ gpgv2 --keyring %{S:2} %{S:1} %{S:0}
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p1
# Use system libraries in place of bundled ones
for module in a52dec fdk-aac %{!?_without_ffmpeg:ffmpeg} libdav1d libdvdnav libdvdread
libbluray %{?_with_vpl:libmfx libvpl} nvenc libvpx svt-av1 x265; do
diff --git a/add_time_include.patch b/add_time_include.patch
new file mode 100644
index 0000000..9ab4131
--- /dev/null
+++ b/add_time_include.patch
@@ -0,0 +1,24 @@
+diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
+index 929e0dd0cfe9..f1032bd9f841 100644
+--- a/libhb/muxavformat.c
++++ b/libhb/muxavformat.c
+@@ -7,6 +7,7 @@
+ For full terms see the file COPYING file or visit
http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
++#include <time.h>
+ #include <ogg/ogg.h>
+ #include "libavcodec/bsf.h"
+ #include "libavformat/avformat.h"
+diff --git a/libhb/work.c b/libhb/work.c
+index 3c4dee193bf5..9bf128bdbc73 100644
+--- a/libhb/work.c
++++ b/libhb/work.c
+@@ -7,6 +7,7 @@
+ For full terms see the file COPYING file or visit
http://www.gnu.org/licenses/gpl-2.0.html
+ */
+
++#include <time.h>
+ #include "handbrake/handbrake.h"
+ #include "libavformat/avformat.h"
+ #include "handbrake/decomb.h"