public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Crha <mcrha@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/almanah] rawhide: Add patch to build with libical 4.x
Date: Tue, 03 Nov 2026 09:50:12 GMT [thread overview]
Message-ID: <179369941214.1.9976715969384409883.rpms-almanah-057c6a9a99df@fedoraproject.org> (raw)
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)
reply other threads:[~2026-11-03 9:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179369941214.1.9976715969384409883.rpms-almanah-057c6a9a99df@fedoraproject.org \
--to=mcrha@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox