Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Version of Cabal lib used to build Setup.hs is not tracked. #506

Closed
bos opened this Issue · 1 comment

2 participants

@bos
Owner

(Imported from Trac #513, reported by @dcoutts on 2009-02-27)

Neil ran into these symptoms:

Cabal documents itself as having a --builddir command to
change the placement of dist stuff, which is fantastic.
However, running with GHC 6.8.3, Cabal 1.6.0.2, I get:
cabal build --builddir=../../../_make/Tools/ext/haddock-0.9/dist
setup.exe: Unrecognised flags:
--builddir=../../../_make/Tools/ext/haddock-0.9/dist
i.e. cabal accepts the --builddir command, but the setup
that cabal builds doesn't. Why?
Turns out it was because the Setup executable had been compiled previously using an older Cabal lib that did not understand the --builddir flag.

Two things are needed to fix this, one is a proper checked specification of the command line interface so that cabal-install always knows what flags the Setup supports. The other is to track the version of the Cabal lib used to build the Setup and to recompile it if that changes.

Note that this should happen automagically if we use a proper dependency tracking framework. In the mean time it'd require keeping an extra state file in dist/setup.

@tibbe
Owner

Closing as there's been no activity in years.

We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.

@tibbe tibbe closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.