From f47b1337c0387778a3ea8bd3db7fa1f269cb869c Mon Sep 17 00:00:00 2001
From: Joe Garcia <joe.garcia@ssec.wisc.edu>
Date: Thu, 24 May 2018 12:09:23 -0500
Subject: [PATCH] mac version of message stream is broken or incompatible and
 shouldn't be used if this is not explicitly compile for 10.13 and newer

---
 ShellB3/shallbethree.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh
index 7da97c7b..95e09d17 100755
--- a/ShellB3/shallbethree.sh
+++ b/ShellB3/shallbethree.sh
@@ -3693,6 +3693,18 @@ mk_scipy() {
   _find_cots_lib LAPACK liblapack $BASE $COTS_HOME ${SYSROOT}/usr ||oops "scipy requires lapack"
 
   make_patch scipy <<PATCH
+diff -ru scipy/_lib/src/messagestream.h scipy/_lib/src/messagestream.h
+--- scipy/_lib/src/messagestream.h    2018-05-24 10:19:06.000000000 -0500
++++ scipy/_lib/src/messagestream.h        2018-05-05 09:07:41.000000000 -0500
+@@ -5,7 +5,7 @@
+ 
+ #include "messagestream_config.h"
+ 
+-#if HAVE_OPEN_MEMSTREAM
++#if HAVE_OPEN_MEMSTREAM && !defined(__APPLE__)
+ FILE *messagestream_open_memstream(char **ptr, size_t *sizeloc)
+ {
+     return open_memstream(ptr, sizeloc);
 diff -ru bscript bscript
 --- bscript 2016-10-30 03:37:33.000000000 -0500
 +++ bscript 2017-08-28 16:44:22.000000000 -0500
-- 
GitLab