[Python-modules-team] fix to scipy into wheezy proposed-updates?

Yaroslav Halchenko debian at onerussian.com
Fri Aug 31 15:53:35 UTC 2012


Dear Release team,

While building a squeeze backport of new release of python-brian package
I just found out that there is a g++ 4.4 compatibility issue with weave
of scipy shipped in squeeze.  Fix is trivial -- I adopted it from a
package in Ubuntu (links are in the patch). I tested that it
resolves my brian build failures.  See attached the debdiff for a
proposed upload.  Would it be acceptable?  Thank you in advance

-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        
-------------- next part --------------
diff -Nru python-scipy-0.7.2+dfsg1/debian/changelog python-scipy-0.7.2+dfsg1/debian/changelog
--- python-scipy-0.7.2+dfsg1/debian/changelog	2010-07-30 18:35:56.000000000 -0400
+++ python-scipy-0.7.2+dfsg1/debian/changelog	2012-08-31 09:54:37.000000000 -0400
@@ -1,3 +1,11 @@
+python-scipy (0.7.2+dfsg1-1+squeeze1) stable; urgency=low
+
+  * Team upload.
+  * Patch weave-739.patch to include <cstdlib> in blitz/*.h for weave inline
+    functionality (Closes: #686353)
+
+ -- Yaroslav Halchenko <debian at onerussian.com>  Fri, 31 Aug 2012 09:46:13 -0400
+
 python-scipy (0.7.2+dfsg1-1) unstable; urgency=low
 
   * Release with a new source tarball with missing cython source files
diff -Nru python-scipy-0.7.2+dfsg1/debian/patches/series python-scipy-0.7.2+dfsg1/debian/patches/series
--- python-scipy-0.7.2+dfsg1/debian/patches/series	2010-06-07 08:51:28.000000000 -0400
+++ python-scipy-0.7.2+dfsg1/debian/patches/series	2012-08-31 09:44:24.000000000 -0400
@@ -1,2 +1,3 @@
 restore_sys_argv.patch
 string_exception.patch
+weave-739.patch
diff -Nru python-scipy-0.7.2+dfsg1/debian/patches/weave-739.patch python-scipy-0.7.2+dfsg1/debian/patches/weave-739.patch
--- python-scipy-0.7.2+dfsg1/debian/patches/weave-739.patch	1969-12-31 19:00:00.000000000 -0500
+++ python-scipy-0.7.2+dfsg1/debian/patches/weave-739.patch	2012-08-31 09:46:05.000000000 -0400
@@ -0,0 +1,41 @@
+From: Yaroslav Halchenko <debian at onerussian.com>
+Author: Sameer Morar <smorar at gmail.com>
+Description: compatibility with g++ 4.4
+
+Origin: http://projects.scipy.org/scipy/attachment/ticket/739/weave-739.patch
+Applied-Upstream: 6e1155ea14e85efdb6c3d944ded3583c12d01778
+Last-Update: 2012-08-31
+
+--- a/scipy/weave/blitz/blitz/mathfunc.h
++++ b/scipy/weave/blitz/blitz/mathfunc.h
+@@ -12,6 +12,8 @@
+  #include <blitz/prettyprint.h>
+ #endif
+ 
++#include <cstdlib>
++
+ BZ_NAMESPACE(blitz)
+ 
+ // abs(P_numtype1)    Absolute value
+--- a/scipy/weave/blitz/blitz/blitz.h
++++ b/scipy/weave/blitz/blitz/blitz.h
+@@ -65,6 +65,8 @@
+ 
+ #define BZ_THROW                     // Needed in <blitz/numinquire.h>
+ 
++#include <cstdlib>
++
+ BZ_NAMESPACE(blitz)
+ 
+ #ifdef BZ_HAVE_STD
+--- a/scipy/weave/blitz/blitz/prettyprint.h
++++ b/scipy/weave/blitz/blitz/prettyprint.h
+@@ -22,6 +22,8 @@
+ #ifndef BZ_PRETTYPRINT_H
+ #define BZ_PRETTYPRINT_H
+ 
++#include <cstdlib>
++
+ BZ_NAMESPACE(blitz)
+ 
+ class prettyPrintFormat {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120831/a3383c08/attachment.pgp>


More information about the Python-modules-team mailing list