-make this compile with 64-bit time_t The fix is suboptimal because the y2037 problem remains. It would be better to either -extend the "cln" lib for 64-bit integers (but the code is a mess already) or -split the time_t into a lower/higher part and convert them seperately, which is less than elegant. -add a MESSAGE telling that gnome-vfs or wget are needed to fetch currency exchange rates automatically, so the (wrong) wget dependency can be removed from child pkgs bump PKGREVISIONdiff -r0 -r1.1 pkgsrc/math/qalculate/MESSAGE
(drochner)
===========================================================================
$NetBSD: MESSAGE,v 1.1 2009/05/25 15:10:28 drochner Exp $
For online updates of currency exchange rates, either gnome-vfs
(pkgsrc/sysutils/gnome-vfs) or wget (pkgsrc/net/wget) needs to be
installed.
===========================================================================
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.31 2009/05/20 00:58:22 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.32 2009/05/25 15:10:28 drochner Exp $ | |
2 | 2 | |||
3 | DISTNAME= libqalculate-0.9.6 | 3 | DISTNAME= libqalculate-0.9.6 | |
4 | PKGNAME= qalculate-0.9.6 | 4 | PKGNAME= qalculate-0.9.6 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= math | 6 | CATEGORIES= math | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/} | |
8 | 8 | |||
9 | MAINTAINER= adam@NetBSD.org | 9 | MAINTAINER= adam@NetBSD.org | |
10 | HOMEPAGE= http://qalculate.sourceforge.net/ | 10 | HOMEPAGE= http://qalculate.sourceforge.net/ | |
11 | COMMENT= Modern multi-purpose desktop calculator (console version) | 11 | COMMENT= Modern multi-purpose desktop calculator (console version) | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 14 | |||
15 | USE_GNU_READLINE= yes | 15 | USE_GNU_READLINE= yes | |
16 | USE_LANGUAGES= c c++ | 16 | USE_LANGUAGES= c c++ | |
17 | USE_LIBTOOL= yes | 17 | USE_LIBTOOL= yes | |
18 | USE_PKGLOCALEDIR= yes | 18 | USE_PKGLOCALEDIR= yes |
@@ -1,10 +1,11 @@ | @@ -1,10 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.17 2007/11/05 20:44:03 drochner Exp $ | 1 | $NetBSD: distinfo,v 1.18 2009/05/25 15:10:28 drochner Exp $ | |
2 | 2 | |||
3 | SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad | 3 | SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad | |
4 | RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d | 4 | RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d | |
5 | Size (libqalculate-0.9.6.tar.gz) = 1111134 bytes | 5 | Size (libqalculate-0.9.6.tar.gz) = 1111134 bytes | |
6 | SHA1 (patch-aa) = fda2983150bbbdecc1578e747d8a6aa7ef965f3f | 6 | SHA1 (patch-aa) = fda2983150bbbdecc1578e747d8a6aa7ef965f3f | |
7 | SHA1 (patch-ab) = b1a4b0ffe5dc19ff2b1c640960c3f3a524fd524b | 7 | SHA1 (patch-ab) = b1a4b0ffe5dc19ff2b1c640960c3f3a524fd524b | |
8 | SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd | 8 | SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd | |
9 | SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28 | 9 | SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28 | |
10 | SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b | 10 | SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b | |
11 | SHA1 (patch-af) = 3bab134f0ca10ecf91252e8211982be767e594e5 |
$NetBSD: patch-af,v 1.1 2009/05/25 15:10:28 drochner Exp $
--- libqalculate/BuiltinFunctions.cc.orig 2009-05-12 12:55:15.000000000 +0200
+++ libqalculate/BuiltinFunctions.cc
@@ -2283,7 +2283,7 @@ int TimestampFunction::calculate(MathStr
string str = vargs[0].symbol();
remove_blank_ends(str);
if(str == _("now") || str == "now") {
- mstruct.number().setInternal(time(NULL));
+ mstruct.number().setInternal((long)time(NULL));
return 1;
}
GDate *gtime = g_date_new();