Package: haskell-streaming-commons
Version: 0.1.2-1
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


While trying to build haskell-streaming-commons on mips/mipsel architecture,
build fails on testing with an error:
> debian/hlibrary.setup test --builddir=dist-ghc
> E: Caught signal ‘Terminated’: terminating immediately
> make: *** [check-ghc-stamp] Terminated
> Build killed with signal TERM after 150 minutes of inactivity

I run test manually and test passed after more than 300 minutes.

I found patch on upstream which decreases time of test execution.
https://github.com/fpco/streaming-commons/commit/95c2675e8ed4980ab93dff5b25cfcbd43ad44307


After applying this patch,
test execution time is about 25 minutes,
and package builds successfully for mips and mipsel.
The patch is attached.

Could you please consider including this patch?

Best regards,
Dejan

diff -uNr haskell-streaming-commons-0.1.2.orig/test/Data/Streaming/TextSpec.hs haskell-streaming-commons-0.1.2/test/Data/Streaming/TextSpec.hs
--- haskell-streaming-commons-0.1.2.orig/test/Data/Streaming/TextSpec.hs        2014-04-23 12:36:00.000000000 +0000
+++ haskell-streaming-commons-0.1.2/test/Data/Streaming/TextSpec.hs     2014-05-07 15:53:33.000000000 +0000
@@ -19,7 +19,7 @@
 try' a = try $ evaluate (a `deepseq` a)
 
 spec :: Spec
-spec = describe "Data.Streaming.TextSpec" $ modifyMaxSuccess (const 10000) $ do
+spec = describe "Data.Streaming.TextSpec" $ {-modifyMaxSuccess (const 10000) $ -} do
     let test name lazy stream encodeLazy encodeStrict = describe name $ do
             prop "bytes" $ check lazy stream
             prop "chars" $ \css -> do
@@ -29,7 +29,7 @@
                     bss = L.toChunks lbs
                     wss = map S.unpack bss
                  in check lazy stream wss
-            it "high code points" $ forM_ [10, 20..50000] $ \cnt -> do
+            it "high code points" $ forM_ [100, 200..50000] $ \cnt -> do
                 let t = T.replicate cnt "\x10000"
                     bs = encodeStrict t
                 case stream bs of

Reply via email to