[packages/orage] - fix building with libical 3.0 - rel 3
baggins
baggins at pld-linux.org
Sun Oct 20 19:36:47 CEST 2019
commit a02cf11e1d72b3cff76596d84232482c9e2f6268
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 20 19:35:23 2019 +0200
- fix building with libical 3.0
- rel 3
libical3.patch | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
orage.spec | 4 +++-
2 files changed, 62 insertions(+), 1 deletion(-)
---
diff --git a/orage.spec b/orage.spec
index 201ab0e..c0763f1 100644
--- a/orage.spec
+++ b/orage.spec
@@ -3,11 +3,12 @@ Summary: Calendar for Xfce
Summary(pl.UTF-8): Kalendarz dla Xfce
Name: orage
Version: 4.12.1
-Release: 2
+Release: 3
License: GPL v2+
Group: X11/Applications
Source0: http://archive.xfce.org/src/apps/orage/4.12/%{name}-%{version}.tar.bz2
# Source0-md5: 2b7f5d38cb5c6edbcc65d0f52a742e46
+Patch0: libical3.patch
URL: http://www.xfce.org/projects/orage
BuildRequires: dbus-glib-devel
BuildRequires: gettext-tools
@@ -40,6 +41,7 @@ zarządzania starymi spotkaniami.
%prep
%setup -q
+%patch0 -p1
%build
%configure \
diff --git a/libical3.patch b/libical3.patch
new file mode 100644
index 0000000..af962b3
--- /dev/null
+++ b/libical3.patch
@@ -0,0 +1,59 @@
+diff -up orage-4.12.1/src/ical-code.c.libical-3.0 orage-4.12.1/src/ical-code.c
+--- orage-4.12.1/src/ical-code.c.libical-3.0 2017-11-14 08:41:30.917375493 +0100
++++ orage-4.12.1/src/ical-code.c 2017-11-14 08:41:56.823375135 +0100
+@@ -129,7 +129,6 @@ static struct icaltimetype ical_get_curr
+ && (strcmp(g_par.local_timezone, "floating") != 0))
+ ctime = icaltime_current_time_with_zone(local_icaltimezone);
+ else { / * use floating time * /
+- ctime.is_utc = 0;
+ ctime.is_date = 0;
+ ctime.is_daylight = 0;
+ ctime.zone = NULL;
+@@ -2579,7 +2578,6 @@ static struct icaltimetype count_first_a
+ * when counting alarm time. */
+ if (rel == ICAL_RELATED_START) {
+ per.stime.is_date = 0;
+- per.stime.is_utc = 1;
+ per.stime.is_daylight = 0;
+ per.stime.zone = utc_icaltimezone;
+ per.stime.hour = 0;
+@@ -2588,7 +2586,6 @@ static struct icaltimetype count_first_a
+ }
+ else {
+ per.etime.is_date = 0;
+- per.etime.is_utc = 1;
+ per.etime.is_daylight = 0;
+ per.etime.zone = utc_icaltimezone;
+ per.etime.hour = 0;
+@@ -2613,7 +2610,6 @@ static struct icaltimetype count_next_al
+ /* HACK: convert to UTC time so that we can use time arithmetic
+ * when counting alarm time. */
+ start_time.is_date = 0;
+- start_time.is_utc = 1;
+ start_time.is_daylight = 0;
+ start_time.zone = utc_icaltimezone;
+ start_time.hour = 0;
+@@ -2768,7 +2764,6 @@ static alarm_struct *process_alarm_trigg
+ */
+ if (icaltime_is_date(per.stime)) {
+ if (local_icaltimezone != utc_icaltimezone) {
+- next_alarm_time.is_utc = 0;
+ next_alarm_time.is_daylight = 0;
+ next_alarm_time.zone = local_icaltimezone;
+ }
+@@ -2850,7 +2845,6 @@ orage_message(120, P_N "Alarm rec loop n
+ */
+ if (icaltime_is_date(per.stime)) {
+ if (local_icaltimezone != utc_icaltimezone) {
+- next_alarm_time.is_utc = 0;
+ next_alarm_time.is_daylight = 0;
+ next_alarm_time.zone = local_icaltimezone;
+ }
+@@ -2944,7 +2938,6 @@ orage_message(120, P_N "*****After loop
+ */
+ if (icaltime_is_date(per.stime)) {
+ if (local_icaltimezone != utc_icaltimezone) {
+- next_alarm_time.is_utc = 0;
+ next_alarm_time.is_daylight = 0;
+ next_alarm_time.zone = local_icaltimezone;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/orage.git/commitdiff/a02cf11e1d72b3cff76596d84232482c9e2f6268
More information about the pld-cvs-commit
mailing list