commit 28ae5164577ea6cacc844ae0da981f6e0e7aaa9a
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sun Feb 4 00:46:53 2024 +0000
Add an trivial patch to fix build with GCC14
kodi-pvr-stalker.spec | 4 +++-
malloc.patch | 10 ++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/kodi-pvr-stalker.spec b/kodi-pvr-stalker.spec
index 683744f..2b1ec3f 100644
--- a/kodi-pvr-stalker.spec
+++ b/kodi-pvr-stalker.spec
@@ -11,6 +11,7 @@ License: GPL-2.0-or-later
URL:
https://github.com/kodi-pvr/%{kodi_addon}/
Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz
Source1: %{name}.metainfo.xml
+Patch1: malloc.patch
BuildRequires: cmake3
BuildRequires: gcc
@@ -27,7 +28,7 @@ ExcludeArch: %{power64}
%prep
-%autosetup -n %{kodi_addon}-%{version}-%{kodi_codename}
+%autosetup -p1 -n %{kodi_addon}-%{version}-%{kodi_codename}
%build
@@ -59,6 +60,7 @@ appstream-util validate-relax --nonet
$RPM_BUILD_ROOT%{_metainfodir}/%{name}.met
%changelog
* Sat Feb 03 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
20.3.1-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+- Add an trivial patch to fix build with GCC14
* Wed Aug 02 2023 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
20.3.1-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/malloc.patch b/malloc.patch
new file mode 100644
index 0000000..e4021bb
--- /dev/null
+++ b/malloc.patch
@@ -0,0 +1,10 @@
+--- ./lib/libstalkerclient/xmltv.c.old 2024-02-03 23:59:37.856010274 +0000
++++ ./lib/libstalkerclient/xmltv.c 2024-02-04 00:00:11.408900966 +0000
+@@ -24,6 +24,7 @@
+ #include <errno.h>
+ #include <inttypes.h>
+ #include <string.h>
++#include <stdlib.h>
+
+ #include "util.h"
+