pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/alpine include <time.h> and <utime.h> so that whe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8350cae02b6f
branches:  trunk
changeset: 393127:8350cae02b6f
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Sun May 17 17:34:01 2009 +0000

description:
include <time.h> and <utime.h> so that where time_t has been changed to 64-bit
values on NetBSD, we we get correctly referred to __utime50() which can handle
64-bit values. This fixes a problem where mailbox mtimes were being reset to 0

Note that this actually causes some build warnings as the code uses
"time_t tp[2]" instead of "struct utimbuf tp" (contains two time_t values)

Although the <os_bsi.h> file says it is used for BSDI, it seems to be used by
NetBSD and OpenBSD, both of which have the <utime.h> and <time.h>

bump PKGREVISION

diffstat:

 mail/alpine/Makefile         |   4 ++--
 mail/alpine/distinfo         |   3 ++-
 mail/alpine/patches/patch-aa |  25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 67e80684c666 -r 8350cae02b6f mail/alpine/Makefile
--- a/mail/alpine/Makefile      Sun May 17 17:31:29 2009 +0000
+++ b/mail/alpine/Makefile      Sun May 17 17:34:01 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2009/05/01 11:58:46 abs Exp $
+# $NetBSD: Makefile,v 1.20 2009/05/17 17:34:01 plunky Exp $
 #
 
 DISTNAME=      alpine-2.00
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    mail
 MASTER_SITES=  ftp://ftp.cac.washington.edu/alpine/
 DIST_SUBDIR=   alpine-2.00
diff -r 67e80684c666 -r 8350cae02b6f mail/alpine/distinfo
--- a/mail/alpine/distinfo      Sun May 17 17:31:29 2009 +0000
+++ b/mail/alpine/distinfo      Sun May 17 17:34:01 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2009/05/01 11:58:46 abs Exp $
+$NetBSD: distinfo,v 1.15 2009/05/17 17:34:01 plunky Exp $
 
 SHA1 (alpine-2.00/alpine-2.00.tar.bz2) = dcbd3c5419954f484ccf706feaba31ce48cdebc4
 RMD160 (alpine-2.00/alpine-2.00.tar.bz2) = 9e67704b23b3973d8b878e65ad9e6f5026c10d13
@@ -12,3 +12,4 @@
 SHA1 (alpine-2.00/searchheader.patch.gz) = 1c8dfaefa9a9ed502da454b5d1334c94bc1873c4
 RMD160 (alpine-2.00/searchheader.patch.gz) = cc1b2c3cf4cbceaf62e1c0378f5edf6bee619581
 Size (alpine-2.00/searchheader.patch.gz) = 1708 bytes
+SHA1 (patch-aa) = c306613a297d61591d577b6968a31fc85b03f852
diff -r 67e80684c666 -r 8350cae02b6f mail/alpine/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/alpine/patches/patch-aa      Sun May 17 17:34:01 2009 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.4 2009/05/17 17:34:01 plunky Exp $
+
+include <time.h> and <utime.h> so that where time_t has been changed to 64-bit
+values on NetBSD, we we get correctly referred to __utime50() which can handle
+64-bit values. This fixes a problem where mailbox mtimes were being reset to 0
+
+Note that this actually causes some build warnings as the code uses
+"time_t tp[2]" instead of "struct utimbuf tp" (contains two time_t values)
+
+Although the <os_bsi.h> file says it is used for BSDI, it seems to be used by
+NetBSD and OpenBSD, both of which have the <utime.h> and <time.h>
+
+  - plunky
+
+--- imap/src/osdep/unix/os_bsi.h.orig  2008-06-04 19:18:34.000000000 +0100
++++ imap/src/osdep/unix/os_bsi.h       2009-05-17 18:00:44.000000000 +0100
+@@ -34,6 +34,8 @@
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <sys/file.h>
++#include <time.h>
++#include <utime.h>
+ 
+ 
+ #include "env_unix.h"



Home | Main Index | Thread Index | Old Index