2020-01-23 21:37:34 +00:00
|
|
|
Prevent test failure and possible data loss due to API change in libical 3.0.7.
|
|
|
|
|
|
|
|
https://gitlab.gnome.org/GNOME/evolution-data-server/issues/185
|
|
|
|
https://lists.infradead.org/pipermail/libical-devel/2020-January/000907.html
|
|
|
|
|
|
|
|
Adapted from upstream:
|
|
|
|
|
|
|
|
https://gitlab.gnome.org/GNOME/evolution-data-server/commit/77384ab552c19bf374dbeda53dc37f98d07bd4ec
|
|
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2019-12-17 16:01:23 +00:00
|
|
|
index e16b8b225..b3c881967 100644
|
2020-01-23 21:37:34 +00:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2019-12-17 16:01:23 +00:00
|
|
|
@@ -111,7 +111,7 @@ add_definitions(-DSOUP_VERSION_MIN_REQUIRED=${soup_encoded_version})
|
2020-01-23 21:37:34 +00:00
|
|
|
|
|
|
|
set(gcr_minimum_version 3.4)
|
|
|
|
set(libgdata_minimum_version 0.15.1)
|
2019-12-17 16:01:23 +00:00
|
|
|
-set(libical_glib_minimum_version 3.0.5)
|
|
|
|
+set(libical_glib_minimum_version 3.0.7)
|
2020-01-23 21:37:34 +00:00
|
|
|
set(libsecret_minimum_version 0.5)
|
|
|
|
set(libxml_minimum_version 2.0.0)
|
|
|
|
set(sqlite_minimum_version 3.7.17)
|
|
|
|
diff --git a/src/calendar/libedata-cal/e-cal-meta-backend.c b/src/calendar/libedata-cal/e-cal-meta-backend.c
|
2019-12-17 16:01:23 +00:00
|
|
|
index 7501f2a43..93f4806ba 100644
|
2020-01-23 21:37:34 +00:00
|
|
|
--- a/src/calendar/libedata-cal/e-cal-meta-backend.c
|
|
|
|
+++ b/src/calendar/libedata-cal/e-cal-meta-backend.c
|
2019-12-17 16:01:23 +00:00
|
|
|
@@ -4067,8 +4067,7 @@ e_cal_meta_backend_inline_local_attachments_sync (ECalMetaBackend *meta_backend,
|
2020-01-23 21:37:34 +00:00
|
|
|
gchar *base64;
|
|
|
|
|
|
|
|
base64 = g_base64_encode ((const guchar *) content, len);
|
2019-12-17 16:01:23 +00:00
|
|
|
- new_attach = i_cal_attach_new_from_data (base64, NULL, NULL);
|
|
|
|
+ new_attach = i_cal_attach_new_from_data (base64, (GFunc) g_free, NULL);
|
2020-01-23 21:37:34 +00:00
|
|
|
g_free (content);
|
|
|
|
- g_free (base64);
|
|
|
|
|
|
|
|
ecmb_remove_all_but_filename_parameter (prop);
|