Broken dependencies on cabal install haddock

Hi everyone, So I just grabbed the cabal and cabal-install tarballs and got them build without trouble. I thought I'd try it out by installing haddock but I get the following rather nonsensical output: ------------------------------------------------------------------------------------------------------ dave@eliza:~$ cabal --version cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2 ------------------------------------------------------------------------------------------------------ I assume I'm not alone in thinking that 6.8.2 >= 6.8.2 is true? :) Cheers, Dave

On Wed, Feb 04, 2009 at 10:52:32PM +0000, Dave Tapley wrote:
dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
There is also a library package called ghc.

2009/2/4 Ross Paterson
On Wed, Feb 04, 2009 at 10:52:32PM +0000, Dave Tapley wrote:
dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
There is also a library package called ghc.
Which should be installed if you have the compiler. Hmm. David

On Thu, 2009-02-05 at 00:03 +0100, David Waern wrote:
2009/2/4 Ross Paterson
: On Wed, Feb 04, 2009 at 10:52:32PM +0000, Dave Tapley wrote:
dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
There is also a library package called ghc.
Which should be installed if you have the compiler. Hmm.
If the package is broken due to missing dependencies then cabal-install ignores it. It's on my TODO list to make it report more clearly the fact that it needed a package that is broken (ie instead of removing the broken packages from the set of installed packages, add a constraint not to use that version and when we get a constraint conflict with we can report a more helpful message). Dave, you can confirm if the ghc package is broken by running ghc-pkg check. Duncan

Hey Duncan,
Thanks for the fast reply / sorry about my slow one!
The next instalment:
dave@eliza:~$ ghc-pkg check
package ghc-6.8.2 has missing dependencies:
Cabal-1.2.3.0
Which is interesting, no?
Dave,
2009/2/4 Duncan Coutts
On Thu, 2009-02-05 at 00:03 +0100, David Waern wrote:
2009/2/4 Ross Paterson
: On Wed, Feb 04, 2009 at 10:52:32PM +0000, Dave Tapley wrote:
dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
There is also a library package called ghc.
Which should be installed if you have the compiler. Hmm.
If the package is broken due to missing dependencies then cabal-install ignores it. It's on my TODO list to make it report more clearly the fact that it needed a package that is broken (ie instead of removing the broken packages from the set of installed packages, add a constraint not to use that version and when we get a constraint conflict with we can report a more helpful message).
Dave, you can confirm if the ghc package is broken by running ghc-pkg check.
Duncan

On Tue, 2009-02-17 at 16:03 +0000, Dave Tapley wrote:
Hey Duncan,
Thanks for the fast reply / sorry about my slow one! The next instalment:
dave@eliza:~$ ghc-pkg check package ghc-6.8.2 has missing dependencies: Cabal-1.2.3.0
Which is interesting, no?
Indeed. It looks like you accidentally unregistered Cabal-1.2.3.0, which breaks dependent packages (ghc-6.8.2). Unfortunately you cannot fix this by re-installing Cabal-1.2.3.0. You cannot guarantee that you'll get the exact same ABI. You either need to re-register the original version (the actual files are almost certainly still installed) or re-install ghc. If you're on debian or gentoo then you're in luck as they both provide a backup of the original package.conf as package.conf.shipped. This will let you re-register the original by: $ ghc-pkg describe Cabal-1.2.3.0 -f package.conf.shipped > pkg $ ghc-pkg register pkg In ghc-6.10 it's be a bit harder to break packages by unregistering their dependencies. ghc-pkg unregister now complains and makes you use --force if you really do want to break dependencies. Duncan
Dave,
2009/2/4 Duncan Coutts
: On Thu, 2009-02-05 at 00:03 +0100, David Waern wrote:
2009/2/4 Ross Paterson
: On Wed, Feb 04, 2009 at 10:52:32PM +0000, Dave Tapley wrote:
dave@eliza:~$ cabal install haddock Resolving dependencies... cabal: cannot configure haddock-2.4.1. It requires ghc >=6.8.2 && <6.13 There is no available version of ghc that satisfies >=6.8.2 && <6.13 dave@eliza:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
There is also a library package called ghc.
Which should be installed if you have the compiler. Hmm.
If the package is broken due to missing dependencies then cabal-install ignores it. It's on my TODO list to make it report more clearly the fact that it needed a package that is broken (ie instead of removing the broken packages from the set of installed packages, add a constraint not to use that version and when we get a constraint conflict with we can report a more helpful message).
Dave, you can confirm if the ghc package is broken by running ghc-pkg check.
Duncan
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
participants (4)
-
Dave Tapley
-
David Waern
-
Duncan Coutts
-
Ross Paterson