pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/htdig-devel Fix building with 64-bit time_t



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8af44d7a2019
branches:  trunk
changeset: 553189:8af44d7a2019
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Jan 17 09:13:10 2009 +0000

description:
Fix building with 64-bit time_t

diffstat:

 www/htdig-devel/distinfo         |   3 ++-
 www/htdig-devel/patches/patch-ab |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r d1f09a1699bd -r 8af44d7a2019 www/htdig-devel/distinfo
--- a/www/htdig-devel/distinfo  Sat Jan 17 07:34:29 2009 +0000
+++ b/www/htdig-devel/distinfo  Sat Jan 17 09:13:10 2009 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.5 2008/01/14 09:46:45 yyamano Exp $
+$NetBSD: distinfo,v 1.6 2009/01/17 09:13:10 adam Exp $
 
 SHA1 (htdig-3.2.0b6.tar.bz2) = 0b28134386e78fe724c56583fbc61b280551122a
 RMD160 (htdig-3.2.0b6.tar.bz2) = 1e0900e11618ffe3d43a6fc26163e3ed926a1012
 Size (htdig-3.2.0b6.tar.bz2) = 2498246 bytes
 SHA1 (patch-aa) = 6f4d22f84fe8caa809c1062e210200d9cea1a555
+SHA1 (patch-ab) = 864655d311c2a9fe1f5de8b150587f3625a7c8c7
 SHA1 (patch-af) = 17b6f2f18c805cab76bd3b399057e035af16c70d
 SHA1 (patch-ag) = 6105b1526f31bb7b757c3ceeae286c7f2c0aa007
 SHA1 (patch-ah) = e6e87151c7bd0a44d138d431bdcc7ce7f950d1ee
diff -r d1f09a1699bd -r 8af44d7a2019 www/htdig-devel/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/htdig-devel/patches/patch-ab  Sat Jan 17 09:13:10 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2009/01/17 09:13:10 adam Exp $
+
+--- htsearch/Display.cc.orig   2009-01-17 10:05:37.000000000 +0100
++++ htsearch/Display.cc
+@@ -1541,7 +1541,7 @@ Display::buildMatchList()
+ // seconds in a 365 days year). The formula gives less weight
+ // as the distance between the date document and the current time
+ // increases (the absolute value is for documents with future date)
+-#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((n) - (dd)) / 31536000)))
++#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((int)((n) - (dd))) / 31536000)))
+           date_score =  DATE_FACTOR(date_factor, now, thisRef->DocTime());
+           score += date_score;
+         }



Home | Main Index | Thread Index | Old Index