summaryrefslogtreecommitdiff
path: root/math/abs
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2004-08-04 20:44:34 +0000
committeragc <agc@pkgsrc.org>2004-08-04 20:44:34 +0000
commit8e2b7867eae8a39aed5c46f2cdff96fa8dcfdb8a (patch)
tree2247ac13fff3abec209aa5bfd43a4d0f3c69f771 /math/abs
parent8e156b5599a566992a1b0f8eafd9095f9e8d0850 (diff)
downloadpkgsrc-8e2b7867eae8a39aed5c46f2cdff96fa8dcfdb8a.tar.gz
Make this package gcc-3.3 friendly
Diffstat (limited to 'math/abs')
-rw-r--r--math/abs/distinfo3
-rw-r--r--math/abs/patches/patch-ac40
2 files changed, 42 insertions, 1 deletions
diff --git a/math/abs/distinfo b/math/abs/distinfo
index 4a1b733a241..527b5c46584 100644
--- a/math/abs/distinfo
+++ b/math/abs/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2002/09/26 15:46:47 jschauma Exp $
+$NetBSD: distinfo,v 1.4 2004/08/04 20:44:34 agc Exp $
SHA1 (abs-src-0.8.tar.gz) = 2123f3c80981a9fe7535645ed8b9726d81751157
Size (abs-src-0.8.tar.gz) = 287965 bytes
SHA1 (patch-aa) = 06f3adca298ebba3ce5ffe801342e870ceaf9a58
SHA1 (patch-ab) = 89e02f62b116d49a87011ff5a7aac304e8a980f4
+SHA1 (patch-ac) = cb7f9c99a58ac1705e0f7d63e84089a98f810160
diff --git a/math/abs/patches/patch-ac b/math/abs/patches/patch-ac
new file mode 100644
index 00000000000..3dc1c930079
--- /dev/null
+++ b/math/abs/patches/patch-ac
@@ -0,0 +1,40 @@
+$NetBSD: patch-ac,v 1.1 2004/08/04 20:44:34 agc Exp $
+
+--- Database/cell.c 2004/08/04 19:39:39 1.1
++++ Database/cell.c 2004/08/04 20:40:59
+@@ -1319,7 +1319,7 @@
+ }
+
+ char *
+-strcasestr (char *str1, char *str2)
++abs_strcasestr (char *str1, char *str2)
+ {
+ char *s1;
+ char *s2;
+@@ -1367,7 +1367,7 @@
+ return -1;
+ if (!strcmp (oldname, newname))
+ return 0;
+- if (strcasestr (cell->formula, oldname) == NULL)
++ if (abs_strcasestr (cell->formula, oldname) == NULL)
+ return 0;
+
+ diffsize = strlen (oldname) - strlen (newname);
+@@ -1375,7 +1375,7 @@
+ absmalloc ((strlen (oldname) + 2) * sizeof (char), "cell_chgwksname:old");
+ sprintf (old, "%s!", oldname);
+
+- pos = strcasestr (cell->formula, old);
++ pos = abs_strcasestr (cell->formula, old);
+ while (pos != NULL)
+ {
+ len = strlen (cell->formula);
+@@ -1388,7 +1388,7 @@
+ sprintf (newformula, "%s%s%s", cell->formula, newname, end);
+ absfree (cell->formula, "cell_chgwksname:cell->formula");
+ cell->formula = newformula;
+- end = strcasestr (cell->formula, old);
++ end = abs_strcasestr (cell->formula, old);
+ if (end > cell->formula + i)
+ pos = end;
+ else