summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2006-02-26 11:58:25 +0000
committermarkd <markd@pkgsrc.org>2006-02-26 11:58:25 +0000
commit53346be7da31f313ae2573005886557d0e920266 (patch)
tree0baae1973cc6ab8b3548de1ed0df6ad9cf281d4d /math
parentda8972b6acc2fbb1ccedfa6b8ea1d09aadfe2616 (diff)
downloadpkgsrc-53346be7da31f313ae2573005886557d0e920266.tar.gz
Patch from R's svn trunk. Should fix build on NetBSD 1.6.2.
Diffstat (limited to 'math')
-rw-r--r--math/R/distinfo3
-rw-r--r--math/R/patches/patch-ae24
2 files changed, 26 insertions, 1 deletions
diff --git a/math/R/distinfo b/math/R/distinfo
index be7bde0a98a..92733f17cfb 100644
--- a/math/R/distinfo
+++ b/math/R/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2006/02/04 22:25:06 markd Exp $
+$NetBSD: distinfo,v 1.31 2006/02/26 11:58:25 markd Exp $
SHA1 (R-2.2.1.tar.gz) = 537e0b89b8de55c1156474c76c19c1fcc210f756
RMD160 (R-2.2.1.tar.gz) = b63b6c5ef1db27a879783460b0ecb6de0d4bba18
@@ -7,4 +7,5 @@ SHA1 (patch-aa) = 52f7ca0159087a6a5f319dd5476223785fe75a7a
SHA1 (patch-ab) = b724b549cd9920865c4d4ae60c71dff48c4c0c06
SHA1 (patch-ac) = 95888e1a7bbd17a7c258973281adf9c702305673
SHA1 (patch-ad) = 83c9b046822b1d350daec8739ca4ee2a6b7e1978
+SHA1 (patch-ae) = 4193b3f975bd55ce1d8f720878db31b67ba2d02c
SHA1 (patch-at) = d972e1072a7f6a30b5fbc2e5fa076bc5bdec5952
diff --git a/math/R/patches/patch-ae b/math/R/patches/patch-ae
new file mode 100644
index 00000000000..2be9e1bc9c4
--- /dev/null
+++ b/math/R/patches/patch-ae
@@ -0,0 +1,24 @@
+$NetBSD: patch-ae,v 1.13 2006/02/26 11:58:25 markd Exp $
+
+--- src/nmath/log1p.c.orig 2005-12-06 12:00:17.000000000 +1300
++++ src/nmath/log1p.c
+@@ -98,16 +98,18 @@ double log1p(double x)
+ -.33410026677731010351377066666666e-30,
+ +.63533936180236187354180266666666e-31,
+ };
+- const static double xmin = -1 + sqrt(DBL_EPSILON);/*was sqrt(d1mach(4)); */
+
+ #ifdef NOMORE_FOR_THREADS
+ static int nlnrel = 0;
++ static double xmin = 0.0;
+
++ if (xmin == 0.0) xmin = -1 + sqrt(DBL_EPSILON);/*was sqrt(d1mach(4)); */
+ if (nlnrel == 0) {/* initialize chebychev coefficients */
+ nlnrel = chebyshev_init(alnrcs, 43, DBL_EPSILON/20);/*was .1*d1mach(3)*/
+ }
+ #else
+ # define nlnrel 22
++ const static double xmin = -0.999999985;
+ /* 22: for IEEE double precision where DBL_EPSILON = 2.22044604925031e-16 */
+ #endif
+