diff --git a/vdr-epg-daemon-pthread.patch b/vdr-epg-daemon-pthread.patch new file mode 100644 index 0000000..c913d46 --- /dev/null +++ b/vdr-epg-daemon-pthread.patch @@ -0,0 +1,10 @@ +--- vdr-epg-daemon-1.2.3/lib/common.h.orig 2022-08-03 13:13:49.864327998 +0200 ++++ vdr-epg-daemon-1.2.3/lib/common.h 2022-08-03 13:14:27.198182024 +0200 +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + + #ifdef USESYSD + # include diff --git a/vdr-epg-daemon.spec b/vdr-epg-daemon.spec index b4e1d1f..d339955 100644 --- a/vdr-epg-daemon.spec +++ b/vdr-epg-daemon.spec @@ -1,16 +1,26 @@ ## This macro activates/deactivates debug option %global without_debug 1 +# version we want build against +%global vdr_version 2.4.0 +%if 0%{?fedora} >= 36 +%global vdr_version 2.6.1 +%endif +%if 0%{?fedora} == 35 +%global vdr_version 2.4.7 +%endif Name: vdr-epg-daemon Version: 1.2.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A daemon to download EPG data from internet and manage it in a mysql database License: GPL+ and GPLv2 and BSD URL: http://projects.vdr-developer.org/projects/vdr-epg-daemon Source0: https://projects.vdr-developer.org/git/%{name}.git/snapshot/%{name}-%{version}.tar.bz2 -# fix Optimization flags are not honored. +# fix: Optimization flags are not honored. Patch0: %{name}-makefile.patch +# fix: error: 'pthread_mutexattr_init' was not declared in this scope +Patch1: %{name}-pthread.patch BuildRequires: make BuildRequires: gcc-c++ @@ -32,7 +42,8 @@ BuildRequires: mariadb-devel BuildRequires: libarchive-devel BuildRequires: systemd-devel BuildRequires: systemd-units -BuildRequires: vdr-devel +#BuildRequires: vdr-devel +BuildRequires: vdr-devel >= %{vdr_version} Requires: mariadb-server Requires(post): systemd-units Requires(preun): systemd-units @@ -128,6 +139,9 @@ mkdir -p %{buildroot}%{_libdir}/mariadb/plugin %{vdr_resdir}/epgd/ %changelog +* Wed Aug 03 2022 Martin Gansser - 1.2.3-4 +- Add %%{name}-pthread.patch fix (BZ#2113752) + * Sat Jul 23 2022 Fedora Release Engineering - 1.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild