public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/almanah] rawhide: Add patch to build with libical 4.x
@ 2026-11-03 9:50 Milan Crha
0 siblings, 0 replies; only message in thread
From: Milan Crha @ 2026-11-03 9:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/almanah
Branch : rawhide
Commit : 057c6a9a99dfcec11c319fcf2267c0db6e71b2f2
Author : Milan Crha <mcrha@redhat.com>
Date : 2026-11-03T10:42:36+01:00
Stats : +31/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/almanah/c/057c6a9a99dfcec11c319fcf2267c0db6e71b2f2?branch=rawhide
Log:
Add patch to build with libical 4.x
[skip changelog]
---
diff --git a/0001-libical-4.x.patch b/0001-libical-4.x.patch
new file mode 100644
index 0000000..45437bc
--- /dev/null
+++ b/0001-libical-4.x.patch
@@ -0,0 +1,28 @@
+diff --git a/src/event-factories/calendar-client.c b/src/event-factories/calendar-client.c
+index 4398a2d..29fece8 100644
+--- a/src/event-factories/calendar-client.c
++++ b/src/event-factories/calendar-client.c
+@@ -477,7 +477,11 @@ make_isodate_for_day_begin (int day,
+ static time_t
+ get_time_from_property (ICalComponent *ical,
+ ICalPropertyKind prop_kind,
++ #if ICAL_CHECK_VERSION(4, 0, 0)
++ ICalTime * (* get_prop_func) (const ICalProperty *prop),
++ #else
+ ICalTime * (* get_prop_func) (ICalProperty *prop),
++ #endif
+ ICalTimezone *default_zone)
+ {
+ ICalProperty *prop;
+@@ -614,7 +618,11 @@ get_ical_is_all_day (ICalComponent *ical,
+
+ duration = i_cal_property_get_duration (prop);
+
++ #if ICAL_CHECK_VERSION(4, 0, 0)
++ retval = i_cal_duration_as_seconds (duration) % 86400 == 0;
++ #else
+ retval = i_cal_duration_as_int (duration) % 86400 == 0;
++ #endif
+
+ g_object_unref (duration);
+ g_object_unref (prop);
diff --git a/almanah.spec b/almanah.spec
index c382a09..f32b66d 100644
--- a/almanah.spec
+++ b/almanah.spec
@@ -7,6 +7,8 @@ License: GPL-3.0-or-later
URL: https://wiki.gnome.org/Apps/Almanah_Diary
Source0: https://download.gnome.org/sources/almanah/0.12/almanah-%{version}.tar.xz
+Patch: 0001-libical-4.x.patch
+
BuildRequires: appstream
BuildRequires: gcc
BuildRequires: gettext
@@ -18,6 +20,7 @@ BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gcr-4)
BuildRequires: pkgconfig(gtkspell3-3.0)
BuildRequires: pkgconfig(gtksourceview-4)
+BuildRequires: pkgconfig(libical) >= 4.0
BuildRequires: pkgconfig(libecal-2.0) >= 3.62.1-2
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.62.1-2
BuildRequires: pkgconfig(sqlite3)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 9:50 [rpms/almanah] rawhide: Add patch to build with libical 4.x Milan Crha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox