diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2018-08-17 21:32:59 +0200 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2018-08-17 21:32:59 +0200 |
commit | b7aa42264e868c7f52b3f3b15b20e497c2a170dd (patch) | |
tree | 3be7a713d7fbf87b89c35d5f2828b66ce02a2123 /app-admin/conky | |
parent | net-wireless/bladerf-firmware: drop old (diff) | |
download | gentoo-b7aa42264e868c7f52b3f3b15b20e497c2a170dd.tar.gz gentoo-b7aa42264e868c7f52b3f3b15b20e497c2a170dd.tar.bz2 gentoo-b7aa42264e868c7f52b3f3b15b20e497c2a170dd.zip |
app-admin/conky: Fix bug #663886.
Add missing patch. Thanks to Toralf Förster for the report.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-admin/conky')
-rw-r--r-- | app-admin/conky/files/conky-1.10.8-libical-3.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.10.8-libical-3.patch b/app-admin/conky/files/conky-1.10.8-libical-3.patch new file mode 100644 index 000000000000..032a6d2ef263 --- /dev/null +++ b/app-admin/conky/files/conky-1.10.8-libical-3.patch @@ -0,0 +1,32 @@ +From 128c8cce3415839a3d19a5cb877fd77af2538d35 Mon Sep 17 00:00:00 2001 +From: Adam Majer <amajer@suse.de> +Date: Tue, 6 Mar 2018 13:46:31 +0100 +Subject: [PATCH] Add support for libical 3.x (#465) + +In libical3, deprecated icaltime_from_timet is removed +Use icaltime_from_timet_with_zone instead. This function +exists in libical 2.x so no need to change requirements +--- + src/ical.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/ical.cc b/src/ical.cc +index e4b48511..ef069124 100644 +--- a/src/ical.cc ++++ b/src/ical.cc +@@ -49,13 +49,13 @@ struct ical_event *add_event(struct ical_event *listend, icalcomponent *new_ev) + icaltimetype start; + + start = icalcomponent_get_dtstart(new_ev); +- if(icaltime_compare(start, icaltime_from_timet(time(NULL), 0)) <= 0) { ++ if(icaltime_compare(start, icaltime_from_timet_with_zone(time(NULL), 0, NULL)) <= 0) { + icalproperty *rrule = icalcomponent_get_first_property(new_ev, ICAL_RRULE_PROPERTY); + if(rrule) { + icalrecur_iterator* ritr = icalrecur_iterator_new(icalproperty_get_rrule(rrule), start); + icaltimetype nexttime = icalrecur_iterator_next(ritr); + while (!icaltime_is_null_time(nexttime)) { +- if(icaltime_compare(nexttime, icaltime_from_timet(time(NULL), 0)) > 0) { ++ if(icaltime_compare(nexttime, icaltime_from_timet_with_zone(time(NULL), 0, NULL)) > 0) { + start = nexttime; + break; + } |