From a1f9b40e251e612d47cca1b29341533084433513 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Fri, 15 Aug 2025 10:35:00 +0200 Subject: [PATCH] Fix build with FPC 3.2.4 --- skychart-4.3-fpc-3.2.4.patch | 15 +++++++++++++++ skychart.spec | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 skychart-4.3-fpc-3.2.4.patch diff --git a/skychart-4.3-fpc-3.2.4.patch b/skychart-4.3-fpc-3.2.4.patch new file mode 100644 index 0000000..f4b928c --- /dev/null +++ b/skychart-4.3-fpc-3.2.4.patch @@ -0,0 +1,15 @@ +diff -rU4 skychart-4.3-4974-src--orig/skychart/cu_tz.pas skychart-4.3-4974-src--patched/skychart/cu_tz.pas +--- skychart-4.3-4974-src--orig/skychart/cu_tz.pas 2025-03-03 03:30:14.000000000 +0100 ++++ skychart-4.3-4974-src--patched/skychart/cu_tz.pas 2025-08-15 10:32:52.001369952 +0200 +@@ -41,8 +41,11 @@ + Windows, + {$endif} + {$ifdef unix} + unixutil, ++ {$IF FPC_FULLVERSION > 30202} // FPC 3.2.4 moves TzSeconds from UnixUtil to Unix ++ unix, ++ {$ENDIF} + {$endif} + Classes, SysUtils, Math; + + type diff --git a/skychart.spec b/skychart.spec index 2af587f..25ef4a9 100644 --- a/skychart.spec +++ b/skychart.spec @@ -56,6 +56,8 @@ Patch: skychart-4.3-satmessage.patch # This feature was asked upstream specifically for Fedora Patch: skychart-4.3-noupdatemenu.patch +# Fix build with FPC 3.2.4 +Patch: skychart-4.3-fpc-3.2.4.patch ExclusiveArch: %{fpc_arches} ExcludeArch: %{ix86}