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/syncevolution] rawhide: Rebuild for libical 4.x
Date: Tue, 03 Nov 2026 08:37:11 GMT	[thread overview]
Message-ID: <179369503148.1.15361869195337588641.rpms-syncevolution-75630ce84d9e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/syncevolution
Branch : rawhide
Commit : 75630ce84d9eabbb2eca5d2f3e46bcbc84287281
Author : Milan Crha <mcrha@redhat.com>
Date   : 2026-11-03T09:37:01+01:00
Stats  : +72/-3 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/syncevolution/c/75630ce84d9eabbb2eca5d2f3e46bcbc84287281?branch=rawhide

Log:
Rebuild for libical 4.x

---
diff --git a/008-libical-4x.patch b/008-libical-4x.patch
new file mode 100644
index 0000000..7ec940e
--- /dev/null
+++ b/008-libical-4x.patch
@@ -0,0 +1,63 @@
+From 1936fcc21602faf22149d3dfdb298b1ae270d842 Mon Sep 17 00:00:00 2001
+From: Milan Crha <mcrha@redhat.com>
+Date: Tue, 7 Jul 2026 18:43:58 +0200
+Subject: [PATCH] build: Support libical 4.x
+
+Adapt to API changes in the libical 4.x, still supporting build
+with the 3.x or the 4.x versions.
+---
+ src/backends/activesync/ActiveSyncCalendarSource.cpp | 5 +++++
+ src/backends/evolution/e-cal-check-timezones.c       | 4 ++++
+ src/backends/webdav/CalDAVSource.cpp                 | 5 +++++
+ 3 files changed, 14 insertions(+)
+
+diff --git a/src/backends/activesync/ActiveSyncCalendarSource.cpp b/src/backends/activesync/ActiveSyncCalendarSource.cpp
+index d3222ff6..316138e2 100644
+--- a/src/backends/activesync/ActiveSyncCalendarSource.cpp
++++ b/src/backends/activesync/ActiveSyncCalendarSource.cpp
+@@ -400,6 +400,11 @@ ActiveSyncCalendarSource::EventCache::iterator ActiveSyncCalendarSource::EventCa
+     return end();
+ }
+ 
++#if ICAL_CHECK_VERSION(4, 0, 0)
++#define icalcomponent_new_clone(_c) icalcomponent_clone(_c)
++#define icalparameter_new_clone(_p) icalparameter_clone(_p)
++#endif
++
+ SyncSourceRaw::InsertItemResult ActiveSyncCalendarSource::insertItem(const std::string &luid, const std::string &item)
+ {
+     StringPair ids = splitLUID(luid);
+diff --git a/src/backends/evolution/e-cal-check-timezones.c b/src/backends/evolution/e-cal-check-timezones.c
+index 7661b4f6..7b2eeee8 100644
+--- a/src/backends/evolution/e-cal-check-timezones.c
++++ b/src/backends/evolution/e-cal-check-timezones.c
+@@ -173,6 +173,10 @@ static void patch_tzids(icalcomponent *subcomp,
+     g_free(tzid);
+ }
+ 
++#if ICAL_CHECK_VERSION(4, 0, 0)
++#define icalcomponent_new_clone(_c) icalcomponent_clone(_c)
++#endif
++
+ static void addsystemtz(gpointer key,
+                         gpointer value,
+                         gpointer user_data)
+diff --git a/src/backends/webdav/CalDAVSource.cpp b/src/backends/webdav/CalDAVSource.cpp
+index c9de83a9..8fc0842c 100644
+--- a/src/backends/webdav/CalDAVSource.cpp
++++ b/src/backends/webdav/CalDAVSource.cpp
+@@ -392,6 +392,11 @@ void CalDAVSource::setAllSubItems(const SubRevisionMap_t &revisions)
+     }
+ }
+ 
++#if ICAL_CHECK_VERSION(4, 0, 0)
++#define icalcomponent_new_clone(_c) icalcomponent_clone(_c)
++#define icalparameter_new_clone(_p) icalparameter_clone(_p)
++#endif
++
+ SubSyncSource::SubItemResult CalDAVSource::insertSubItem(const std::string &luid, const std::string &callerSubID,
+                                                          const std::string &item)
+ {
+-- 
+GitLab
+

diff --git a/syncevolution.spec b/syncevolution.spec
index 56a4f58..6b73891 100644
--- a/syncevolution.spec
+++ b/syncevolution.spec
@@ -5,7 +5,7 @@ Summary:       SyncML client for evolution
 Name:          syncevolution
 Epoch:         1
 Version:       2.0.0
-Release:       22%{?dist}
+Release:       23%{?dist}
 License:       LGPL-2.0-or-later
 URL:           http://syncevolution.org/
 Source:        http://downloads.syncevolution.org/%{name}/sources/%{name}-%{version}.tar.gz
@@ -18,6 +18,9 @@ Patch5:        005-gcc-c23-changes.patch
 Patch6:        006-evolution-data-server-3.59.1-api-change.patch
 Patch7:        007-fix-pygments2.20-compat.patch
 
+# https://gitlab.freedesktop.org/SyncEvolution/syncevolution/-/merge_requests/8
+Patch8:        008-libical-4x.patch
+
 BuildRequires: pkgconfig(dbus-glib-1)
 
 %if 0%{with_akonadi}
@@ -32,14 +35,14 @@ BuildRequires: perl-generators
 BuildRequires: bluez-libs-devel
 BuildRequires: boost-devel >= 1.73.0
 BuildRequires: cppunit-devel
-BuildRequires: evolution-data-server-devel >= 3.45.1
+BuildRequires: evolution-data-server-devel >= 3.62.1-2
 BuildRequires: expat-devel
 BuildRequires: glib2-devel
 BuildRequires: gnome-online-accounts-devel
 BuildRequires: gtk3-devel
 BuildRequires: libcurl-devel
 BuildRequires: libgnome-keyring-devel
-BuildRequires: libical-devel >= 2.0.0
+BuildRequires: libical-devel >= 4.0
 BuildRequires: libnotify-devel
 BuildRequires: neon-devel
 BuildRequires: pkgconfig(libpcre2-8)
@@ -223,6 +226,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/sync.desktop
 %{_datadir}/syncevolution/xml/*.pl
 
 %changelog
+* Tue Nov 03 2026 Milan Crha <mcrha@redhat.com> - 1:2.0.0-23
+- Rebuild for libical 4.x
+
 * Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.0.0-22
 - Rebuilt for libxml-2.5.4
 

                 reply	other threads:[~2026-11-03  8:37 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=179369503148.1.15361869195337588641.rpms-syncevolution-75630ce84d9e@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