[Pkg-haskell-commits] darcs: haskell-bloomfilter: Work around FTBFS on 32bit arches, thanks to Dejan Latinovic for the patch. Closes: #756801.

Joachim Breitner mail at joachim-breitner.de
Thu Nov 13 14:34:29 UTC 2014


Thu Nov 13 14:31:13 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Work around FTBFS on 32bit arches, thanks to Dejan Latinovic for the patch. Closes: #756801. 

    M ./changelog +7
    A ./patches/
    A ./patches/remove-roundedBits-max-conition.patch
    A ./patches/series

Thu Nov 13 14:31:13 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Work around FTBFS on 32bit arches, thanks to Dejan Latinovic for the patch. Closes: #756801. 
diff -rN -u old-haskell-bloomfilter/changelog new-haskell-bloomfilter/changelog
--- old-haskell-bloomfilter/changelog	2014-11-13 14:34:29.040799187 +0000
+++ new-haskell-bloomfilter/changelog	2014-11-13 14:34:29.056799189 +0000
@@ -1,3 +1,10 @@
+haskell-bloomfilter (2.0.0.0-2) UNRELEASED; urgency=medium
+
+  * Work around FTBFS on 32bit arches, thanks to Dejan Latinovic for the
+    patch. Closes: #756801. 
+
+ -- Joachim Breitner <nomeata at debian.org>  Thu, 13 Nov 2014 15:30:45 +0100
+
 haskell-bloomfilter (2.0.0.0-1) unstable; urgency=medium
 
   [ Joachim Breitner ]
diff -rN -u old-haskell-bloomfilter/patches/remove-roundedBits-max-conition.patch new-haskell-bloomfilter/patches/remove-roundedBits-max-conition.patch
--- old-haskell-bloomfilter/patches/remove-roundedBits-max-conition.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-bloomfilter/patches/remove-roundedBits-max-conition.patch	2014-11-13 14:34:29.048799188 +0000
@@ -0,0 +1,15 @@
+http://bugs.debian.org/756801
+
+Index: bloomfilter-2.0.0.0/Data/BloomFilter/Easy.hs
+===================================================================
+--- bloomfilter-2.0.0.0.orig/Data/BloomFilter/Easy.hs	2014-11-13 15:30:23.746100048 +0100
++++ bloomfilter-2.0.0.0/Data/BloomFilter/Easy.hs	2014-11-13 15:30:23.742099973 +0100
+@@ -72,7 +72,7 @@
+             minimum [((-k) * cap / log (1 - (errRate ** (1 / k))), k)
+                      | k <- [1..100]]
+         roundedBits = nextPowerOfTwo (ceiling bits)
+-    in if roundedBits <= 0 || roundedBits > 0xffffffff
++    in if roundedBits <= 0
+        then Left  "capacity too large to represent"
+        else Right (roundedBits, truncate hashes)
+ 
diff -rN -u old-haskell-bloomfilter/patches/series new-haskell-bloomfilter/patches/series
--- old-haskell-bloomfilter/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-bloomfilter/patches/series	2014-11-13 14:34:29.052799189 +0000
@@ -0,0 +1 @@
+remove-roundedBits-max-conition.patch




More information about the Pkg-haskell-commits mailing list