pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/qalculate -make this compile with 64-bit time_t
details: https://anonhg.NetBSD.org/pkgsrc/rev/d68e2be50fcb
branches: trunk
changeset: 393730:d68e2be50fcb
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon May 25 15:10:28 2009 +0000
description:
-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 PKGREVISION
diffstat:
math/qalculate/MESSAGE | 8 ++++++++
math/qalculate/Makefile | 4 ++--
math/qalculate/distinfo | 3 ++-
math/qalculate/patches/patch-af | 13 +++++++++++++
4 files changed, 25 insertions(+), 3 deletions(-)
diffs (57 lines):
diff -r 50c78bc9bb96 -r d68e2be50fcb math/qalculate/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/qalculate/MESSAGE Mon May 25 15:10:28 2009 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$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.
+
+===========================================================================
diff -r 50c78bc9bb96 -r d68e2be50fcb math/qalculate/Makefile
--- a/math/qalculate/Makefile Mon May 25 12:54:48 2009 +0000
+++ b/math/qalculate/Makefile Mon May 25 15:10:28 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2009/05/20 00:58:22 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2009/05/25 15:10:28 drochner Exp $
DISTNAME= libqalculate-0.9.6
PKGNAME= qalculate-0.9.6
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/}
diff -r 50c78bc9bb96 -r d68e2be50fcb math/qalculate/distinfo
--- a/math/qalculate/distinfo Mon May 25 12:54:48 2009 +0000
+++ b/math/qalculate/distinfo Mon May 25 15:10:28 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2007/11/05 20:44:03 drochner Exp $
+$NetBSD: distinfo,v 1.18 2009/05/25 15:10:28 drochner Exp $
SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad
RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d
@@ -8,3 +8,4 @@
SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd
SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28
SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b
+SHA1 (patch-af) = 3bab134f0ca10ecf91252e8211982be767e594e5
diff -r 50c78bc9bb96 -r d68e2be50fcb math/qalculate/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/qalculate/patches/patch-af Mon May 25 15:10:28 2009 +0000
@@ -0,0 +1,13 @@
+$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();
Home |
Main Index |
Thread Index |
Old Index