[netcdf] 02/04: Add patch to fix FTBFS on big-endian architectures.

Bas Couwenberg sebastic at debian.org
Thu Jan 25 21:21:23 UTC 2018


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

sebastic pushed a commit to branch master
in repository netcdf.

commit d700450c84b474734721fb62c89c38385be9f4ce
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Thu Jan 25 22:04:43 2018 +0100

    Add patch to fix FTBFS on big-endian architectures.
---
 debian/changelog                |  1 +
 debian/patches/big-endian.patch | 15 +++++++++++++++
 debian/patches/series           |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3125c46..047b00b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 netcdf (1:4.6.0-2) UNRELEASED; urgency=medium
 
   * Bump minimum required CMake version to 3.6.1.
+  * Add patch to fix FTBFS on big-endian architectures.
 
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 25 Jan 2018 21:21:25 +0100
 
diff --git a/debian/patches/big-endian.patch b/debian/patches/big-endian.patch
new file mode 100644
index 0000000..5a8234d
--- /dev/null
+++ b/debian/patches/big-endian.patch
@@ -0,0 +1,15 @@
+Description: Fix build failure on big-endian architectures.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/Unidata/netcdf-c/issues/806
+
+--- a/libdispatch/dfilter.c
++++ b/libdispatch/dfilter.c
+@@ -156,7 +156,7 @@ NC_parsefilterspec(const char* spec, uns
+ 	    /* convert to network byte order */
+ 	    memcpy(mem,&val64u,sizeof(mem));
+ #ifdef WORDS_BIGENDIAN	    
+-	    byteswap8(mem);  /* convert big endian to little endian */
++	    NC_byteswap8(mem);  /* convert big endian to little endian */
+ #endif
+ 	    vector = (unsigned int*)mem;
+ 	    ulist[nparams++] = vector[0];
diff --git a/debian/patches/series b/debian/patches/series
index bf960a3..ffceee2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ privacy-breach-logo.patch
 hdf5-library-path.patch
 tst_fileinfo-link-hdf5.patch
 reproducible-settings.patch
+big-endian.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf.git



More information about the Pkg-grass-devel mailing list