Cabal --builddir

Duncan Coutts duncan.coutts at
Wed Feb 25 09:16:07 EST 2009

On Wed, 2009-02-25 at 13:42 +0000, Neil Mitchell wrote:
> Hi
> >> My cabal.exe comes from the hackage website, the binary you put up
> >> some time ago. I guess that is probably the issue.
> >
> > What version is that then?
> >
> > I'm interested because we've not actually worked out why the problem was
> > occurring.
> We still haven't since I'm now not able to replicate the problem...
> My best guess is that I had Cabal old installed, which didn't support
> --builddir. I upgraded to Cabal new which did. Cabal install had
> cached the Setup.exe program built before the upgrade so that the
> Setup.exe still used Cabal old. Now, when I try again today, it picks
> up Cabal new.

Yes that's quite plausible. It forgets what version of Cabal was used to
build Setup. So it's not rebuilt if it changes.

> I guess there is a potential bug that cabal install should perhaps
> rebuild setup.exe if the cabal version has changed, but that might be
> difficult to track and is very much a corner case.

Right. It's not that tricky though. We'd have to record another state
file in dist/setup/.

> >> everything. However, I'd like to know (before I push a change) that
> >> build-type:Simple will work out the box with the Cabal that got
> >> installed with ghc-6.8.3.
> >
> > It will.
> Fantastic. If I break everyones build, I'm blaming you :-)

Heh. I'm confident. :-)


More information about the cabal-devel mailing list