[med-svn] [pbseqlib] 03/05: Fix build on 32-bit (or at least i386)

Afif Elghraoui afif-guest at moszumanska.debian.org
Mon Dec 14 04:07:33 UTC 2015


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

afif-guest pushed a commit to branch master
in repository pbseqlib.

commit 2257dca45f62c1981090198ddf760e75b062b972
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sun Dec 13 19:29:32 2015 -0800

    Fix build on 32-bit (or at least i386)
    
    Closes: #807583
---
 debian/patches/32bit-narrowing-conversion.patch | 22 ++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/32bit-narrowing-conversion.patch b/debian/patches/32bit-narrowing-conversion.patch
new file mode 100644
index 0000000..cbbe19e
--- /dev/null
+++ b/debian/patches/32bit-narrowing-conversion.patch
@@ -0,0 +1,22 @@
+Description: Patch to fix narrowing conversion problem seen on 32-bit architectures
+ These changes were suggested by Aaron Ucko and allow for
+ successful building on i386.
+Author: Afif Elghraoui <afif at ghraoui.name>
+Bug: https://github.com/PacificBiosciences/blasr_libcpp/issues/108
+Last-Update: 2015-12-13
+--- pbseqlib.orig/alignment/tuples/TupleMask.h
++++ pbseqlib/alignment/tuples/TupleMask.h
+@@ -1,10 +1,12 @@
+ #ifndef TUPLES_TUPLE_MASK
+ #define TUPLES_TUPLE_MASK
++
++#include <stdint.h>
+ //
+ // Each f is conveniently 2 bases.
+ //
+ //                     
+-static unsigned long TupleMask[] = {0, 0xf, 0xff, 0xfff, 0xffff, 0xfffff, 0xffffff,  // 0 - 6
++static uint64_t TupleMask[] = {0, 0xf, 0xff, 0xfff, 0xffff, 0xfffff, 0xffffff,  // 0 - 6
+                                   0xfffffff, 0xfffffff, 0xffffffff, 0xfffffffff,   // 7 - 9
+                                   0xffffffffff, 0xfffffffffff, 0xffffffffffff,     // 10-12
+                                   0xfffffffffffff, 0xffffffffffffff, 0xfffffffffffffff, // 13-15
diff --git a/debian/patches/series b/debian/patches/series
index f9d5b71..59ff228 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 external-gtest.patch
 exclude-pbbam.patch
+32bit-narrowing-conversion.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pbseqlib.git



More information about the debian-med-commit mailing list