You are not logged in.

#1 2010-08-19 08:56:55

dabd
Member
Registered: 2008-11-17
Posts: 109

Problem upgrading haskell

Currently I have ghc 6.12.1-4 installed and when I try to do a global upgrade with pacman -Syu I get the following error:

error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-deepseq: requires ghc=6.12.1
:: haskell-haskell-src: requires ghc=6.12.1
:: haskell-html: requires ghc=6.12.1
:: haskell-hunit: requires ghc=6.12.1
:: haskell-parallel: requires ghc=6.12.1
:: haskell-platform: requires cabal-install=0.8.0
:: haskell-quickcheck: requires ghc=6.12.1
:: haskell-quickcheck: requires haskell-mtl=1.1.0.2-3
:: haskell-regex-base: requires ghc=6.12.1
:: haskell-regex-base: requires haskell-mtl=1.1.0.2-3
:: haskell-regex-compat: requires ghc=6.12.1
:: haskell-regex-posix: requires ghc=6.12.1
:: haskell-stm: requires ghc=6.12.1
:: haskell-stm: requires haskell-array=0.3.0.0
:: haskell-xhtml: requires ghc=6.12.1

How can I proceed with the upgrade?

Thanks.

Offline

#2 2010-08-19 09:07:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem upgrading haskell

Ignore the ghc upgrade for now - all your haskell packages need to be rebuilt for it, and that hasn't happened yet.

Offline

#3 2010-08-19 09:38:49

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Problem upgrading haskell

tomk wrote:

Ignore the ghc upgrade for now - all your haskell packages need to be rebuilt for it, and that hasn't happened yet.

I added the following line to pacman.conf but it is not working:

IgnorePkg   = ghc haskell-deepseq haskell-haskell-src haskell-html haskell-hunit haskell-parallel haskell-platform haskell-quickcheck haskell-quickcheck haskell-regex-base haskell-regex-base haskell-regex-compat haskell-regex-posix haskell-stm haskell-stm haskell-xhtml

I get the error:

error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-platform: requires cabal-install=0.8.0

Offline

#4 2010-08-21 09:50:43

l0kal
Member
Registered: 2008-02-26
Posts: 5

Re: Problem upgrading haskell

Just add haskell-platform to the IgnorePkg list and you should be fine.

Offline

#5 2010-08-21 13:18:05

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Problem upgrading haskell

If you notice the ignorepkg line I showed includes haskell-platform, and it doesn't work...

Offline

#6 2010-08-21 13:42:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem upgrading haskell

Ignore cabal-install as well as ghc. My original advice was to ignore ghc only, btw - not all the dependent packages as well.

I'd recommend that you try to gain some understanding of the issue, instead of just asking for answers all the time. The dependent packages seem to depend on a single version of ghc and/or cabal-install - presumably that is correct (I don't use any haskell apps myself) but it's also the root cause of this situation.

Also, remember that updating AUR packages is entirely your responsibility.

Offline

#7 2010-08-22 20:48:04

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: Problem upgrading haskell

thx for the info tomk!
i forgot to ignore cabal-install and only ignored ghc, but the install went through just fine as shown below:

=========
:: Synchronizing package databases...
core is up to date
extra is up to date
community                                                          394.4K  339.3K/s 00:00:01 [#######################################################] 100%
:: Starting full system upgrade...
warning: ghc: ignoring package upgrade (6.12.1-4 => 6.12.3-1)
:: Replace libelf with core/elfutils? [Y/n] y
resolving dependencies...
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-mtl"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-parsec"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-stm"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-utf8-string"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-x11"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "haskell-x11-xft"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "xmonad"
warning: ignoring package ghc-6.12.3-1
warning: cannot resolve "ghc=6.12.3", a dependency of "xmonad"
:: the following package(s) cannot be upgraded due to unresolvable dependencies:
      haskell-mtl  haskell-parsec  haskell-stm  haskell-utf8-string  haskell-x11  haskell-x11-xft  xmonad  xmonad-contrib

Do you want to skip the above package(s) for this upgrade? [y/N] y
looking for inter-conflicts...
========

and i just used cabal to install something and it all seems to work fine so i guess we're good to go for now!
thx again!


in friendship,
prad

Offline

Board footer

Powered by FluxBB