diff options
author | asau <asau> | 2013-12-15 19:58:11 +0000 |
---|---|---|
committer | asau <asau> | 2013-12-15 19:58:11 +0000 |
commit | d124208b24905833e91797769f8de80ce73d6f94 (patch) | |
tree | d18df13cf666115e16425b6173d78d6c5fe81c1b /math | |
parent | 6738afee984f4a38c3bca7419a03f5a7eaa68a78 (diff) | |
download | pkgsrc-d124208b24905833e91797769f8de80ce73d6f94.tar.gz |
FreeBSD 9 lacks the same set of functions as NetBSD 6.
Diffstat (limited to 'math')
-rw-r--r-- | math/R/distinfo | 8 | ||||
-rw-r--r-- | math/R/patches/patch-src_nmath_dnbeta.c | 6 | ||||
-rw-r--r-- | math/R/patches/patch-src_nmath_pnbeta.c | 6 | ||||
-rw-r--r-- | math/R/patches/patch-src_nmath_pnchisq.c | 6 |
4 files changed, 13 insertions, 13 deletions
diff --git a/math/R/distinfo b/math/R/distinfo index 69af8a65f07..571fa147ef3 100644 --- a/math/R/distinfo +++ b/math/R/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.53 2013/08/19 13:30:30 jperkin Exp $ +$NetBSD: distinfo,v 1.54 2013/12/15 19:58:11 asau Exp $ SHA1 (R-3.0.1.tar.gz) = 5cc65476837926fdf04105954ea94efa53ac85ce RMD160 (R-3.0.1.tar.gz) = 09910626891c2962b5c05d204b14d59444da0c3b @@ -9,6 +9,6 @@ SHA1 (patch-doc_manual_R-defs.texi) = 57ad7175cc1bba48bcc74d29c6f85c02a84e4891 SHA1 (patch-doc_manual_R-intro.texi) = 592dbbe5e048f5bcbbb94fa3aec32ff2f0e321ba SHA1 (patch-src_library_stats_src_cov.c) = 23e452472506483ffc33a9c6629274b121cfd161 SHA1 (patch-src_main_format.c) = f03012b8fbab34ead3f35143fe782ab7c7b29768 -SHA1 (patch-src_nmath_dnbeta.c) = f14c188a4b74a38cec9a62f5eb2ba1ab72ad52d3 -SHA1 (patch-src_nmath_pnbeta.c) = 4a23cb223408d2bb73c6dc42d50659f3589be3ec -SHA1 (patch-src_nmath_pnchisq.c) = fdf82ef6967b12eb9f44e246bb8660c9a2b55fd3 +SHA1 (patch-src_nmath_dnbeta.c) = 4711d17404352c9c190ca037a01b1eec1236cebc +SHA1 (patch-src_nmath_pnbeta.c) = cb2de10d62abac32d6a1f40cdbb4de95c0462eed +SHA1 (patch-src_nmath_pnchisq.c) = 312a2c726f98a8f4d6356b459086f20c55de5f1f diff --git a/math/R/patches/patch-src_nmath_dnbeta.c b/math/R/patches/patch-src_nmath_dnbeta.c index 534b3d4b278..c66ef2d42f7 100644 --- a/math/R/patches/patch-src_nmath_dnbeta.c +++ b/math/R/patches/patch-src_nmath_dnbeta.c @@ -1,6 +1,6 @@ -$NetBSD: patch-src_nmath_dnbeta.c,v 1.1 2013/08/13 19:53:30 markd Exp $ +$NetBSD: patch-src_nmath_dnbeta.c,v 1.2 2013/12/15 19:58:11 asau Exp $ -No logl() in NetBSD 6.x +No logl() in NetBSD 6.x and FreeBSD 9. --- src/nmath/dnbeta.c.orig 2013-03-05 23:02:41.000000000 +0000 +++ src/nmath/dnbeta.c @@ -9,7 +9,7 @@ No logl() in NetBSD 6.x } while (term > sum * eps); -#ifdef HAVE_LONG_DOUBLE -+#if defined(HAVE_LONG_DOUBLE) && ! defined(__NetBSD__) ++#if defined(HAVE_LONG_DOUBLE) && ! defined(__NetBSD__) && ! defined(__FreeBSD__) return R_D_exp((double)(p_k + logl(sum))); #else return R_D_exp((double)(p_k + log(sum))); diff --git a/math/R/patches/patch-src_nmath_pnbeta.c b/math/R/patches/patch-src_nmath_pnbeta.c index 5a2f2c47573..6284db756fb 100644 --- a/math/R/patches/patch-src_nmath_pnbeta.c +++ b/math/R/patches/patch-src_nmath_pnbeta.c @@ -1,6 +1,6 @@ -$NetBSD: patch-src_nmath_pnbeta.c,v 1.1 2013/08/13 19:53:30 markd Exp $ +$NetBSD: patch-src_nmath_pnbeta.c,v 1.2 2013/12/15 19:58:11 asau Exp $ -No logl() in NetBSD 6.x +No logl() in NetBSD 6.x and FreeBSD 9. --- src/nmath/pnbeta.c.orig 2013-03-05 23:02:41.000000000 +0000 +++ src/nmath/pnbeta.c @@ -9,7 +9,7 @@ No logl() in NetBSD 6.x /* return R_DT_val(ans), but we want to warn about cancellation here */ if (lower_tail) -#ifdef HAVE_LONG_DOUBLE -+#if defined(HAVE_LONG_DOUBLE) && ! defined(__NetBSD__) ++#if defined(HAVE_LONG_DOUBLE) && ! defined(__NetBSD__) && ! defined(__FreeBSD__) return (double) (log_p ? logl(ans) : ans); #else return log_p ? log(ans) : ans; diff --git a/math/R/patches/patch-src_nmath_pnchisq.c b/math/R/patches/patch-src_nmath_pnchisq.c index bad1681cf57..a579a77e37c 100644 --- a/math/R/patches/patch-src_nmath_pnchisq.c +++ b/math/R/patches/patch-src_nmath_pnchisq.c @@ -1,6 +1,6 @@ -$NetBSD: patch-src_nmath_pnchisq.c,v 1.1 2013/08/13 19:53:30 markd Exp $ +$NetBSD: patch-src_nmath_pnchisq.c,v 1.2 2013/12/15 19:58:11 asau Exp $ -No expl() in NetBSD 6.x. +No expl() in NetBSD 6.x and FreeBSD 9. --- src/nmath/pnchisq.c.orig 2013-03-05 23:02:41.000000000 +0000 +++ src/nmath/pnchisq.c @@ -8,7 +8,7 @@ No expl() in NetBSD 6.x. */ #ifdef HAVE_LONG_DOUBLE -+#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__FreeBSD__) +# define EXP exp +#else # define EXP expl |