[packages/gnome-panel] - libical4 fixes
qboosh
qboosh at pld-linux.org
Thu Jul 23 19:32:45 CEST 2026
commit 3cc74c2ffa8abd1c211cbe2a2920c716e426e6df
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 23 19:32:57 2026 +0200
- libical4 fixes
gnome-panel-libical4.patch | 26 ++++++++++++++++++++++++++
gnome-panel.spec | 3 +++
2 files changed, 29 insertions(+)
---
diff --git a/gnome-panel.spec b/gnome-panel.spec
index 99b4616..3203418 100644
--- a/gnome-panel.spec
+++ b/gnome-panel.spec
@@ -7,6 +7,7 @@ License: LGPL v2+ (library), GPL v2+ (the rest)
Group: X11/Applications
Source0: https://download.gnome.org/sources/gnome-panel/3.58/%{name}-%{version}.tar.xz
# Source0-md5: 59885800da1c927bbc5f62d7fd20513f
+Patch0: %{name}-libical4.patch
URL: https://wiki.gnome.org/Projects/GnomePanel
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.16.4
@@ -113,6 +114,7 @@ Pliki nagłówkowe bibliotek panelu GNOME.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__libtoolize}
@@ -124,6 +126,7 @@ Pliki nagłówkowe bibliotek panelu GNOME.
--disable-silent-rules \
--disable-static \
--enable-eds
+
%{__make}
%install
diff --git a/gnome-panel-libical4.patch b/gnome-panel-libical4.patch
new file mode 100644
index 0000000..5ab22b7
--- /dev/null
+++ b/gnome-panel-libical4.patch
@@ -0,0 +1,26 @@
+--- gnome-panel-3.58.1/modules/clock/calendar-client.c.orig 2025-09-28 16:15:10.000000000 +0200
++++ gnome-panel-3.58.1/modules/clock/calendar-client.c 2026-07-23 19:27:36.001746031 +0200
+@@ -460,7 +460,11 @@ make_isodate_for_day_begin (int day,
+ static time_t
+ get_time_from_property (ICalComponent *icomp,
+ ICalPropertyKind prop_kind,
++#if ICAL_MAJOR_VERSION >= 4
++ ICalTime * (* get_prop_func) (const ICalProperty *prop),
++#else
+ ICalTime * (* get_prop_func) (ICalProperty *prop),
++#endif
+ ICalTimezone *default_zone)
+ {
+ ICalProperty *prop;
+@@ -622,7 +626,11 @@ get_component_is_all_day (ICalComponent
+ duration = i_cal_property_get_duration (prop);
+ g_object_unref (prop);
+
++#if ICAL_MAJOR_VERSION >= 4
++ is_all_day = i_cal_duration_as_seconds (duration) % 86400 == 0;
++#else
+ is_all_day = i_cal_duration_as_int (duration) % 86400 == 0;
++#endif
+ g_object_unref (duration);
+
+ return is_all_day;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-panel.git/commitdiff/3cc74c2ffa8abd1c211cbe2a2920c716e426e6df
More information about the pld-cvs-commit
mailing list