cabal-bug-1087
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Wed, 1 Apr 2015 11:35:10 +0000 (11:35 +0000)
committerJoachim Breitner <nomeata@debian.org>
Wed, 1 Apr 2015 11:35:10 +0000 (11:35 +0000)
 Preprocessed files would be written to dist/build instead of
 dist/build/my-test-suite/my-test-suite-tmp, causing them not to be
 found during compilation.

 Fixes #1087.
Author: Johan Tibell <johan.tibell@gmail.com>
Origin: https://github.com/haskell/cabal/commit/dd691fa6791d67981388ec044b28343879d8c2b1

Gbp-Pq: Name cabal-bug-1087.patch

libraries/Cabal/Cabal/Distribution/Simple/PreProcess.hs

index 0c6cb3e6b3577cc526f13cf400b53f5603fc781d..ad9df9f96752ff8735e81b6b65e1fae2e5a11e75 100644 (file)
@@ -232,7 +232,7 @@ preprocessComponent pd comp lbi isSrcDist verbosity handlers = case comp of
     preProcessComponent bi modules exePath dir = do
         let biHandlers = localHandlers bi
             sourceDirs = hsSourceDirs bi ++ [ autogenModulesDir lbi ]
-        sequence_ [ preprocessFile sourceDirs (buildDir lbi) isSrcDist
+        sequence_ [ preprocessFile sourceDirs dir isSrcDist
                 (ModuleName.toFilePath modu) verbosity builtinSuffixes
                 biHandlers
                 | modu <- modules ]