Hello community,

here is the log from the commit of package kdepimlibs4 for openSUSE:Factory 
checked in at 2018-03-07 10:32:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdepimlibs4 (Old)
 and      /work/SRC/openSUSE:Factory/.kdepimlibs4.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdepimlibs4"

Wed Mar  7 10:32:28 2018 rev:205 rq:583276 version:4.14.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/kdepimlibs4/kdepimlibs4.changes  2017-12-08 
12:49:28.866818830 +0100
+++ /work/SRC/openSUSE:Factory/.kdepimlibs4.new/kdepimlibs4.changes     
2018-03-07 10:32:32.703093986 +0100
@@ -1,0 +2,6 @@
+Tue Mar  6 08:37:20 UTC 2018 - fab...@ritter-vogt.de
+
+- Add patch to fix build with libical >= 3.0:
+  * libical-3.patch
+
+-------------------------------------------------------------------

New:
----
  libical-3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdepimlibs4.spec ++++++
--- /var/tmp/diff_new_pack.r1yjO7/_old  2018-03-07 10:32:34.391033101 +0100
+++ /var/tmp/diff_new_pack.r1yjO7/_new  2018-03-07 10:32:34.395032957 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdepimlibs4
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,9 @@
 Url:            http://www.kde.org
 Source:         kdepimlibs-%{version}.tar.xz
 Source1:        baselibs.conf
+# PATCH-FIX-OPENSUSE
 Patch1:         disable-pth-build.diff
+Patch2:         libical-3.patch
 %if 0%{?suse_version} > 1325
 BuildRequires:  libboost_graph-devel
 %else
@@ -62,6 +64,7 @@
 %prep
 %setup -q -n kdepimlibs-%{version}
 %patch1
+%patch2 -p1
 
 %build
   %cmake_kde4 -d build

++++++ libical-3.patch ++++++
From: Fabian Vogt <fab...@ritter-vogt.de>
Subject: Support building with libical >= 3.0

Index: kdepimlibs-4.14.10/kcal/icaltimezones.cpp
===================================================================
--- kdepimlibs-4.14.10.orig/kcal/icaltimezones.cpp
+++ kdepimlibs-4.14.10/kcal/icaltimezones.cpp
@@ -50,7 +50,7 @@ static QDateTime toQDateTime( const ical
 {
   return QDateTime( QDate( t.year, t.month, t.day ),
                     QTime( t.hour, t.minute, t.second ),
-                    ( t.is_utc ? Qt::UTC : Qt::LocalTime ) );
+                    ( icaltime_is_utc(t) ? Qt::UTC : Qt::LocalTime ) );
 }
 
 // Maximum date for time zone data.
@@ -76,8 +76,7 @@ static icaltimetype writeLocalICalDateTi
   t.minute = local.time().minute();
   t.second = local.time().second();
   t.is_date = 0;
-  t.zone = 0;
-  t.is_utc = 0;
+  t.zone = NULL;
   return t;
 }
 
@@ -787,7 +786,7 @@ ICalTimeZone ICalTimeZoneSource::parse(
     case ICAL_LASTMODIFIED_PROPERTY:
     {
       icaltimetype t = icalproperty_get_lastmodified(p);
-      if ( t.is_utc ) {
+      if ( icaltime_is_utc(t) ) {
         data->d->lastModified = toQDateTime( t );
       } else {
         kDebug() << "LAST-MODIFIED not UTC";
@@ -972,7 +971,7 @@ QList<QDateTime> ICalTimeZoneSourcePriva
   // Convert DTSTART to QDateTime, and from local time to UTC
   QDateTime localStart = toQDateTime( dtstart );   // local time
   dtstart.second -= prevOffset;
-  dtstart.is_utc = 1;
+  dtstart.zone = icaltimezone_get_utc_timezone();
   QDateTime utcStart = toQDateTime( icaltime_normalize( dtstart ) );   // UTC
 
   transitions += utcStart;
@@ -999,13 +998,13 @@ QList<QDateTime> ICalTimeZoneSourcePriva
           t.minute = dtstart.minute;
           t.second = dtstart.second;
           t.is_date = 0;
-          t.is_utc = 0;    // dtstart is in local time
+          t.zone = NULL;    // dtstart is in local time
         }
         // RFC2445 states that RDATE must be in local time,
         // but we support UTC as well to be safe.
-        if ( !t.is_utc ) {
+        if ( !icaltime_is_utc(t) ) {
           t.second -= prevOffset;    // convert to UTC
-          t.is_utc = 1;
+          t.zone = icaltimezone_get_utc_timezone();
           t = icaltime_normalize( t );
         }
         transitions += toQDateTime( t );
Index: kdepimlibs-4.14.10/kcalcore/icalformat_p.cpp
===================================================================
--- kdepimlibs-4.14.10.orig/kcalcore/icalformat_p.cpp
+++ kdepimlibs-4.14.10/kcalcore/icalformat_p.cpp
@@ -2301,8 +2301,7 @@ icaltimetype ICalFormatImpl::writeICalDa
     t.second = 0;
 
     t.is_date = 1;
-    t.is_utc = 0;
-    t.zone = 0;
+    t.zone = NULL;
 
     return t;
 }
@@ -2322,8 +2321,7 @@ icaltimetype ICalFormatImpl::writeICalDa
         t.minute = datetime.time().minute();
         t.second = datetime.time().second();
     }
-    t.zone = 0;   // zone is NOT set
-    t.is_utc = datetime.isUtc() ? 1 : 0;
+    t.zone = datetime.isUtc() ? icaltimezone_get_utc_timezone() : NULL;
 
     // _dumpIcaltime( t );
 
@@ -2398,7 +2396,7 @@ icalproperty *ICalFormatImpl::writeICalD
     }
 
     KTimeZone ktz;
-    if (!t.is_utc) {
+    if (!icaltime_is_utc(t)) {
         ktz = dt.timeZone();
     }
 
@@ -2431,7 +2429,7 @@ KDateTime ICalFormatImpl::readICalDateTi
 //  _dumpIcaltime( t );
 
     KDateTime::Spec timeSpec;
-    if (t.is_utc  ||  t.zone == icaltimezone_get_utc_timezone()) {
+    if (icaltime_is_utc(t)) {
         timeSpec = KDateTime::UTC;   // the time zone is UTC
         utc = false;    // no need to convert to UTC
     } else {
Index: kdepimlibs-4.14.10/kcalcore/icaltimezones.cpp
===================================================================
--- kdepimlibs-4.14.10.orig/kcalcore/icaltimezones.cpp
+++ kdepimlibs-4.14.10/kcalcore/icaltimezones.cpp
@@ -54,7 +54,7 @@ static QDateTime toQDateTime(const icalt
 {
     return QDateTime(QDate(t.year, t.month, t.day),
                      QTime(t.hour, t.minute, t.second),
-                     (t.is_utc ? Qt::UTC : Qt::LocalTime));
+                     (icaltime_is_utc(t) ? Qt::UTC : Qt::LocalTime));
 }
 
 // Maximum date for time zone data.
@@ -80,8 +80,7 @@ static icaltimetype writeLocalICalDateTi
     t.minute = local.time().minute();
     t.second = local.time().second();
     t.is_date = 0;
-    t.zone = 0;
-    t.is_utc = 0;
+    t.zone = NULL;
     return t;
 }
 
@@ -886,7 +885,7 @@ ICalTimeZone ICalTimeZoneSource::parse(i
         case ICAL_LASTMODIFIED_PROPERTY:
         {
             const icaltimetype t = icalproperty_get_lastmodified(p);
-            if (t.is_utc) {
+            if (icaltime_is_utc(t)) {
                 data->d->lastModified = toQDateTime(t);
             } else {
                 kDebug() << "LAST-MODIFIED not UTC";
@@ -1259,7 +1258,7 @@ QList<QDateTime> ICalTimeZoneSourcePriva
     // Convert DTSTART to QDateTime, and from local time to UTC
     const QDateTime localStart = toQDateTime(dtstart);     // local time
     dtstart.second -= prevOffset;
-    dtstart.is_utc = 1;
+    dtstart.zone = icaltimezone_get_utc_timezone();
     const QDateTime utcStart = toQDateTime(icaltime_normalize(dtstart));       
// UTC
 
     transitions += utcStart;
@@ -1286,13 +1285,13 @@ QList<QDateTime> ICalTimeZoneSourcePriva
                     t.minute = dtstart.minute;
                     t.second = dtstart.second;
                     t.is_date = 0;
-                    t.is_utc = 0;    // dtstart is in local time
+                    t.zone = NULL;    // dtstart is in local time
                 }
                 // RFC2445 states that RDATE must be in local time,
                 // but we support UTC as well to be safe.
-                if (!t.is_utc) {
+                if (!icaltime_is_utc(t)) {
                     t.second -= prevOffset;    // convert to UTC
-                    t.is_utc = 1;
+                    t.zone = icaltimezone_get_utc_timezone();
                     t = icaltime_normalize(t);
                 }
                 transitions += toQDateTime(t);
Index: kdepimlibs-4.14.10/kcal/icalformat_p.cpp
===================================================================
--- kdepimlibs-4.14.10.orig/kcal/icalformat_p.cpp
+++ kdepimlibs-4.14.10/kcal/icalformat_p.cpp
@@ -2087,8 +2087,7 @@ icaltimetype ICalFormatImpl::writeICalDa
   t.second = 0;
 
   t.is_date = 1;
-  t.is_utc = 0;
-  t.zone = 0;
+  t.zone = NULL;
 
   return t;
 }
@@ -2106,8 +2105,7 @@ icaltimetype ICalFormatImpl::writeICalDa
   t.second = datetime.time().second();
 
   t.is_date = 0;
-  t.zone = 0;   // zone is NOT set
-  t.is_utc = datetime.isUtc() ? 1 : 0;
+  t.zone = datetime.isUtc() ? icaltimezone_get_utc_timezone() : NULL;
 
   // _dumpIcaltime( t );
 
@@ -2174,7 +2172,7 @@ icalproperty *ICalFormatImpl::writeICalD
   }
 
   KTimeZone ktz;
-  if ( !t.is_utc ) {
+  if ( !icaltime_is_utc(t) ) {
     ktz = dt.timeZone();
   }
 
@@ -2207,7 +2205,7 @@ KDateTime ICalFormatImpl::readICalDateTi
 //  _dumpIcaltime( t );
 
   KDateTime::Spec timeSpec;
-  if ( t.is_utc  ||  t.zone == icaltimezone_get_utc_timezone() ) {
+  if ( icaltime_is_utc(t) ) {
     timeSpec = KDateTime::UTC;   // the time zone is UTC
     utc = false;    // no need to convert to UTC
   } else {

Reply via email to