pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2017Q2]: pkgsrc/math/py-scipy Pullup ticket #5535 - requested ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4793847cdd8d
branches: pkgsrc-2017Q2
changeset: 408677:4793847cdd8d
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Mon Aug 28 19:03:29 2017 +0000
description:
Pullup ticket #5535 - requested by he
math/py-scipy: powerpc build fix
Revisions pulled up:
- math/py-scipy/Makefile 1.26
- math/py-scipy/distinfo 1.13
- math/py-scipy/patches/patch-scipy_special___round.h 1.1
---
Module Name: pkgsrc
Committed By: he
Date: Tue Aug 22 21:37:28 UTC 2017
Modified Files:
pkgsrc/math/py-scipy: Makefile distinfo
Added Files:
pkgsrc/math/py-scipy/patches: patch-scipy_special___round.h
Log Message:
Add a patch which fixes an obviously bogus preprocessor conditional;
in our case, __STDC_VERSION__ isn't defined when built as C++.
The fix isn't completeely right, it insists on <fenv.h> if built as C++.
Not entirely unreasonable, and makes this build on NetBSD/powerpc as well,
which doesn't like the redefinition of fegetround() and fesetround().
Bump PKGREVISION.
diffstat:
math/py-scipy/Makefile | 3 ++-
math/py-scipy/distinfo | 3 ++-
math/py-scipy/patches/patch-scipy_special___round.h | 17 +++++++++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r c874a792efa4 -r 4793847cdd8d math/py-scipy/Makefile
--- a/math/py-scipy/Makefile Mon Aug 28 19:01:04 2017 +0000
+++ b/math/py-scipy/Makefile Mon Aug 28 19:03:29 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2017/06/24 08:19:40 adam Exp $
+# $NetBSD: Makefile,v 1.25.2.1 2017/08/28 19:03:29 bsiegert Exp $
DISTNAME= scipy-0.19.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/}
diff -r c874a792efa4 -r 4793847cdd8d math/py-scipy/distinfo
--- a/math/py-scipy/distinfo Mon Aug 28 19:01:04 2017 +0000
+++ b/math/py-scipy/distinfo Mon Aug 28 19:03:29 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2017/06/24 08:19:40 adam Exp $
+$NetBSD: distinfo,v 1.12.2.1 2017/08/28 19:03:29 bsiegert Exp $
SHA1 (scipy-0.19.1.tar.gz) = b6397bcd7c62e46a6dc12f3d0df07c184912108a
RMD160 (scipy-0.19.1.tar.gz) = d1314b26ee569df47d99fa98b86ac3aa7dc2d433
SHA512 (scipy-0.19.1.tar.gz) = 5c124c44c672dcb53c31f8592fd9f74189f04cb0bade99476a2a6eb4844338e3e9842f27a148b007b7eed25cbfde090a697575a381ebe4ca066abdf54c214203
Size (scipy-0.19.1.tar.gz) = 14083805 bytes
+SHA1 (patch-scipy_special___round.h) = 30799ea2c824dc9cc0b399e7450ec10ec7137d2b
diff -r c874a792efa4 -r 4793847cdd8d math/py-scipy/patches/patch-scipy_special___round.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-scipy/patches/patch-scipy_special___round.h Mon Aug 28 19:03:29 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-scipy_special___round.h,v 1.1.2.2 2017/08/28 19:03:29 bsiegert 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
+@@ -49,7 +49,7 @@ double add_round_down(double a, double b
+
+
+ /* Helper code for testing _round.h. */
+-#if __STDC_VERSION__ >= 199901L
++#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus)
+ /* We have C99 */
+ #include <fenv.h>
+ #else
Home |
Main Index |
Thread Index |
Old Index