diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /gnome-extra/evolution-data-server/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'gnome-extra/evolution-data-server/files')
3 files changed, 285 insertions, 0 deletions
diff --git a/gnome-extra/evolution-data-server/files/3.24.7-DESTDIR-honoring.patch b/gnome-extra/evolution-data-server/files/3.24.7-DESTDIR-honoring.patch new file mode 100644 index 000000000000..a3a3d470b984 --- /dev/null +++ b/gnome-extra/evolution-data-server/files/3.24.7-DESTDIR-honoring.patch @@ -0,0 +1,31 @@ +From 5406fcda088be73f462e7d02d4a2ae56cc7329cc Mon Sep 17 00:00:00 2001 +From: Milan Crha <mcrha@redhat.com> +Date: Mon, 2 Oct 2017 19:20:36 +0200 +Subject: Bug 781645 - Skip GSettings schema compile when DESTDIR is set + +--- + cmake/modules/GLibTools.cmake | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/cmake/modules/GLibTools.cmake b/cmake/modules/GLibTools.cmake +index fc8eb82..f0be558 100644 +--- a/cmake/modules/GLibTools.cmake ++++ b/cmake/modules/GLibTools.cmake +@@ -238,9 +238,11 @@ macro(add_gsettings_schemas _target _schema0) + if(_install_code) + # Compile gsettings schemas and ensure that all of them are in the place. + install(CODE +- "execute_process(${_install_code} +- COMMAND ${CMAKE_COMMAND} -E chdir . \"${GLIB_COMPILE_SCHEMAS}\" \"${GSETTINGS_SCHEMAS_DIR}\" +- )") ++ "if(\"\$ENV{DESTDIR}\" STREQUAL \"\") ++ execute_process(${_install_code} ++ COMMAND ${CMAKE_COMMAND} -E chdir . \"${GLIB_COMPILE_SCHEMAS}\" \"${GSETTINGS_SCHEMAS_DIR}\" ++ ) ++ endif(\"\$ENV{DESTDIR}\" STREQUAL \"\")") + endif(_install_code) + endmacro(add_gsettings_schemas) + +-- +cgit v0.12 + diff --git a/gnome-extra/evolution-data-server/files/3.24.7-libical3-compat.patch b/gnome-extra/evolution-data-server/files/3.24.7-libical3-compat.patch new file mode 100644 index 000000000000..8f574b0f8d9c --- /dev/null +++ b/gnome-extra/evolution-data-server/files/3.24.7-libical3-compat.patch @@ -0,0 +1,146 @@ +From dc5fc0e163421f5a01c3cdaab23ca2ea1eb3fae2 Mon Sep 17 00:00:00 2001 +From: Milan Crha <mcrha@redhat.com> +Date: Wed, 4 Oct 2017 11:48:48 +0200 +Subject: [PATCH 1/2] Use icaltime_is_utc() instead of icaltimetype::is_utc + +The structure member is going to be removed from libical in the next release +and the function is available for a long time, thus it's safe to replace +the usage in the code. + +(cherry picked from commit f607f8628a28440374579531bc78848dfe0c782e) +--- + src/calendar/backends/contacts/e-cal-backend-contacts.c | 1 - + src/calendar/libecal/e-cal-component.c | 8 ++++---- + src/calendar/libecal/e-cal-recur.c | 8 ++++---- + src/calendar/libecal/e-cal-time-util.c | 3 +-- + 4 files changed, 9 insertions(+), 11 deletions(-) + +diff --git a/src/calendar/backends/contacts/e-cal-backend-contacts.c b/src/calendar/backends/contacts/e-cal-backend-contacts.c +index d2b570885..cf2c62062 100644 +--- a/src/calendar/backends/contacts/e-cal-backend-contacts.c ++++ b/src/calendar/backends/contacts/e-cal-backend-contacts.c +@@ -699,7 +699,6 @@ cdate_to_icaltime (EContactDate *cdate) + ret.month = cdate->month; + ret.day = cdate->day; + ret.is_date = TRUE; +- ret.is_utc = FALSE; + ret.zone = NULL; + ret.is_daylight = FALSE; + +diff --git a/src/calendar/libecal/e-cal-component.c b/src/calendar/libecal/e-cal-component.c +index 65b530d1e..6d8a9814d 100644 +--- a/src/calendar/libecal/e-cal-component.c ++++ b/src/calendar/libecal/e-cal-component.c +@@ -2522,7 +2522,7 @@ get_datetime (struct datetime *datetime, + * This makes the timezone code simpler. */ + if (datetime->tzid_param) + dt->tzid = g_strdup (icalparameter_get_tzid (datetime->tzid_param)); +- else if (dt->value && dt->value->is_utc) ++ else if (dt->value && icaltime_is_utc (*dt->value)) + dt->tzid = g_strdup ("UTC"); + else + dt->tzid = NULL; +@@ -2559,9 +2559,9 @@ set_datetime (ECalComponent *comp, + + /* If the TZID is set to "UTC", we set the is_utc flag. */ + if (dt->tzid && !strcmp (dt->tzid, "UTC")) +- dt->value->is_utc = 1; +- else +- dt->value->is_utc = 0; ++ dt->value->zone = icaltimezone_get_utc_timezone (); ++ else if (dt->value->zone == icaltimezone_get_utc_timezone ()) ++ dt->value->zone = NULL; + + if (datetime->prop) { + /* make sure no VALUE property is left if not needed */ +diff --git a/src/calendar/libecal/e-cal-recur.c b/src/calendar/libecal/e-cal-recur.c +index 535d56c14..cad588c4d 100644 +--- a/src/calendar/libecal/e-cal-recur.c ++++ b/src/calendar/libecal/e-cal-recur.c +@@ -195,7 +195,7 @@ ensure_timezone (icalcomponent *comp, + a different icalcomponent and cause use-after-free. */ + tt->zone = NULL; + +- if (tt->is_utc) ++ if (icaltime_is_utc (*tt)) + return TRUE; + + tt->zone = default_timezone; +@@ -435,7 +435,7 @@ e_cal_recur_generate_instances_sync (icalcomponent *comp, + rrule.until.minute = 0; + rrule.until.second = 0; + +- if (!rrule.until.zone && !rrule.until.is_utc) ++ if (!rrule.until.zone && !icaltime_is_utc (rrule.until)) + rrule.until.zone = dtstart.zone; + } + +@@ -542,7 +542,7 @@ e_cal_recur_generate_instances_sync (icalcomponent *comp, + exrule.until.minute = 0; + exrule.until.second = 0; + +- if (!exrule.until.zone && !exrule.until.is_utc) ++ if (!exrule.until.zone && !icaltime_is_utc (exrule.until)) + exrule.until.zone = dtstart.zone; + } + +@@ -586,7 +586,7 @@ e_cal_recur_generate_instances_sync (icalcomponent *comp, + if (!success) + break; + +- if (!exdate.zone && !exdate.is_utc) ++ if (!exdate.zone && !icaltime_is_utc (exdate)) + exdate.zone = dtstart.zone; + + if (intersects_interval (&exdate, NULL, duration_days, duration_seconds, &interval_start, &interval_end)) { +diff --git a/src/calendar/libecal/e-cal-time-util.c b/src/calendar/libecal/e-cal-time-util.c +index 7bcbc8ba1..914761cb0 100644 +--- a/src/calendar/libecal/e-cal-time-util.c ++++ b/src/calendar/libecal/e-cal-time-util.c +@@ -763,9 +763,8 @@ tm_to_icaltimetype (struct tm *tm, + + itt.day = tm->tm_mday; + itt.month = tm->tm_mon + 1; +- itt.year = tm->tm_year+ 1900; ++ itt.year = tm->tm_year + 1900; + +- itt.is_utc = 0; + itt.is_date = is_date; + + return itt; +-- +2.15.1 + + +From fccd77cf4620ca76c4fd2bf7721e3fb7eaf55ec6 Mon Sep 17 00:00:00 2001 +From: Milan Crha <mcrha@redhat.com> +Date: Thu, 5 Oct 2017 13:50:08 +0200 +Subject: [PATCH 2/2] e-cal-recur.c:ensure_timezone(): Unset icaltimetype::zone + only if not UTC + +With a removal of icaltimetype::is_utc the icaltimetype::zone is used +to determine whether it's UTC or not. That means that the icaltimetype::zone +can be unset only if it's not the built-in UTC time zone. + +(cherry picked from commit 1f39ade8db00091d6fa4c752ccb70361ef0e8abc) +--- + src/calendar/libecal/e-cal-recur.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/calendar/libecal/e-cal-recur.c b/src/calendar/libecal/e-cal-recur.c +index cad588c4d..fc14fb15c 100644 +--- a/src/calendar/libecal/e-cal-recur.c ++++ b/src/calendar/libecal/e-cal-recur.c +@@ -193,7 +193,8 @@ ensure_timezone (icalcomponent *comp, + + /* Do not trust the 'zone' set on the structure, as it can come from + a different icalcomponent and cause use-after-free. */ +- tt->zone = NULL; ++ if (tt->zone != icaltimezone_get_utc_timezone ()) ++ tt->zone = NULL; + + if (icaltime_is_utc (*tt)) + return TRUE; +-- +2.15.1 + diff --git a/gnome-extra/evolution-data-server/files/calentry.schema b/gnome-extra/evolution-data-server/files/calentry.schema new file mode 100644 index 000000000000..bc79da273cc2 --- /dev/null +++ b/gnome-extra/evolution-data-server/files/calentry.schema @@ -0,0 +1,108 @@ +# RFC2739 calEntry schema for OpenLDAP 2.x + +# +# From https://bugs.gentoo.org/show_bug.cgi?id=83988 +# Please notify us of updated revisions by submitting a bug report at bugs.gentoo.org +# + +# Version of RFC 2739 schema translated by Terrelle Shaw +# (xytek@xytek.org) # Nov. 7, 2002 # Modifications by Peter Marschall +# <peter.marschall@adpm.de> # Nov. 9, 2002 + +# Notes: +# * RFC2739 seems to be a bit sloppy about attribute type and +# objectclass definitions syntax and also about attribute syntax +# and matching rules. +# (It even counts the attributes in the calEntry objectclass wrong ;-) +# * The following changes have been applied to correct the schema +# - added description to each attributetype definition +# - changed SYNTAX from 'IA5String' to corresponding OID +# to make matching rules and syntax consistent +# - replaced illegal keyword SUBSTRING by SUBSTR +# - changed SUBSTR from caseIgnoreIA5Match to caseIgnoreIA5SubstringsMatch +# - removed illegal keyword MULTI-VALUE +# - added keyword SINGLE-VALUE where appropriate +# - removed USAGE since cwuserApplications is the default +# - added description to the objectclass defintion +# - corrected typo in objectclass definition +# - added the attributetypes defined but not used to the objectclass + + +# 2.4.4.1 calCalURI +attributetype ( 1.2.840.113556.1.4.478 + NAME 'calCalURI' + DESC 'URI to a snapshot of the users entire default calendar' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# 2.4.4.2 calFBURL +attributetype ( 1.2.840.113556.1.4.479 + NAME 'calFBURL' + DESC 'URI to the users default free/busy time data' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# 2.4.4.3 calCAPURI +attributetype ( 1.2.840.113556.1.4.480 + NAME 'calCAPURI' + DESC 'URI used to communicate with the users calendar' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# 2.4.4.4 calCalAdrURI +attributetype ( 1.2.840.113556.1.4.481 + NAME 'calCalAdrURI' + DESC 'URI to which event requests should be sent for the user' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE ) + +# 2.4.4.5 calOtherCalURIs +attributetype ( 1.2.840.113556.1.4.482 + NAME 'calOtherCalURIs' + DESC 'URIs to snapshots of non-default calendars belonging to the user' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) + +# 2.4.4.6 calOtherFBURLs +attributetype ( 1.2.840.113556.1.4.483 + NAME 'calOtherFBURLs' + DESC 'URIs to non-default free/busy data belonging to the user' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) + +# 2.4.4.7 calOtherCAPURIs +attributetype ( 1.2.840.113556.1.4.484 + NAME 'calOtherCAPURIs' + DESC 'URIs to non-default calendars belonging to the user' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) + +# 2.4.4.8 calOtherCalAdrURIs +attributetype ( 1.2.840.113556.1.4.485 + NAME 'calOtherCalAdrURIs' + DESC 'URIs of destinations for event requests to non-default calendars' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) + +# 2.4.3.1 calEntry +objectclass ( 1.2.840.113556.1.5.87 + NAME 'calEntry' + DESC 'Calendering and free/busy information' + SUP top AUXILIARY + MAY ( calCalURI $ calFBURL $ calCAPURI $ calCalAdrURI $ + calOtherCAPURIs $ calOtherCalURIs $ calOtherFBURLs $ + calOtherCalAdrURIs ) ) + +# EOF |