[emos] 11/14: Add revisted little-endian patch

Alastair McKinstry mckinstry at moszumanska.debian.org
Wed Mar 2 11:41:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository emos.

commit 00f724b454d72d6857f2cc692667fceae13691d0
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Wed Feb 3 19:04:45 2016 +0000

    Add revisted little-endian patch
---
 debian/patches/little_endian.patch | 38 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 39 insertions(+)

diff --git a/debian/patches/little_endian.patch b/debian/patches/little_endian.patch
new file mode 100644
index 0000000..fbe7944
--- /dev/null
+++ b/debian/patches/little_endian.patch
@@ -0,0 +1,38 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Only use LITTLE_ENDIAN on LITTLE_ENDIAN machines (make optional and
+  say no on big-endian in debian/rules)
+Last-Updated: 2016-02-04
+Forwarded: no
+
+Index: emoslib-4.3.7/CMakeLists.txt
+===================================================================
+--- emoslib-4.3.7.orig/CMakeLists.txt
++++ emoslib-4.3.7/CMakeLists.txt
+@@ -35,7 +35,7 @@ ecbuild_add_option( FEATURE LIBEMOS_BUFR
+ ecbuild_add_option( FEATURE LIBEMOS_INTERPOLATION DESCRIPTION "enable interpolation functionality" DEFAULT ON )
+ ecbuild_add_option( FEATURE LIBEMOS_GRIBEX        DESCRIPTION "enable GRIBex functionality"        DEFAULT ON )
+ ecbuild_add_option( FEATURE LIBEMOS_TESTS_REGRESS DESCRIPTION "additional tests: regression"       DEFAULT OFF )
+-
++ecbuild_add_option( FEATURE LITTLE_ENDIAN  DESCRIPTION "Enable LITTLE_ENDIAN flag (in GRIBEX)"     DEFAULT ON )
+ 
+ ################################################################################
+ # compiler/linker flags
+@@ -256,12 +256,17 @@ list( APPEND LIBEMOS_DEFINITIONS
+   POINTER_64
+   _LARGEFILE64_SOURCE
+   _FILE_OFFSET_BITS=64
+-  LITTLE_ENDIAN
+   INTEGER_IS_INT
+   ${GRIB_API_DEFINITIONS} )
+ 
+ # FIXME: LITTLE_ENDIAN is not portable!
+ # (EMOS-172: remove this flag, only used in GRIBEX, temporarily enabled for now)
++if(ENABLE_LITTLE_ENDIAN)
++  ecbuild_add_fortran_flags("-DLITTLE_ENDIAN" BUILD RELEASE)
++  ecbuild_add_fortran_flags("-DLITTLE_ENDIAN" BUILD RELWITHDEBINFO)
++  ecbuild_add_fortran_flags("-DLITTLE_ENDIAN" BUILD RELWITHDEBINFO)
++  ecbuild_add_fortran_flags("-DLITTLE_ENDIAN" BUILD DEBUG)
++endif()
+ 
+ 
+ ################################################################################
diff --git a/debian/patches/series b/debian/patches/series
index 7c64a6f..62d8a26 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ testbuild.patch
 links-fix.patch
 disable-test-downloads.patch
 interpol_tables_path.patch
+little_endian.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/emos.git



More information about the debian-science-commits mailing list