From 9db348d7f949e2ddc6ac137709fd2e90eef5687f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 13 Feb 2015 15:51:40 +0100 Subject: [PATCH] ghc-7.10.x: compile Setup.hs with -threaded to avoid hanging test suites Closes https://github.com/NixOS/nixpkgs/issues/6259. --- .../haskell-modules/configuration-ghc-7.10.x.nix | 8 -------- pkgs/development/haskell-modules/generic-builder.nix | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix index 6d56fd3b84db..b7999bb43368 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix @@ -62,10 +62,6 @@ self: super: { # bos/attoparsec#92 attoparsec = dontCheck super.attoparsec; - # test suite hangs silently for at least 10 minutes - ChasingBottoms = dontCheck super.ChasingBottoms; - split = dontCheck super.split; - # Test suite fails with some (seemingly harmless) error. # https://code.google.com/p/scrapyourboilerplate/issues/detail?id=24 syb = dontCheck super.syb; @@ -79,10 +75,6 @@ self: super: { # Version 1.19.5 fails its test suite. happy = dontCheck super.happy; - # Test suite hangs silently without consuming any CPU. - # https://github.com/ndmitchell/extra/issues/4 - extra = dontCheck super.extra; - # Test suite fails in "/tokens_bytestring_unicode.g.bin". alex = dontCheck super.alex; diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 303a9d7859a9..8e730fd37f03 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -88,6 +88,7 @@ let setupCompileFlags = [ (optionalString (!coreSetup) "-${packageDbFlag}=$packageConfDir") (optionalString (versionOlder "7.8" ghc.version) "-j$NIX_BUILD_CORES") + (optionalString (versionOlder "7.10" ghc.version) "-threaded") # https://github.com/haskell/cabal/issues/2398 ]; isHaskellPkg = x: (x ? pname) && (x ? version) && (x ? env);