commit 99d70ef63a4bacc210f688fab19179411e146fcc
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Feb 17 15:35:39 2024 +0000
Fix build
buildfix_gcc14.patch | 12 ++++++++++++
kodi-pvr-mythtv.spec | 1 +
2 files changed, 13 insertions(+)
---
diff --git a/buildfix_gcc14.patch b/buildfix_gcc14.patch
new file mode 100644
index 0000000..f8168d4
--- /dev/null
+++ b/buildfix_gcc14.patch
@@ -0,0 +1,12 @@
+--- ./src/pvrclient-mythtv.cpp
++++ ./src/pvrclient-mythtv.cpp
+@@ -641,7 +641,7 @@
+ }
+ tag.SetEpisodePartNumber(EPG_TAG_INVALID_SERIES_EPISODE);
+ tag.SetParentalRating(0);
+- tag.SetStarRating(static_cast<int>(it->second->stars * 10.0));
++ tag.SetStarRating(static_cast<int>(std::stod(it->second->stars) *
10.0));
+ tag.SetOriginalTitle("");
+ tag.SetCast("");
+ tag.SetDirector("");
+
diff --git a/kodi-pvr-mythtv.spec b/kodi-pvr-mythtv.spec
index 258a8bb..12bccc2 100644
--- a/kodi-pvr-mythtv.spec
+++ b/kodi-pvr-mythtv.spec
@@ -17,6 +17,7 @@ Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{versi
Source1: %{name}.metainfo.xml
# Use external cppmyth library
Patch0: %{name}-20.5.5-use_external_cppmyth.patch
+Patch1: buildfix_gcc14.patch
BuildRequires: cmake
BuildRequires: gcc-c++
Show replies by date