summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2006-09-29 15:55:26 +0000
committerhe <he@pkgsrc.org>2006-09-29 15:55:26 +0000
commit81ca810d4999a31b4b5ebf8b57268997c53f4d8e (patch)
tree8a34652ffa04d00b1a61808253ca56ee83e973fa /math
parent47899c3d4705000d9d54719ba1e99be226993415 (diff)
downloadpkgsrc-81ca810d4999a31b4b5ebf8b57268997c53f4d8e.tar.gz
Fix a small annoyance: make the default file name in 'W' actually work.
Pkgrevision bumped to 1.
Diffstat (limited to 'math')
-rw-r--r--math/sc/Makefile3
-rw-r--r--math/sc/distinfo4
-rw-r--r--math/sc/patches/patch-ad33
3 files changed, 34 insertions, 6 deletions
diff --git a/math/sc/Makefile b/math/sc/Makefile
index b1f76e01a62..5962d20c35c 100644
--- a/math/sc/Makefile
+++ b/math/sc/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2006/06/20 22:15:15 minskim Exp $
+# $NetBSD: Makefile,v 1.11 2006/09/29 15:55:26 he Exp $
DISTNAME= sc-6.21
+PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://gatekeeper.dec.com/pub/misc/
EXTRACT_SUFX= .tar.Z
diff --git a/math/sc/distinfo b/math/sc/distinfo
index 975cb573371..57ff4008d31 100644
--- a/math/sc/distinfo
+++ b/math/sc/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/11/10 17:23:17 joerg Exp $
+$NetBSD: distinfo,v 1.5 2006/09/29 15:55:26 he Exp $
SHA1 (sc-6.21.tar.Z) = 80d8972bcd1b5adcbc00345b6866954603dadf31
RMD160 (sc-6.21.tar.Z) = 24abfaea2e5ef644394efd5e13ad1850280abbd6
@@ -6,4 +6,4 @@ Size (sc-6.21.tar.Z) = 180360 bytes
SHA1 (patch-aa) = d9092f0d2b996f2e9b89b708bc59d3bcffe8f18a
SHA1 (patch-ab) = 2055f81bbabaa2752ed6dc18ce66ca857b9654f4
SHA1 (patch-ac) = 2d18b5f318fe556b65bc6bf8b3a0a17c495ab5e5
-SHA1 (patch-ad) = cf0585a0616874d318d46d1a30af146f48a85e51
+SHA1 (patch-ad) = e579f8e29ebba4d653e83741a829262c2b7d8d2b
diff --git a/math/sc/patches/patch-ad b/math/sc/patches/patch-ad
index 52f5a68bb04..014fac1d58e 100644
--- a/math/sc/patches/patch-ad
+++ b/math/sc/patches/patch-ad
@@ -1,8 +1,16 @@
-$NetBSD: patch-ad,v 1.1 2005/11/10 17:23:18 joerg Exp $
+$NetBSD: patch-ad,v 1.2 2006/09/29 15:55:27 he Exp $
---- cmds.c.orig 2005-11-10 17:17:35.000000000 +0000
+--- cmds.c.orig 1992-05-11 20:43:34.000000000 +0200
+++ cmds.c
-@@ -39,8 +39,6 @@ void openrow();
+@@ -28,6 +28,7 @@
+ #include "sc.h"
+ #include <signal.h>
+ #include <errno.h>
++#include <limits.h>
+
+ #ifdef SYSV3
+ extern void exit();
+@@ -39,8 +40,6 @@ void openrow();
void syncref();
void unspecial();
@@ -11,3 +19,22 @@ $NetBSD: patch-ad,v 1.1 2005/11/10 17:23:18 joerg Exp $
/* a linked list of free [struct ent]'s, uses .next as the pointer */
extern struct ent *freeents;
+@@ -700,12 +699,18 @@ int r0, c0, rn, cn;
+ int fieldlen, nextcol;
+ register row, col;
+ register struct ent **pp;
++ char fnbuf[PATH_MAX];
+
+ if ((strcmp(fname, curfile) == 0) &&
+ !yn_ask("Confirm that you want to destroy the data base: (y,n)")) {
+ return;
+ }
+
++ if (*fname == '\0') {
++ snprintf(fnbuf, sizeof fnbuf, "%s.asc", curfile);
++ fname = fnbuf;
++ }
++
+ if (!pline && (pline = scxmalloc((unsigned)(FBUFLEN *
+ ++fbufs_allocated))) == (char *)NULL)
+ { error("Malloc failed in printfile()");