[med-svn] [htslib] 01/02: Apply patch provided by Graham Inggs <ginggs at debian.org> to fix FTBFS on armel armhf and ppc64el of bcftools
Andreas Tille
tille at debian.org
Wed Nov 8 07:29:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch debian/unstable
in repository htslib.
commit 49237dbfb4150b6e5ec998198eae724f63c378ff
Author: Andreas Tille <tille at debian.org>
Date: Wed Nov 8 08:22:42 2017 +0100
Apply patch provided by Graham Inggs <ginggs at debian.org> to fix FTBFS on armel armhf and ppc64el of bcftools
---
debian/changelog | 8 ++++++++
debian/patches/877670.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 33 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c48d04c..08fca08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+htslib (1.5-2) UNRELEASED; urgency=medium
+
+ * Apply patch provided by Graham Inggs <ginggs at debian.org> to fix FTBFS
+ on armel armhf and ppc64el of bcftools
+ Closes: #877670
+
+ -- Andreas Tille <tille at debian.org> Wed, 08 Nov 2017 08:21:37 +0100
+
htslib (1.5-1) unstable; urgency=medium
* Team upload
diff --git a/debian/patches/877670.patch b/debian/patches/877670.patch
new file mode 100644
index 0000000..b03f067
--- /dev/null
+++ b/debian/patches/877670.patch
@@ -0,0 +1,24 @@
+Description: Fix calculation of PLs on ARM and POWER
+Bug: https://github.com/samtools/bcftools/issues/702
+Bug-Debian: https://bugs.debian.org/877670
+Forwarded: https://github.com/samtools/htslib/pull/617
+Author: Graham Inggs <ginggs at debian.org>
+Last-Update: 2017-11-08
+--- a/errmod.c
++++ b/errmod.c
+@@ -82,10 +82,11 @@ static void cal_coef(errmod_t *em, doubl
+ double le1 = log(1.0 - e);
+ for (n = 1; n <= 255; ++n) {
+ double *beta = em->beta + (q<<16|n<<8);
+- sum1 = sum = 0.0;
+- for (k = n; k >= 0; --k, sum1 = sum) {
+- sum = sum1 + expl(lC[n<<8|k] + k*le + (n-k)*le1);
+- beta[k] = -10. / M_LN10 * logl(sum1 / sum);
++ sum1 = lC[n<<8|n] + n*le;
++ beta[n] = INFINITY;
++ for (k = n - 1; k >= 0; --k, sum1 = sum) {
++ sum = sum1 + log1pl(expl(lC[n<<8|k] + k*le + (n-k)*le1 - sum1));
++ beta[k] = -10. / M_LN10 * (sum1 - sum);
+ }
+ }
+ }
diff --git a/debian/patches/series b/debian/patches/series
index a009da5..44fc2c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ literal_version.patch
fix_pkg-config.patch
htslib-add-cram_to_bam.patch
fPIC.patch
+877670.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git
More information about the debian-med-commit
mailing list