[med-svn] [lambda-align] 01/01: fix FTBFS on 32-bit archs
Sascha Steinbiss
satta at debian.org
Mon Oct 10 13:48:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
satta pushed a commit to branch master
in repository lambda-align.
commit 2fd9546c5b6d2a60b64a594811ad42ed979174bc
Author: Sascha Steinbiss <satta at debian.org>
Date: Mon Oct 10 13:48:21 2016 +0000
fix FTBFS on 32-bit archs
---
debian/changelog | 8 ++++++++
debian/patches/cast-min-initializer.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c6ffc2e..d392f1d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+lambda-align (1.0.0-3) unstable; urgency=medium
+
+ * Fix FTBFS on 32-bit platforms.
+ Thanks to Hannes Hauswedell for patch review and polishing.
+ Closes: #840027
+
+ -- Sascha Steinbiss <satta at debian.org> Mon, 10 Oct 2016 13:46:47 +0000
+
lambda-align (1.0.0-2) unstable; urgency=medium
* Set versioned dependency for libseqan2-dev.
diff --git a/debian/patches/cast-min-initializer.patch b/debian/patches/cast-min-initializer.patch
new file mode 100644
index 0000000..e61163a
--- /dev/null
+++ b/debian/patches/cast-min-initializer.patch
@@ -0,0 +1,20 @@
+Description: fix 32bit builds
+ This patch fixes FTBFS on 32-bit platforms by making sure all members
+ of an initializer list are 64-bit values. Previously these were arch-
+ dependent.
+Author: Sascha Steinbiss <sascha at steinbiss.name>
+Forwarded: https://github.com/seqan/lambda/issues/68
+Applied-Upstream: https://github.com/seqan/lambda/commit/cdb7e755af9829e26bf6e5f9ddbb07b5102038ef
+--- a/src/lambda.hpp
++++ b/src/lambda.hpp
+@@ -701,8 +701,8 @@
+ }
+
+ effectiveLength = std::min({
+- length(lH.gH.qrySeqs[m.qryId]) - effectiveQBegin,
+- length(lH.gH.subjSeqs[m.subjId]) - effectiveSBegin,
++ static_cast<uint64_t>(length(lH.gH.qrySeqs[m.qryId]) - effectiveQBegin),
++ static_cast<uint64_t>(length(lH.gH.subjSeqs[m.subjId]) - effectiveSBegin),
+ effectiveLength});
+ // std::cout << effectiveQBegin << "\t" << effectiveSBegin << "\t"
+ // << effectiveLength << "\n";
diff --git a/debian/patches/series b/debian/patches/series
index e8e5e53..f0f57ae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ cmake-seqan-modules.patch
do-not-install-separate-license-files.patch
fix-documentation.patch
force-link-rt-pthread.patch
+cast-min-initializer.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/lambda-align.git
More information about the debian-med-commit
mailing list