public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/phosh] rawhide: Fix calendar-server build with libical 4
@ 2026-11-06 20:30 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-06 20:30 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-06 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 20:30 [rpms/phosh] rawhide: Fix calendar-server build with libical 4 Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox