public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/osmo] rawhide: Fix build with libical 4
@ 2026-11-05 21:38 Milan Crha
0 siblings, 0 replies; only message in thread
From: Milan Crha @ 2026-11-05 21:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/osmo
Branch : rawhide
Commit : 832eae5c368c3dac991d547096c62ebf55947a7a
Author : Milan Crha <mcrha@redhat.com>
Date : 2026-11-04T11:57:15+00:00
Stats : +52/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/osmo/c/832eae5c368c3dac991d547096c62ebf55947a7a?branch=rawhide
Log:
Fix build with libical 4
libical 4 renamed set_zone_directory() to
icaltimezone_set_zone_directory(), and its libical.pc no longer pulls
in libicalss, which osmo needs for icalset/icalfileset. The patch,
from Milan's libical-4.x COPR, guards the rename with
ICAL_CHECK_VERSION(4, 0, 0) and links libicalss explicitly when
libical >= 4.0, so osmo still builds with libical 3.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/0001-libical4.patch b/0001-libical4.patch
new file mode 100644
index 0000000..e63661c
--- /dev/null
+++ b/0001-libical4.patch
@@ -0,0 +1,44 @@
+diff --git a/configure.ac b/configure.ac
+index 0835cc7..501a1fe 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -91,6 +91,8 @@ PKG_CHECK_MODULES(LIBICAL, libical >= 1.0, have_libical=true,
+ if test "x$have_libical" = "xtrue"; then
+ AC_DEFINE([HAVE_LIBICAL], [1], [Definded to 1 if compile with libical support])
+ libical="yes"
++ PKG_CHECK_MODULES(LIBICALSS, libicalss >= 4.0, have_libicalss=true,
++ have_libicalss=false)
+ else
+ libical="no"
+ fi
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 1b679e8..21b8242 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -66,8 +66,8 @@ LIBS += @LIBWEBKIT_LIBS@
+ endif
+
+ if HAVE_LIBICAL
+-AM_CFLAGS += @LIBICAL_CFLAGS@
+-LIBS += @LIBICAL_LIBS@
++AM_CFLAGS += @LIBICAL_CFLAGS@ @LIBICALSS_CFLAGS@
++LIBS += @LIBICAL_LIBS@ @LIBICALSS_LIBS@
+ endif
+
+ if HAVE_GSPELL
+diff --git a/src/calendar_ical.c b/src/calendar_ical.c
+index 14eacfb..f7b8ce5 100644
+--- a/src/calendar_ical.c
++++ b/src/calendar_ical.c
+@@ -56,7 +56,11 @@ gint i;
+
+ for (i = 0; i < N_SEARCH_PATHS; i++) {
+ if (!g_access (tz_search_paths[i], F_OK | R_OK)) {
++ #if ICAL_CHECK_VERSION (4, 0, 0)
++ icaltimezone_set_zone_directory (tz_search_paths[i]);
++ #else
+ set_zone_directory (tz_search_paths[i]);
++ #endif
+ break;
+ }
+ }
diff --git a/osmo.spec b/osmo.spec
index 9bd2153..7061c5c 100644
--- a/osmo.spec
+++ b/osmo.spec
@@ -3,13 +3,17 @@ Summary(pl): Osobisty organizer
Summary(de): Persönlicher Organizer
Name: osmo
Version: 0.4.4
-Release: 7%{?dist}
+Release: 8%{?dist}
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://osmo-pim.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}-pim/%{name}-%{version}.tar.gz
Patch0: 0000-incompatible-pointer-types.patch
+# Build with libical 4: renamed set_zone_directory(), and link libicalss
+# explicitly (libical 4's libical.pc no longer pulls it in).
+# From Milan Crha's libical-4.x COPR
+Patch1: 0001-libical4.patch
BuildRequires: desktop-file-utils
BuildRequires: gettext-devel
@@ -130,6 +134,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/sounds/osmo/alarm.wav
%changelog
+* Wed Nov 04 2026 Michel Lind <salimma@fedoraproject.org> - 0.4.4-8
+- Fix build with libical 4 (patch by Milan Crha)
+
* Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.4-7
- Rebuilt for libxml-2.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 21:38 [rpms/osmo] rawhide: Fix build with libical 4 Milan Crha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox