pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/tor make this build with 64-bit time_t



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3202dd321673
branches:  trunk
changeset: 553477:3202dd321673
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Jan 22 12:46:51 2009 +0000

description:
make this build with 64-bit time_t
(There are some unclean typecasts in the code, but the cases I've
seen are harmless -- as long as poll intervals, cert lifetimes etc
don't reach into y2037 which would be problematic in any case.)

diffstat:

 net/tor/distinfo         |   3 ++-
 net/tor/patches/patch-ac |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r eac472a39019 -r 3202dd321673 net/tor/distinfo
--- a/net/tor/distinfo  Thu Jan 22 12:46:35 2009 +0000
+++ b/net/tor/distinfo  Thu Jan 22 12:46:51 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.31 2008/12/21 11:10:27 obache Exp $
+$NetBSD: distinfo,v 1.32 2009/01/22 12:46:51 drochner Exp $
 
 SHA1 (tor-0.2.0.32.tar.gz) = 0e48d0706f1717afc6d19228a8878c3bc379b25d
 RMD160 (tor-0.2.0.32.tar.gz) = e87bee7d7dadf17280bf0b11245b0bad70d68fc2
 Size (tor-0.2.0.32.tar.gz) = 2159864 bytes
 SHA1 (patch-aa) = 630e1e0a9591c136987b504e73c64ff9f53b54e9
 SHA1 (patch-ab) = 3363efdcf8b9918c1249add1046077f2323a11ff
+SHA1 (patch-ac) = 00afc6a897816db3efc925a47cb1de459e4b382a
diff -r eac472a39019 -r 3202dd321673 net/tor/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tor/patches/patch-ac  Thu Jan 22 12:46:51 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.6 2009/01/22 12:46:51 drochner Exp $
+
+--- ./src/common/torint.h.orig 2009-01-22 12:02:50.000000000 +0100
++++ ./src/common/torint.h
+@@ -290,6 +290,8 @@ typedef uint32_t uintptr_t;
+ #define TIME_MAX ((time_t)INT_MAX)
+ #elif (SIZEOF_TIME_T == SIZEOF_LONG)
+ #define TIME_MAX ((time_t)LONG_MAX)
++#elif (SIZEOF_TIME_T == 8)
++#define TIME_MAX ((time_t)INT64_MAX)
+ #else
+ #error "Can't define (signed) TIME_MAX"
+ #endif



Home | Main Index | Thread Index | Old Index