pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-scipy py-scipy: Apply a couple of patches to f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4a545da176b5
branches:  trunk
changeset: 381685:4a545da176b5
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jun 14 14:29:16 2018 +0000

description:
py-scipy: Apply a couple of patches to fix SunOS.

diffstat:

 math/py-scipy/distinfo                                      |   5 ++-
 math/py-scipy/patches/patch-scipy___lib_src_messagestream.h |  15 +++++++++++
 math/py-scipy/patches/patch-scipy_special___round.h         |  17 ++++++++++--
 3 files changed, 32 insertions(+), 5 deletions(-)

diffs (63 lines):

diff -r 25213dce8e53 -r 4a545da176b5 math/py-scipy/distinfo
--- a/math/py-scipy/distinfo    Thu Jun 14 13:13:35 2018 +0000
+++ b/math/py-scipy/distinfo    Thu Jun 14 14:29:16 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.16 2018/05/14 06:39:32 adam Exp $
+$NetBSD: distinfo,v 1.17 2018/06/14 14:29:16 jperkin Exp $
 
 SHA1 (scipy-1.1.0.tar.gz) = 965e7ac23ac1bc2809a1fa13d429aea352bdd124
 RMD160 (scipy-1.1.0.tar.gz) = 960b360b8499728a6d10a2421594ab5a81739b3a
 SHA512 (scipy-1.1.0.tar.gz) = 72fe32c6c009613cb78202598e5db14f8e630b3218839cfe18d43d40550d94cc5aa100c6f5d41f40e86ae148e9b6a13431bb91b0f9be44b0569ccd7b725fe973
 Size (scipy-1.1.0.tar.gz) = 15583560 bytes
-SHA1 (patch-scipy_special___round.h) = 30799ea2c824dc9cc0b399e7450ec10ec7137d2b
+SHA1 (patch-scipy___lib_src_messagestream.h) = 83305b780379eafcd5063b757de6b8c3f224b4f0
+SHA1 (patch-scipy_special___round.h) = 1575cf7068fe52b78a039e437b6841c0e570ceb9
diff -r 25213dce8e53 -r 4a545da176b5 math/py-scipy/patches/patch-scipy___lib_src_messagestream.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-scipy/patches/patch-scipy___lib_src_messagestream.h       Thu Jun 14 14:29:16 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-scipy___lib_src_messagestream.h,v 1.1 2018/06/14 14:29:16 jperkin Exp $
+
+HAVE_OPEN_MEMSTREAM is defined/not defined, not 0/1.
+
+--- scipy/_lib/src/messagestream.h.orig        2018-05-05 17:10:05.000000000 +0000
++++ scipy/_lib/src/messagestream.h
+@@ -5,7 +5,7 @@
+ 
+ #include "messagestream_config.h"
+ 
+-#if HAVE_OPEN_MEMSTREAM
++#ifdef HAVE_OPEN_MEMSTREAM
+ FILE *messagestream_open_memstream(char **ptr, size_t *sizeloc)
+ {
+     return open_memstream(ptr, sizeloc);
diff -r 25213dce8e53 -r 4a545da176b5 math/py-scipy/patches/patch-scipy_special___round.h
--- a/math/py-scipy/patches/patch-scipy_special___round.h       Thu Jun 14 13:13:35 2018 +0000
+++ b/math/py-scipy/patches/patch-scipy_special___round.h       Thu Jun 14 14:29:16 2018 +0000
@@ -1,12 +1,23 @@
-$NetBSD: patch-scipy_special___round.h,v 1.1 2017/08/22 21:37:27 he Exp $
+$NetBSD: patch-scipy_special___round.h,v 1.2 2018/06/14 14:29:16 jperkin Exp $
 
 This conditional is just wrong, when built with c++, __STDC_VERSION__
 is not defined.  Make a cheezy fix which insists on <fenv.h> when
 built with C++.
 
---- scipy/special/_round.h.orig        2017-01-09 07:17:38.000000000 +0000
+--- scipy/special/_round.h.orig        2018-05-05 17:10:11.000000000 +0000
 +++ scipy/special/_round.h
-@@ -49,7 +49,7 @@ double add_round_down(double a, double b
+@@ -9,6 +9,10 @@
+ #include "_c99compat.h"
+ #include "cephes/dd_idefs.h"
+ 
++#if defined(__cplusplus)
++using std::isinf;
++using std::isnan;
++#endif
+ 
+ double add_round_up(double a, double b)
+ {
+@@ -49,7 +53,7 @@ double add_round_down(double a, double b
  
  
  /* Helper code for testing _round.h. */



Home | Main Index | Thread Index | Old Index