Gentoo Archives: gentoo-commits

From: Daniel Pielmeier <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/conky/files/
Date: Fri, 17 Aug 2018 19:33:24
Message-Id: 1534534379.b7aa42264e868c7f52b3f3b15b20e497c2a170dd.billie@gentoo
1 commit: b7aa42264e868c7f52b3f3b15b20e497c2a170dd
2 Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 17 19:32:59 2018 +0000
4 Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 17 19:32:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7aa4226
7
8 app-admin/conky: Fix bug #663886.
9
10 Add missing patch. Thanks to Toralf Förster for the report.
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 app-admin/conky/files/conky-1.10.8-libical-3.patch | 32 ++++++++++++++++++++++
15 1 file changed, 32 insertions(+)
16
17 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
18 new file mode 100644
19 index 00000000000..032a6d2ef26
20 --- /dev/null
21 +++ b/app-admin/conky/files/conky-1.10.8-libical-3.patch
22 @@ -0,0 +1,32 @@
23 +From 128c8cce3415839a3d19a5cb877fd77af2538d35 Mon Sep 17 00:00:00 2001
24 +From: Adam Majer <amajer@××××.de>
25 +Date: Tue, 6 Mar 2018 13:46:31 +0100
26 +Subject: [PATCH] Add support for libical 3.x (#465)
27 +
28 +In libical3, deprecated icaltime_from_timet is removed
29 +Use icaltime_from_timet_with_zone instead. This function
30 +exists in libical 2.x so no need to change requirements
31 +---
32 + src/ical.cc | 4 ++--
33 + 1 file changed, 2 insertions(+), 2 deletions(-)
34 +
35 +diff --git a/src/ical.cc b/src/ical.cc
36 +index e4b48511..ef069124 100644
37 +--- a/src/ical.cc
38 ++++ b/src/ical.cc
39 +@@ -49,13 +49,13 @@ struct ical_event *add_event(struct ical_event *listend, icalcomponent *new_ev)
40 + icaltimetype start;
41 +
42 + start = icalcomponent_get_dtstart(new_ev);
43 +- if(icaltime_compare(start, icaltime_from_timet(time(NULL), 0)) <= 0) {
44 ++ if(icaltime_compare(start, icaltime_from_timet_with_zone(time(NULL), 0, NULL)) <= 0) {
45 + icalproperty *rrule = icalcomponent_get_first_property(new_ev, ICAL_RRULE_PROPERTY);
46 + if(rrule) {
47 + icalrecur_iterator* ritr = icalrecur_iterator_new(icalproperty_get_rrule(rrule), start);
48 + icaltimetype nexttime = icalrecur_iterator_next(ritr);
49 + while (!icaltime_is_null_time(nexttime)) {
50 +- if(icaltime_compare(nexttime, icaltime_from_timet(time(NULL), 0)) > 0) {
51 ++ if(icaltime_compare(nexttime, icaltime_from_timet_with_zone(time(NULL), 0, NULL)) > 0) {
52 + start = nexttime;
53 + break;
54 + }