Broken packages after upgrading to Ubuntu 13.04

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Broken packages after upgrading to Ubuntu 13.04

Johannes Engels
Hello, using the OS-specific Haskell packages of the Ubuntu distribution,
I have some cabal packages installed in addition, e.g. hmatrix etc.
After an upgrade to Ubuntu 13.04 most of these cabal packages are broken
because some dependencies do not exist anymore or have been upgraded also,
respectively. With ghc-pkg check I get messages like

There are problems in package hmatrix-0.14.0.1:
   dependency "array-0.4.0.0-0b32f6f98c0297dbb0e5cfc0087bd1f0" doesn't exist
   dependency "base-4.5.0.0-c8e7184681d410015e93df85fc49e9dd" doesn't exist
....

Actually now array-0.4.0.1 is installed etc.
What is the recommended way to repair this? Should I do a --reinstall of
the cabal packages (which should mostly also work with the upgraded
dependencies)? Any hint would be welcome!
Best regards
Johannes Engels




Reply | Threaded
Open this post in threaded view
|

Broken packages after upgrading to Ubuntu 13.04

Daniel Fischer
On Tuesday 30 April 2013, 10:05:28, Johannes Engels wrote:

> Hello, using the OS-specific Haskell packages of the Ubuntu distribution,
> I have some cabal packages installed in addition, e.g. hmatrix etc.
> After an upgrade to Ubuntu 13.04 most of these cabal packages are broken
> because some dependencies do not exist anymore or have been upgraded also,
> respectively. With ghc-pkg check I get messages like
>
> There are problems in package hmatrix-0.14.0.1:
>    dependency "array-0.4.0.0-0b32f6f98c0297dbb0e5cfc0087bd1f0" doesn't exist
> dependency "base-4.5.0.0-c8e7184681d410015e93df85fc49e9dd" doesn't exist
> ....
>
> Actually now array-0.4.0.1 is installed etc.
> What is the recommended way to repair this? Should I do a --reinstall of
> the cabal packages (which should mostly also work with the upgraded
> dependencies)? Any hint would be welcome!

You have a different version of array, so you most likely have a different
version of GHC. That means you have to rebuild your cabal packages.

Check with the --dry-run flag first,

$ cabal install world --dry-run

whether cabal finds a consistent install plan.

But that ghc-pkg check searches the package-db of the previous version
irritates me. It should see that that is from an older version and ignore it.

> Best regards
> Johannes Engels


Reply | Threaded
Open this post in threaded view
|

Broken packages after upgrading to Ubuntu 13.04

Roger Mason
In reply to this post by Johannes Engels
Hello,

On 04/30/2013 05:35 AM, Johannes Engels wrote:

> Hello, using the OS-specific Haskell packages of the Ubuntu distribution,
> I have some cabal packages installed in addition, e.g. hmatrix etc.
> After an upgrade to Ubuntu 13.04 most of these cabal packages are broken
> because some dependencies do not exist anymore or have been upgraded
> also,
> respectively. With ghc-pkg check I get messages like
>
> There are problems in package hmatrix-0.14.0.1:
>   dependency "array-0.4.0.0-0b32f6f98c0297dbb0e5cfc0087bd1f0" doesn't
> exist
>   dependency "base-4.5.0.0-c8e7184681d410015e93df85fc49e9dd" doesn't
> exist
> ....
>
> Actually now array-0.4.0.1 is installed etc.
> What is the recommended way to repair this? Should I do a --reinstall of
> the cabal packages (which should mostly also work with the upgraded
> dependencies)? Any hint would be welcome!
> Best regards
> Johannes Engels
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
Something similar happened to me recently.  here is the beginning of the
thread on Haskell-Cafe that provided the solution:
*gmane.comp.lang.haskell.cafe:104248
<http://article.gmane.org/gmane.comp.lang.haskell.cafe/104248/match=>

*Hope it works for you.*

*Cheers,
Roger*
*

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130430/4897740e/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Broken packages after upgrading to Ubuntu 13.04

Benjamin Jones
In reply to this post by Johannes Engels
I haven't looked at the non-GHC haskell packages in ubuntu (I install a
bdist GHC, which includes cabal-install, and use that or cabal-dev to
install deps) but note that GHC went from7.4.x to 7.6.x between ubuntu
12.10 and 13.03 and so it wouldn't be surprising if this alone caused build
failures of some modules.

--
Benjamin Jones
benjaminfjones at gmail.com


On Tue, Apr 30, 2013 at 1:05 AM, Johannes Engels <
johannes.engels at hft-stuttgart.de> wrote:

> Hello, using the OS-specific Haskell packages of the Ubuntu distribution,
> I have some cabal packages installed in addition, e.g. hmatrix etc.
> After an upgrade to Ubuntu 13.04 most of these cabal packages are broken
> because some dependencies do not exist anymore or have been upgraded also,
> respectively. With ghc-pkg check I get messages like
>
> There are problems in package hmatrix-0.14.0.1:
>   dependency "array-0.4.0.0-**0b32f6f98c0297dbb0e5cfc0087bd1**f0" doesn't
> exist
>   dependency "base-4.5.0.0-**c8e7184681d410015e93df85fc49e9**dd" doesn't
> exist
> ....
>
> Actually now array-0.4.0.1 is installed etc.
> What is the recommended way to repair this? Should I do a --reinstall of
> the cabal packages (which should mostly also work with the upgraded
> dependencies)? Any hint would be welcome!
> Best regards
> Johannes Engels
>
>
>
> ______________________________**_________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130430/ec2e05f6/attachment.htm>