diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-23 08:35:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-23 08:35:49 +0100 |
commit | 386855c4d1ef509c1fd32abd721589c81669613b (patch) | |
tree | 35dc984118f0a7dc2df88313d83bb5779fd12514 /dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch | |
parent | 0118ac4510d7b85ca62da20e4abd1286dd8bd752 (diff) |
gentoo auto-resync : 23:10:2023 - 08:35:49
Diffstat (limited to 'dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch')
-rw-r--r-- | dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch b/dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch new file mode 100644 index 000000000000..fca0ea238d4c --- /dev/null +++ b/dev-haskell/typed-process/files/typed-process-0.2.10.1-smp-flag.patch @@ -0,0 +1,62 @@ +From: hololeap <hololeap@protonmail.com> +Signed-off-by: hololeap <hololeap@protonmail.com> +Bug: https://github.com/fpco/typed-process/pull/60 + +This flag will toggle the use of some ghc-options in the typed-process-test +test suite. It is set to default: True. + +This is needed for tests to run on some GHC builds which do not support SMP. + +diff -urN typed-process-0.2.10.1/typed-process.cabal typed-process-0.2.10.1-r1/typed-process.cabal +--- typed-process-0.2.10.1/typed-process.cabal 2022-10-28 09:12:23.834918081 -0600 ++++ typed-process-0.2.10.1-r1/typed-process.cabal 2022-10-28 09:12:42.724917857 -0600 +@@ -1,6 +1,6 @@ + cabal-version: 1.12 + +--- This file has been generated from package.yaml by hpack version 0.34.4. ++-- This file has been generated from package.yaml by hpack version 0.35.0. + -- + -- see: https://github.com/sol/hpack + +@@ -24,6 +24,11 @@ + type: git + location: https://github.com/fpco/typed-process + ++flag smp ++ description: Use flags that depend on GHC supporting a multicore runtime (tests only) ++ manual: True ++ default: True ++ + library + exposed-modules: + System.Process.Typed +@@ -40,9 +45,9 @@ + , stm + , transformers + , unliftio-core ++ default-language: Haskell2010 + if os(windows) + cpp-options: -DWINDOWS +- default-language: Haskell2010 + + test-suite typed-process-test + type: exitcode-stdio-1.0 +@@ -52,7 +57,6 @@ + Paths_typed_process + hs-source-dirs: + test +- ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: + async >=2.0 + , base >=4.12 && <5 +@@ -66,6 +70,10 @@ + , typed-process + , unliftio-core + default-language: Haskell2010 ++ if flag(smp) ++ ghc-options: -threaded -rtsopts -with-rtsopts=-N ++ else ++ ghc-options: -threaded + + test-suite typed-process-test-single-threaded + type: exitcode-stdio-1.0 |