[osmium-tool] 01/02: Add patch to fix test failure on big endian architectures.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Tue Jul 21 20:15:11 UTC 2015


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

sebastic pushed a commit to branch master
in repository osmium-tool.

commit 2324ea5a797482d1cf25bd0a68347903af38fe29
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Jul 21 21:26:16 2015 +0200

    Add patch to fix test failure on big endian architectures.
---
 debian/changelog                              |  6 ++++
 debian/patches/big-endian-fileinfo-test.patch | 52 +++++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 59 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e95adf1..bc84c66 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+osmium-tool (1.1.1-2) UNRELEASED; urgency=medium
+
+  * Add patch to fix test failure on big endian architectures.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 21 Jul 2015 21:25:43 +0200
+
 osmium-tool (1.1.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/big-endian-fileinfo-test.patch b/debian/patches/big-endian-fileinfo-test.patch
new file mode 100644
index 0000000..59d7a0f
--- /dev/null
+++ b/debian/patches/big-endian-fileinfo-test.patch
@@ -0,0 +1,52 @@
+Description: Fix test failure on big endian architectures.
+ The CRC checksum is different on big endian architectures like mips, powerpc & s390x.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/osmcode/osmium-tool/pull/13
+
+--- /dev/null
++++ b/test/fileinfo/fi1-result-be.txt
+@@ -0,0 +1,27 @@
++File:
++  Name: fileinfo/fi1.osm
++  Format: XML
++  Compression: none
++  Size: 438
++Header:
++  Bounding boxes:
++  With history: no
++  Options:
++    generator=testdata
++    version=0.6
++Data: 
++  Bounding box: (1,1,1,3)
++  Timestamps:
++    First: 2015-01-01T01:00:00Z
++    Last: 2015-01-01T04:00:00Z
++  Objects ordered (by type and id): yes
++  Multiple versions of same object: no
++  CRC32: 1e1e05ec
++  Number of changesets: 0
++  Number of nodes: 3
++  Number of ways: 0
++  Number of relations: 0
++  Largest changeset ID: 0
++  Largest node ID: 4
++  Largest way ID: 0
++  Largest relation ID: 0
+--- a/test/fileinfo/CMakeLists.txt
++++ b/test/fileinfo/CMakeLists.txt
+@@ -12,7 +12,13 @@ endfunction()
+ 
+ #-----------------------------------------------------------------------------
+ 
+-check_fileinfo(fi1 "--extended" fi1.osm fi1-result.txt)
++include(TestBigEndian)
++test_big_endian(BIG_ENDIAN)
+ 
++if(${BIG_ENDIAN})
++    check_fileinfo(fi1 "--extended" fi1.osm fi1-result-be.txt)
++else(${BIG_ENDIAN})
++    check_fileinfo(fi1 "--extended" fi1.osm fi1-result.txt)
++endif(${BIG_ENDIAN})
+ 
+ #-----------------------------------------------------------------------------
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e01abe6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+big-endian-fileinfo-test.patch

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



More information about the Pkg-grass-devel mailing list