pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/sc Enable to input year up to 2035, fixed PR 32994.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7e2d6474601
branches:  trunk
changeset: 522514:d7e2d6474601
user:      obache <obache%pkgsrc.org@localhost>
date:      Mon Dec 11 14:52:04 2006 +0000

description:
Enable to input year up to 2035,  fixed PR 32994.

Bump PKGREVISION.

diffstat:

 math/sc/Makefile         |   4 ++--
 math/sc/distinfo         |   4 ++--
 math/sc/patches/patch-ac |  11 ++++++++++-
 3 files changed, 14 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 820c8e2e8de9 -r d7e2d6474601 math/sc/Makefile
--- a/math/sc/Makefile  Mon Dec 11 13:58:01 2006 +0000
+++ b/math/sc/Makefile  Mon Dec 11 14:52:04 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2006/12/10 02:15:15 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2006/12/11 14:52:04 obache Exp $
 
 DISTNAME=               sc-6.21
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=             math
 MASTER_SITES=           ftp://gatekeeper.dec.com/pub/misc/
 EXTRACT_SUFX=          .tar.Z
diff -r 820c8e2e8de9 -r d7e2d6474601 math/sc/distinfo
--- a/math/sc/distinfo  Mon Dec 11 13:58:01 2006 +0000
+++ b/math/sc/distinfo  Mon Dec 11 14:52:04 2006 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.5 2006/09/29 15:55:26 he Exp $
+$NetBSD: distinfo,v 1.6 2006/12/11 14:52:04 obache Exp $
 
 SHA1 (sc-6.21.tar.Z) = 80d8972bcd1b5adcbc00345b6866954603dadf31
 RMD160 (sc-6.21.tar.Z) = 24abfaea2e5ef644394efd5e13ad1850280abbd6
 Size (sc-6.21.tar.Z) = 180360 bytes
 SHA1 (patch-aa) = d9092f0d2b996f2e9b89b708bc59d3bcffe8f18a
 SHA1 (patch-ab) = 2055f81bbabaa2752ed6dc18ce66ca857b9654f4
-SHA1 (patch-ac) = 2d18b5f318fe556b65bc6bf8b3a0a17c495ab5e5
+SHA1 (patch-ac) = 1b3628ae0bf881c8c3e9886210d23d63207f912f
 SHA1 (patch-ad) = e579f8e29ebba4d653e83741a829262c2b7d8d2b
diff -r 820c8e2e8de9 -r d7e2d6474601 math/sc/patches/patch-ac
--- a/math/sc/patches/patch-ac  Mon Dec 11 13:58:01 2006 +0000
+++ b/math/sc/patches/patch-ac  Mon Dec 11 14:52:04 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.3 2005/11/10 17:23:18 joerg Exp $
+$NetBSD: patch-ac,v 1.4 2006/12/11 14:52:04 obache Exp $
 
 --- interp.c.orig      1992-05-11 18:43:36.000000000 +0000
 +++ interp.c
@@ -26,6 +26,15 @@
      register struct tm *tp; 
      register int i;
      register long jdate;
+@@ -484,7 +484,7 @@ int mo, day, yr;
+     mdays[1] = 28 + (yr%4 == 0);
+ 
+     if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||
+-              yr > 1999 || yr < 1970) {
++              yr > 2035 || yr < 1970) {
+       error("@dts: invalid argument");
+       cellerror = CELLERROR;
+       return(0.0);
 @@ -551,15 +551,13 @@ dotime(which, when)
  int which;
  double when;



Home | Main Index | Thread Index | Old Index