On Fri, 2008-09-19 at 16:43 +0100, Mitchell, Neil wrote: > Hi Ian, > > > > If I darcs get the time library, using a GHC binary distribution, > > > isn't runhaskell Setup configure/build/install sufficient? > > I thought > > > Cabal was meant to do this magic for me. I realise when building > > > in-tree time configure based things are required. > > > > No: Building the time package requires running the configure script. > > Cabal knows how to run the configure script, but not how to > > generate it, and the darcs repo doesn't include the configure > > script as it's a generated file. > > Ah, that makes sense. Is there any chance Cabal could scream loudly > about lacking the necessary file, and ideally tell me how to fix it, > rather than successfully configure/building 23 out of 24 source files > before falling over?
Yes. Recent Cabal have build-type: Configure or if you're using build-type: Custom then you can use autoconfUserHooks rather than the old defaultUserHooks. defaultUserHooks used to run ./configure but if it was not there then it'd just carry one. That's because it was supposed to cover both the default case and the autoconf case (and most annoyingly of all defaultUserHooks was not actually the default). However as you note that's no good so they're now split into simpleUserHooks and autoconfUserHooks. The defaultUserHooks is deprecated however I expect the time package is still using it, hence your problem. Duncan _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
