pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-scipy cipy: fix build on SunOS (system header ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7ed4b9ca7d9
branches:  trunk
changeset: 376732:a7ed4b9ca7d9
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Apr 12 20:31:43 2022 +0000

description:
cipy: fix build on SunOS (system header conflict)

diffstat:

 math/py-scipy/distinfo                                           |   3 +-
 math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp |  19 ++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r ce51489b20ac -r a7ed4b9ca7d9 math/py-scipy/distinfo
--- a/math/py-scipy/distinfo    Tue Apr 12 20:10:46 2022 +0000
+++ b/math/py-scipy/distinfo    Tue Apr 12 20:31:43 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.30 2022/04/09 12:15:31 adam Exp $
+$NetBSD: distinfo,v 1.31 2022/04/12 20:31:43 tnn Exp $
 
 BLAKE2s (scipy-1.8.0.tar.gz) = 45a8dad311d6c459a748f31a7df37ce49ee611c8d4c258649288fd624e5a3a05
 SHA512 (scipy-1.8.0.tar.gz) = 674652728ae76479d17189e6974895bb838a8e83b17b9fb91c5f86faebf2a1387e1466555ac5b51d05c293f9b31b9a72e634f5858105ea984ca94bd2f05bbb4c
 Size (scipy-1.8.0.tar.gz) = 38313602 bytes
 SHA1 (patch-scipy_special___round.h) = bc05a935e6423ce8395450ad3b30e88826939422
+SHA1 (patch-scipy_stats___hypotests__pythran.cpp) = e5d70b810ca020ccd25b9ad7068ce44487d8da60
diff -r ce51489b20ac -r a7ed4b9ca7d9 math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp  Tue Apr 12 20:31:43 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-scipy_stats___hypotests__pythran.cpp,v 1.1 2022/04/12 20:31:43 tnn Exp $
+
+/usr/include/iso/ctype_iso.h on SunOS has this:
+#define _P      0x00000010      /* Punctuation */
+
+Kludge away this macro.
+
+--- scipy/stats/_hypotests_pythran.cpp.orig    2022-02-04 14:45:39.615792300 +0000
++++ scipy/stats/_hypotests_pythran.cpp
+@@ -253,6 +253,9 @@ namespace __pythran__hypotests_pythran
+     typename type<argument_type0>::result_type operator()(argument_type0&& A) const
+     ;
+   }  ;
++#ifdef _P
++#undef _P
++#endif
+   struct _P
+   {
+     typedef void callable;



Home | Main Index | Thread Index | Old Index