On Thu, 2007-12-06 at 16:42 +0000, Simon Marlow wrote:
> Valery V. Vorotyntsev wrote:
> > On 12/5/07, Simon Marlow <[EMAIL PROTECTED]> wrote:
> >> The only thing I can think of is that you might have dangling dependencies
> >> between the packages in your user database and the global database.  Could
> >> you do 'ghc-pkg field X11 depends' and 'ghc-pkg field mtl depends'?
> > 
> > $ ghc-pkg field X11 depends
> > depends: base-3.0
> > $ ghc-pkg field mtl depends
> > depends: base-3.0
> > 
> 
> This turns out to be something that broke when I changed the command-line 
> syntax of ghc-pkg in the HEAD.
> 
> Attached is a patch that fixes it in Cabal.  Ian - could you validate and 
> get this patch into the Cabal that ships with 6.8.2, if possible?

I don't follow. The ghc-pkg changes were only in ghc-6.9, so why patch
the Cabal that ships with 6.8.2 (surely .3 ?). Note also that we already
have a similar patch in Cabal HEAD. The current code is:

 packageDbGhcPkgFlag GlobalPackageDB          = ["--global"]
 packageDbGhcPkgFlag UserPackageDB            = ["--global", "--user"]
 packageDbGhcPkgFlag (SpecificPackageDB path) = ["--global",
                                                 "--package-conf=" ++ path]

I don't know if this patch has been pushed to the Cabal branch that ghc
HEAD uses.

Duncan

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to