[med-svn] [staden-io-lib] 01/04: Fix FTBFS on big endian: error: invalid operands to binary
Andreas Tille
tille at debian.org
Thu Sep 28 13:16:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository staden-io-lib.
commit 7322bbf948bca357b3b26018026ca00126e974a9
Author: Andreas Tille <tille at debian.org>
Date: Thu Sep 28 16:12:17 2017 +0200
Fix FTBFS on big endian: error: invalid operands to binary
---
debian/changelog | 8 +++++++
.../0001-Bug-fix-bgzip-on-Big-Endian-systems.patch | 28 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 37 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f293230..e6d9c8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+staden-io-lib (1.14.9-3) UNRELEASED; urgency=medium
+
+ * Fix FTBFS on big endian: error: invalid operands to binary
+ (Thanks to James Bonfield and Christian Seiler)
+ Closes: #876839
+
+ -- Andreas Tille <tille at debian.org> Thu, 28 Sep 2017 16:10:01 +0200
+
staden-io-lib (1.14.9-2) unstable; urgency=medium
* Update copyright
diff --git a/debian/patches/0001-Bug-fix-bgzip-on-Big-Endian-systems.patch b/debian/patches/0001-Bug-fix-bgzip-on-Big-Endian-systems.patch
new file mode 100644
index 0000000..d5204f1
--- /dev/null
+++ b/debian/patches/0001-Bug-fix-bgzip-on-Big-Endian-systems.patch
@@ -0,0 +1,28 @@
+From: James Bonfield <jkb at sanger.ac.uk>
+Date: Thu, 28 Sep 2017 09:50:12 +0100
+Bug-Debian:
+Origin: upstream
+Subject: Bug fix bgzip on Big Endian systems.
+
+--- a/io_lib/bgzip.c
++++ b/io_lib/bgzip.c
+@@ -186,13 +186,15 @@ int gzi_index_dump(gzi *idx, const char
+ free(tmp);
+
+ int i;
+- uint64_t n = idx->n;
+- if (fwrite(le_int8(&n), sizeof(n), 1, idx_f) != 1)
++ uint64_t n = le_int8(idx->n);
++ if (fwrite(&n, sizeof(n), 1, idx_f) != 1)
+ goto fail;
+ for (i=0; i<idx->n; i++) {
+- if (fwrite(le_int8(&idx->c_off[i]), sizeof idx->c_off[i], 1, idx_f) != 1)
++ n = le_int8(idx->c_off[i]);
++ if (fwrite(&n, sizeof idx->c_off[i], 1, idx_f) != 1)
+ goto fail;
+- if (fwrite(le_int8(&idx->u_off[i]), sizeof idx->u_off[i], 1, idx_f) != 1)
++ n = le_int8(idx->u_off[i]);
++ if (fwrite(&n, sizeof idx->u_off[i], 1, idx_f) != 1)
+ goto fail;
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 730b42e..710ecaa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
pathmax.patch
+0001-Bug-fix-bgzip-on-Big-Endian-systems.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/staden-io-lib.git
More information about the debian-med-commit
mailing list