[Python-modules-team] Bug#544291: makes packages on (at least) alpha FTBFS

Andreas Barth aba at not.so.argh.org
Sun Aug 30 13:44:07 UTC 2009


tag 544291 + patch
thanks

* Debian Bug Tracking System (owner at bugs.debian.org) [090830 14:17]:
> [...]

The obvious solution is to replace
#ifdef NPY_HAVE_ENDIAN_H
by
#if 1
in numpy/core/include/numpy/npy_endian.h
(and drop NPY_HAVE_ENDIAN_H again from CFLAGS)


The not-so-primitive solution (but possible to push it upstream) could
be (however, I'm not insisting this is the correct one - I'm not so
firm on "what can assume cross-platform"):
--- ./numpy/core/include/numpy/npy_endian.h~    2009-04-05 10:09:20.000000000 +0200
+++ ./numpy/core/include/numpy/npy_endian.h     2009-08-30 17:42:02.000000000 +0200
@@ -5,8 +5,9 @@
  * NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in
  * endian.h
  */
+#include <stddef.h>

-#ifdef NPY_HAVE_ENDIAN_H
+#if defined(NPY_HAVE_ENDIAN_H) || defined(__GLIBC__)
     /* Use endian.h if available */
     #include <endian.h>
     #define NPY_BYTE_ORDER __BYTE_ORDER

(and also drop NPY_HAVE_ENDIAN_H again from CFLAGS)

I'm intending to NMU with the first one next weekend, unless I hear
different. (The first one because it's obvious that it will do, and
because I won't push it upstream anyways.)



Cheers,
Andi





More information about the Python-modules-team mailing list