summaryrefslogtreecommitdiff
path: root/p/haskell-bloomfilter
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-11-13 17:31:13 +0300
committerJoachim Breitner <mail@joachim-breitner.de>2014-11-13 17:31:13 +0300
commit6ce2b060924af03f5deba216bf72b919aa81a257 (patch)
tree8d5dd7736782f98a3eb3ac8fec5173759ab4eafd /p/haskell-bloomfilter
parentacc355ad8837fb868cad700ec42404df59015635 (diff)
downloadDHG_packages-6ce2b060924af03f5deba216bf72b919aa81a257.tar.gz
haskell-bloomfilter: Work around FTBFS on 32bit arches, thanks to Dejan Latinovic for the patch. Closes: #756801.
Diffstat (limited to 'p/haskell-bloomfilter')
-rw-r--r--p/haskell-bloomfilter/debian/changelog7
-rw-r--r--p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch14
-rw-r--r--p/haskell-bloomfilter/debian/patches/series1
3 files changed, 22 insertions, 0 deletions
diff --git a/p/haskell-bloomfilter/debian/changelog b/p/haskell-bloomfilter/debian/changelog
index d97eff0d4..9043171d1 100644
--- a/p/haskell-bloomfilter/debian/changelog
+++ b/p/haskell-bloomfilter/debian/changelog
@@ -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@debian.org> Thu, 13 Nov 2014 15:30:45 +0100
+
haskell-bloomfilter (2.0.0.0-1) unstable; urgency=medium
[ Joachim Breitner ]
diff --git a/p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch b/p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch
new file mode 100644
index 000000000..51ec4f6e8
--- /dev/null
+++ b/p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch
@@ -0,0 +1,14 @@
+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 --git a/p/haskell-bloomfilter/debian/patches/series b/p/haskell-bloomfilter/debian/patches/series
new file mode 100644
index 000000000..af1600ea4
--- /dev/null
+++ b/p/haskell-bloomfilter/debian/patches/series
@@ -0,0 +1 @@
+remove-roundedBits-max-conition.patch