public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/phosh] rawhide: Fix calendar-server build with libical 4
Date: Fri, 06 Nov 2026 20:30:31 GMT [thread overview]
Message-ID: <179399703122.1.12476320344669855635.rpms-phosh-2137d3edb466@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/phosh
Branch : rawhide
Commit : 2137d3edb4664b6c171b2bb470e5d16351891fb6
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2026-11-05T21:12:22+00:00
Stats : +50/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/phosh/c/2137d3edb4664b6c171b2bb470e5d16351891fb6?branch=rawhide
Log:
Fix calendar-server build with libical 4
libical-glib 4's i_cal_property_get_*() getters take a const
ICalProperty *, so they no longer match the get_time_from_property()
callback type in calendar-server.c. Carry the fix submitted upstream
(https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1991),
which is the same fix as gnome-shell's b34766f39 by Xi Ruoyao.
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/phosh-0.57.0-libical4.patch b/phosh-0.57.0-libical4.patch
new file mode 100644
index 0000000..f134f2d
--- /dev/null
+++ b/phosh-0.57.0-libical4.patch
@@ -0,0 +1,45 @@
+From 9288dd5be0963126ff30b9064dcf9908125fee7b Mon Sep 17 00:00:00 2001
+From: Michel Lind <salimma@fedoraproject.org>
+Date: Wed, 4 Nov 2026 18:31:51 +0000
+Subject: [PATCH] calendar-server: Fix build with libical 4
+
+Newer libical uses a `const` argument for the property getters, so they
+no longer match get_time_from_property()'s callback type:
+
+ error: passing argument 4 of 'get_time_from_property' from incompatible pointer type [-Wincompatible-pointer-types]
+
+Same fix as gnome-shell's calendar server, see b34766f39
+("calendar-server: Fix build failure with libical 4") by Xi Ruoyao.
+
+Closes: https://gitlab.gnome.org/World/Phosh/phosh/-/work_items/1367
+Signed-off-by: Michel Lind <salimma@fedoraproject.org>
+---
+ calendar-server/calendar-server.c | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/calendar-server/calendar-server.c b/calendar-server/calendar-server.c
+index cdb89eef..b4a96f26 100644
+--- a/calendar-server/calendar-server.c
++++ b/calendar-server/calendar-server.c
+@@ -102,11 +102,17 @@ typedef struct
+ char *color;
+ } CalendarAppointment;
+
++#if ICAL_CHECK_VERSION(4, 0, 0)
++typedef ICalTime * (* GetICalPropFunc) (const ICalProperty *prop);
++#else
++typedef ICalTime * (* GetICalPropFunc) (ICalProperty *prop);
++#endif
++
+ static gboolean
+ get_time_from_property (ECalClient *cal,
+ ICalComponent *icomp,
+ ICalPropertyKind prop_kind,
+- ICalTime * (* get_prop_func) (ICalProperty *prop),
++ GetICalPropFunc get_prop_func,
+ ICalTimezone *default_zone,
+ ICalTime **out_itt,
+ ICalTimezone **out_timezone)
+--
+2.56.0
+
diff --git a/phosh.spec b/phosh.spec
index 4b86e61..cb7e8fd 100644
--- a/phosh.spec
+++ b/phosh.spec
@@ -14,6 +14,10 @@ Source1: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/%{gvc
# Similar situation as gvc
Source2: https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/%{libcall_ui_version}/libcall-ui-%{libcall_ui_version}.tar.gz
Source3: phosh
+# calendar-server: build with libical 4 (const property getters);
+# same fix as gnome-shell b34766f3 by Xi Ruoyao
+# https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1991
+Patch: phosh-0.57.0-libical4.patch
ExcludeArch: %{ix86}
# https://bugzilla.redhat.com/show_bug.cgi?id=2426735
@@ -121,6 +125,7 @@ Development headers for libphosh.
mv libgnome-volume-control-%{gvc_commit} subprojects/gvc
mv libcall-ui-%{libcall_ui_version} subprojects/libcall-ui
+%autopatch -p1
%build
%meson -Dphoc_tests=disabled -Dbindings-lib=true -Dsearchd=true
reply other threads:[~2026-11-06 20:30 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=179399703122.1.12476320344669855635.rpms-phosh-2137d3edb466@fedoraproject.org \
--to=salimma@fedoraproject.org \
--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