pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/libopensync-plugin-evolution2 update for new evo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17a27b4e4bf7
branches:  trunk
changeset: 555316:17a27b4e4bf7
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Feb 27 17:42:23 2009 +0000

description:
update for new evolution-data-server memory management rules,
make it build on newer versions of e-d-s

diffstat:

 comms/libopensync-plugin-evolution2/Makefile         |   4 ++-
 comms/libopensync-plugin-evolution2/distinfo         |   4 ++-
 comms/libopensync-plugin-evolution2/patches/patch-aa |  26 ++++++++++++++++++++
 comms/libopensync-plugin-evolution2/patches/patch-ab |  26 ++++++++++++++++++++
 4 files changed, 58 insertions(+), 2 deletions(-)

diffs (90 lines):

diff -r c2c283789f24 -r 17a27b4e4bf7 comms/libopensync-plugin-evolution2/Makefile
--- a/comms/libopensync-plugin-evolution2/Makefile      Fri Feb 27 17:41:00 2009 +0000
+++ b/comms/libopensync-plugin-evolution2/Makefile      Fri Feb 27 17:42:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2008/09/06 20:54:31 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2009/02/27 17:42:23 drochner Exp $
 #
 
 DISTNAME=      libopensync-plugin-evolution2-0.22
@@ -16,6 +16,8 @@
 USE_LIBTOOL=   yes
 GNU_CONFIGURE= yes
 
+CPPFLAGS+=     -DHANDLE_LIBICAL_MEMORY
+
 .include "../../comms/libopensync/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../mail/evolution-data-server/buildlink3.mk"
diff -r c2c283789f24 -r 17a27b4e4bf7 comms/libopensync-plugin-evolution2/distinfo
--- a/comms/libopensync-plugin-evolution2/distinfo      Fri Feb 27 17:41:00 2009 +0000
+++ b/comms/libopensync-plugin-evolution2/distinfo      Fri Feb 27 17:42:23 2009 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/02/20 19:11:32 drochner Exp $
+$NetBSD: distinfo,v 1.2 2009/02/27 17:42:23 drochner Exp $
 
 SHA1 (libopensync-plugin-evolution2-0.22.tar.bz2) = 8d8bf10c4323e9c8e4c39f431f7c19a64718a37a
 RMD160 (libopensync-plugin-evolution2-0.22.tar.bz2) = 30c93ff7669d1405bc141909667f53c2242a23bd
 Size (libopensync-plugin-evolution2-0.22.tar.bz2) = 219916 bytes
+SHA1 (patch-aa) = ccd840cb82c14edd48b480952279f43bb4bf63db
+SHA1 (patch-ab) = 99fb0d91e08c68d447d3505c889aeb0e514dd645
diff -r c2c283789f24 -r 17a27b4e4bf7 comms/libopensync-plugin-evolution2/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync-plugin-evolution2/patches/patch-aa      Fri Feb 27 17:42:23 2009 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1 2009/02/27 17:42:23 drochner Exp $
+
+--- src/evolution2_ecal.c.orig 2007-03-27 13:49:55.000000000 +0200
++++ src/evolution2_ecal.c
+@@ -106,11 +106,13 @@ void evo2_calendar_get_changes(OSyncCont
+                                       data = e_cal_get_component_as_string(env->calendar, e_cal_component_get_icalcomponent(ecc->comp));
+                                       datasize = strlen(data) + 1;
+                                       evo2_report_change(ctx, "event", "vevent20", data, datasize, uid, CHANGE_ADDED);
++                                      g_free(data);
+                                       break;
+                               case E_CAL_CHANGE_MODIFIED:
+                                       data = e_cal_get_component_as_string(env->calendar, e_cal_component_get_icalcomponent(ecc->comp));
+                                       datasize = strlen(data) + 1;
+                                       evo2_report_change(ctx, "event", "vevent20", data, datasize, uid, CHANGE_MODIFIED);
++                                      g_free(data);
+                                       break;
+                               case E_CAL_CHANGE_DELETED:
+                                       evo2_report_change(ctx, "event", "vevent20", NULL, 0, uid, CHANGE_DELETED);
+@@ -132,6 +134,7 @@ void evo2_calendar_get_changes(OSyncCont
+                       e_cal_component_get_uid(comp, &uid);
+                       int datasize = strlen(data) + 1;
+                       evo2_report_change(ctx, "event", "vevent20", data, datasize, uid, CHANGE_ADDED);
++                      g_free(data);
+                       g_object_unref (comp);
+               }
+       }
diff -r c2c283789f24 -r 17a27b4e4bf7 comms/libopensync-plugin-evolution2/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync-plugin-evolution2/patches/patch-ab      Fri Feb 27 17:42:23 2009 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1 2009/02/27 17:42:23 drochner Exp $
+
+--- src/evolution2_etodo.c.orig        2007-03-27 13:49:55.000000000 +0200
++++ src/evolution2_etodo.c
+@@ -105,11 +105,13 @@ void evo2_todo_get_changes(OSyncContext 
+                                       data = e_cal_get_component_as_string(env->calendar, e_cal_component_get_icalcomponent(ecc->comp));
+                                       datasize = strlen(data) + 1;
+                                       evo2_report_change(ctx, "todo", "vtodo20", data, datasize, uid, CHANGE_ADDED);
++                                      g_free(data);
+                                       break;
+                               case E_CAL_CHANGE_MODIFIED:
+                                       data = e_cal_get_component_as_string(env->calendar, e_cal_component_get_icalcomponent(ecc->comp));
+                                       datasize = strlen(data) + 1;
+                                       evo2_report_change(ctx, "todo", "vtodo20", data, datasize, uid, CHANGE_MODIFIED);
++                                      g_free(data);
+                                       break;
+                               case E_CAL_CHANGE_DELETED:
+                                       evo2_report_change(ctx, "todo", "vtodo20", NULL, 0, uid, CHANGE_DELETED);
+@@ -131,6 +133,7 @@ void evo2_todo_get_changes(OSyncContext 
+                       e_cal_component_get_uid(comp, &uid);
+                       int datasize = strlen(data) + 1;
+                       evo2_report_change(ctx, "todo", "vtodo20", data, datasize, uid, CHANGE_ADDED);
++                      g_free(data);
+                       g_object_unref (comp);
+               }
+       }



Home | Main Index | Thread Index | Old Index