pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/evolution-data-server fix 2 cases where time_t==l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/261d3ff7725d
branches:  trunk
changeset: 553586:261d3ff7725d
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Sun Jan 25 16:58:47 2009 +0000

description:
fix 2 cases where time_t==long is assumed

diffstat:

 mail/evolution-data-server/Makefile         |   3 ++-
 mail/evolution-data-server/distinfo         |   4 +++-
 mail/evolution-data-server/patches/patch-ba |  18 ++++++++++++++++++
 mail/evolution-data-server/patches/patch-bb |  18 ++++++++++++++++++
 4 files changed, 41 insertions(+), 2 deletions(-)

diffs (72 lines):

diff -r e15cf04ba9a5 -r 261d3ff7725d mail/evolution-data-server/Makefile
--- a/mail/evolution-data-server/Makefile       Sun Jan 25 16:56:20 2009 +0000
+++ b/mail/evolution-data-server/Makefile       Sun Jan 25 16:58:47 2009 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.76 2009/01/13 13:23:38 wiz Exp $
+# $NetBSD: Makefile,v 1.77 2009/01/25 16:58:47 drochner Exp $
 #
 
 DISTNAME=      evolution-data-server-2.24.3
+PKGREVISION=   1
 CATEGORIES=    mail gnome
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/evolution-data-server/2.24/}
 EXTRACT_SUFX=  .tar.bz2
diff -r e15cf04ba9a5 -r 261d3ff7725d mail/evolution-data-server/distinfo
--- a/mail/evolution-data-server/distinfo       Sun Jan 25 16:56:20 2009 +0000
+++ b/mail/evolution-data-server/distinfo       Sun Jan 25 16:58:47 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.53 2009/01/13 13:23:38 wiz Exp $
+$NetBSD: distinfo,v 1.54 2009/01/25 16:58:47 drochner Exp $
 
 SHA1 (evolution-data-server-2.24.3.tar.bz2) = 079a2a0a139d4073e7a4122c81271695dfc56de8
 RMD160 (evolution-data-server-2.24.3.tar.bz2) = f0a83cf0d77c7798f6d0dbaa0dd9c77198629740
@@ -12,3 +12,5 @@
 SHA1 (patch-as) = 1394759db4c47911f4e224e89fbb0ca66b789883
 SHA1 (patch-at) = 32bb4f9de33a3799ad7a1a00dd072b38a800185c
 SHA1 (patch-au) = df329ac1910cb5f328b911447f4469a21edec304
+SHA1 (patch-ba) = d90f9aa715725780d01b71e3464d20c9575d2db4
+SHA1 (patch-bb) = 915106112ec4606dc6b7626c6d81ccce1cab0d57
diff -r e15cf04ba9a5 -r 261d3ff7725d mail/evolution-data-server/patches/patch-ba
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/evolution-data-server/patches/patch-ba       Sun Jan 25 16:58:47 2009 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ba,v 1.1 2009/01/25 16:58:47 drochner Exp $
+
+--- ./addressbook/backends/vcf/e-book-backend-vcf.c.orig       2008-12-22 10:49:14.000000000 +0100
++++ ./addressbook/backends/vcf/e-book-backend-vcf.c
+@@ -218,10 +218,10 @@ set_revision (EContact *contact)
+ {
+       char time_string[100] = {0};
+       const struct tm *tm = NULL;
+-      GTimeVal tv;
++      time_t t;
+ 
+-      g_get_current_time (&tv);
+-      tm = gmtime (&tv.tv_sec);
++      t = time(0);
++      tm = gmtime (&t);
+       if (tm)
+               strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
+       e_contact_set (contact, E_CONTACT_REV, time_string);
diff -r e15cf04ba9a5 -r 261d3ff7725d mail/evolution-data-server/patches/patch-bb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/evolution-data-server/patches/patch-bb       Sun Jan 25 16:58:47 2009 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-bb,v 1.1 2009/01/25 16:58:47 drochner Exp $
+
+--- ./addressbook/backends/file/e-book-backend-file.c.orig     2008-12-22 10:49:13.000000000 +0100
++++ ./addressbook/backends/file/e-book-backend-file.c
+@@ -174,10 +174,10 @@ set_revision (EContact *contact)
+ {
+       char time_string[100] = {0};
+       const struct tm *tm = NULL;
+-      GTimeVal tv;
++      time_t t;
+ 
+-      g_get_current_time (&tv);
+-      tm = gmtime (&tv.tv_sec);
++      t = time(0);
++      tm = gmtime (&t);
+       if (tm)
+               strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
+       e_contact_set (contact, E_CONTACT_REV, time_string);



Home | Main Index | Thread Index | Old Index