Skip to content

cabal install passes --disable-benchmarks to setups built with Cabal lib versions that don't know that flag #932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bos opened this issue May 24, 2012 · 2 comments · Fixed by #1133

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #942, reported by @kosmikus on 2012-04-20)

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @creswick on 2012-04-20)

This bit me because I do all my work in sandboxes, so the system-installed version of Cabal was 1.12 (which came with ghc-7.2.x, I think 1.14 is needed for --disable-benchmarks).

cabal-installing Cabal-1.14.0 to my user-package db "fixed" the problem, because that cabal was then visible when building setup.hs; however, that's an unfortunate (and non-obvious) requirement.
Explicitly specifying the build-dependencies for setup.hs would help with this, and other similar build failures enormously.

I think cabal-install makes the (implicit?) assumption that whatever version of Cabal it was built with is available when it is building setup.hs. That's not a safe assumption any longer -- it would help enormously if we could actually control the environment that setup.hs is built in; as it has /nothing/ to do with the dependencies of the actual program that you're trying to compile.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by refold on 2012-05-03)

The same probably applies to --disable-tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants