[Hackage] #568: option -b has no effect

#568: option -b has no effect ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- once upon a time cabal had a very useful option the -b option, which you could use to change the directory in which the build was performed, a useful capability when you are in the process of transitioning from one version of ghc to another as it enables you to (without interference) maintain multiple builds from the one source directory, for example .... {{{ runghc setup configure -b.\dist\build\ghc\6.8.2 .... runghc setup build ... runghc setup configure -b.\dist\build\ghc\6.10.4 ... runghc setup build ... runghc setup configure -b.\dist\build\hugs ... }}} the effect of the above should be to build in the subdirectory nominated relative to the current root, what in fact happens is cabal will build in the same old directory it always does: dist\build\.... this option seems to have disappeared from cabal some time ago, it would (IMHO) be very usefule to have it re-introduced. In actual fact, the option is still recognised, it just dosn't work anymore, i.e. it has no effect! -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/568 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#568: option -b has no effect ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: wontfix Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => wontfix Comment: From looking at old versions, it seems that the `-b`/`--scratchdir` option specified the build dir in Cabal-1.1.4 but from at least 1.2 onwards it only specified the scratch dir which is only used by hugs. It's certainly documented as such. The reason it appears not to do anything for you is that you are using ghc not hugs. We're planning to remove the `--scratchdir` since we now have the more general option `--builddir` (which defaults to `dist`). So I suggest you use the `--builddir` option. So I'm closing this ticket. If the `--builddir` doesn't do what you need then either re-open this ticket or file a new one. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/568#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage