r44879 - in /packages/openturns/trunk/debian/patches: fix-bigendian.patch series

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Tue May 22 22:01:19 UTC 2012


Author: barbier-guest
Date: Tue May 22 22:01:17 2012
New Revision: 44879

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=44879
Log:
Many checks fail on some (but not all) big endian machines

It seems that not all systems define __BIG_ENDIAN__.
Add some compile-time checks to determine endianness.

Added:
    packages/openturns/trunk/debian/patches/fix-bigendian.patch
Modified:
    packages/openturns/trunk/debian/patches/series

Added: packages/openturns/trunk/debian/patches/fix-bigendian.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/openturns/trunk/debian/patches/fix-bigendian.patch?rev=44879&op=file
==============================================================================
--- packages/openturns/trunk/debian/patches/fix-bigendian.patch (added)
+++ packages/openturns/trunk/debian/patches/fix-bigendian.patch Tue May 22 22:01:17 2012
@@ -1,0 +1,47 @@
+Description: Fix build on big endian machines.
+ Many checks fail on some (but not all) big endian machines.
+ It seems that not all systems define __BIG_ENDIAN__.
+ Add some compile-time checks to determine endianness.
+
+Author: Denis Barbier <bouzim at gmail.com>
+Origin: Debian
+Forwarded: no
+Last-Update: 2012-05-22
+
+Index: openturns/CMakeLists.txt
+===================================================================
+--- openturns.orig/CMakeLists.txt
++++ openturns/CMakeLists.txt
+@@ -86,6 +86,7 @@ check_include_file ( stdint.h      HAVE_
+ check_include_file ( stdlib.h      HAVE_STDLIB_H      )
+ check_include_file ( string.h      HAVE_STRING_H      )
+ check_include_file ( strings.h     HAVE_STRINGS_H     )
++check_include_file ( sys/param.h   HAVE_SYS_PARAM_H   )
+ check_include_file ( sys/socket.h  HAVE_SYS_SOCKET_H  )
+ check_include_file ( sys/stat.h    HAVE_SYS_STAT_H    )
+ check_include_file ( sys/time.h    HAVE_SYS_TIME_H    )
+Index: openturns/lib/src/Base/Stat/dsfmt.h
+===================================================================
+--- openturns.orig/lib/src/Base/Stat/dsfmt.h
++++ openturns/lib/src/Base/Stat/dsfmt.h
+@@ -28,6 +28,20 @@
+ #include "simd.h"
+ #include "OTprivate.hxx"
+ 
++#if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
++# ifdef HAVE_SYS_PARAM_H
++#  include <sys/param.h>
++# endif
++#endif
++
++#if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
++# ifdef __BYTE_ORDER
++#  if __BYTE_ORDER == __BIG_ENDIAN
++#   define __BIG_ENDIAN__
++#  endif
++# endif
++#endif
++
+ namespace tutils
+ {
+   namespace detail

Modified: packages/openturns/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-science/packages/openturns/trunk/debian/patches/series?rev=44879&op=diff
==============================================================================
--- packages/openturns/trunk/debian/patches/series (original)
+++ packages/openturns/trunk/debian/patches/series Tue May 22 22:01:17 2012
@@ -14,3 +14,4 @@
 debian-soname.patch
 ftbfs-clang.patch
 fix-tests-clang.patch
+fix-bigendian.patch




More information about the debian-science-commits mailing list