You are not logged in.

#1 2014-04-11 16:07:26

blubbb
Member
Registered: 2013-09-26
Posts: 59

[solved]haskell update

hello guys,

lately I tried to update my system and than that happend(I'm using xmonad as a wm):

error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: haskell-transformers: requires ghc=7.6.3-1
:: haskell-xmonad-contrib: requires ghc=7.6.3-1
:: haskell-xmonad-contrib: requires haskell-x11=1.6.1.1-5
:: haskell-xmonad-contrib: requires haskell-x11-xft=0.3.1-31
:: haskell-xmonad-contrib: requires haskell-extensible-exceptions=0.1.1.4-27
:: haskell-xmonad-contrib: requires haskell-mtl=2.1.2-27
:: haskell-xmonad-contrib: requires haskell-random=1.0.1.1-27
:: haskell-xmonad-contrib: requires haskell-utf8-string=0.3.7-27
:: haskell-xmonad-contrib: requires haskell-xmonad=0.11-7

Can you guys tell me what to do? Since I'm pretty much a noob


edit: codetags added

Last edited by blubbb (2014-04-15 14:47:07)

Offline

#2 2014-04-11 16:37:21

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,162
Website

Re: [solved]haskell update

Please use code tags in future.

Looks like you are using a custom repo which hasn't updated fully yet.

Have you looked at installing the required versions of ghc first?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-04-11 18:17:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,430

Re: [solved]haskell update

Offline

#4 2014-04-11 20:08:21

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

This problem is related to the other thread, but it's not exactly the same.

xmonad-contrib (or the version haskell-xmonad-contrib) doesn't build against the libraries in [haskell-core] right now, so there's no upgrade path. In fact, it's simply not in [haskell-core] anymore. It can be removed and xmonad will still run, but there's no way to modify xmonad.hs with it's features.

**EDIT**

Corrected repo name.

Last edited by skottish (2014-04-13 14:11:02)

Offline

#5 2014-04-12 00:54:07

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

skottish wrote:

This problem is related to the other thread, but it's not exactly the same.

xmonad-contrib (or the version haskell-xmonad-contrib) doesn't build against the libraries in [arch-haskell] right now, so there's no upgrade path. In fact, it's simply not in [arch-haskell] anymore. It can be removed and xmonad will still run, but there's no way to modify xmonad.hs with it's features.


I didn't quite undestand this whole thing, I'm quite a noob dealing with xmonad. So which features would I lose exactly when removing this package?

Offline

#6 2014-04-12 02:15:21

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

blubbb wrote:
skottish wrote:

This problem is related to the other thread, but it's not exactly the same.

xmonad-contrib (or the version haskell-xmonad-contrib) doesn't build against the libraries in [arch-haskell] right now, so there's no upgrade path. In fact, it's simply not in [arch-haskell] anymore. It can be removed and xmonad will still run, but there's no way to modify xmonad.hs with it's features.


I didn't quite undestand this whole thing, I'm quite a noob dealing with xmonad. So which features would I lose exactly when removing this package?

xmonad-contrib contains a bunch of trusted extensions for xmonad such as extra tiling and floating layouts, pretty printers for for xmobar and dzen, mouse pointer options, and a bunch more. See this for everything included:

http://hackage.haskell.org/package/xmonad-contrib

If you upgrade everything from [haskell-core] you won't be able to recompile xmonad with anything from xmonad-contrib until it gets updated. Basically, how things are now is how they're going to be until that time. But, the people that hack on xmonad are really smart and are going to update this stuff quickly, so it shouldn't take long.

**EDIT**

I should be careful on what I say as it is possible to compile only parts of xmonad-contrib. If one isn't using a particular parts of it, they don't need to be included. I have no need to rebuild xmonad right away, so I'm not in a hurry to sort out what works and what doesn't.

**EDIT 2**

Corrected repo name.

Last edited by skottish (2014-04-13 14:10:29)

Offline

#7 2014-04-13 14:09:57

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

There was an upload of haskell-xmonad-contrib to [haskell-core]. I didn't see any upstream changes, so I don't know what was done to get it out in the world... not that my Haskell is particularly strong to begin with.

Offline

#8 2014-04-14 16:03:48

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

So in order to get a systemupdate again I need to remove the haskell-xmonad-contrib and even the haskell-transformer since they both rely on an old version of ghc? And I won't be able to recompile my xmonad sources anymore?
Can't I just ignore these two packages for the update so I don't need to remember reinstalling them?

Last edited by blubbb (2014-04-14 16:04:54)

Offline

#9 2014-04-14 16:19:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

haskell-xmonad-contrib from [haskell-core] was updated and it seems to work. I was able to recompile xmonad, there were no complaints, and it runs. So, what happens if you try to update now with haskell-xmonad-contrib installed?

Last edited by skottish (2014-04-14 16:28:31)

Offline

#10 2014-04-14 18:53:57

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: haskell-transformers: requires ghc=7.6.3-1
:: haskell-xmonad-contrib: requires ghc=7.6.3-1
:: haskell-xmonad-contrib: requires haskell-x11=1.6.1.1-5
:: haskell-xmonad-contrib: requires haskell-x11-xft=0.3.1-31
:: haskell-xmonad-contrib: requires haskell-extensible-exceptions=0.1.1.4-27
:: haskell-xmonad-contrib: requires haskell-mtl=2.1.2-27
:: haskell-xmonad-contrib: requires haskell-random=1.0.1.1-27
:: haskell-xmonad-contrib: requires haskell-utf8-string=0.3.7-27
:: haskell-xmonad-contrib: requires haskell-xmonad=0.11-7

Offline

#11 2014-04-14 19:20:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

haskell-transformers you'll probably just need to remove, but I don't understand why the older version of haskell-xmonad-contrib is still stuck. Please post the output of:

pacman -Ss ghc

Offline

#12 2014-04-15 14:03:47

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

haskell-core/ghc 7.8.2-1 [Installiert: 7.6.3-1]
    The Glasgow Haskell Compiler
haskell-core/haskell-ghc-mod 4.0.2-2
    Happy Haskell Programming
haskell-core/haskell-ghc-paths 0.1.0.9-55
    Knowledge of GHC's installation directories
haskell-core/haskell-ghc-syb-utils 0.2.1.2-55
    Scrap Your Boilerplate utilities for the GHC API.
haskell-core/haskell-system-fileio 0.3.12-59
    Consistent filesystem interaction across GHC versions
extra/ghc 7.6.3-1 [Installiert]
    The Glasgow Haskell Compiler
community/haskell-extensible-exceptions 0.1.1.4-5 [Installiert: 0.1.1.4-27]
    extensible exceptions for both new and old versions of GHC
community/haskell-ghc-paths 0.1.0.9-3
    Knowledge of GHC's installation directories

Seems like the one I've installed is the extra repository while the new version would be in the haskell-code repo. Can I somehow tell pacman to choose the other one or would that be a bad idea?

Offline

#13 2014-04-15 14:15:40

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

The way to do it is to put [haskell-core] above [extra] in /etc/makepkg.conf. I found in the past that mixing libraries from the two repos was causing problems with packages being installed and removed gracefully, so I removed everything that I had from the Arch repos and reinstalled all of it from [haskell-core]. I highly recommend only using packages from one repo or another. So, my advice is as follows:

If you only have haskell packages installed to use xmonad, I would comment out [haskell-core] in pacman.conf and use only the official repo packages. If you need a deeper library of haskell packages, then I would only use the stuff from [haskell-core]. Either way, I would consider removing all haskell related packages and reinstalling them just to make sure that everything is consistent.

Offline

#14 2014-04-15 14:19:16

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

skottish wrote:

The way to do it is to put [haskell-core] above [extra] in /etc/makepkg.conf. I found in the past that mixing libraries from the two repos was causing problems with packages being installed and removed gracefully, so I removed everything that I had from the Arch repos and reinstalled all of it from [haskell-core]. I highly recommend only using packages from one repo or another. So, my advice is as follows:

If you only have haskell packages installed to use xmonad, I would comment out [haskell-core] in pacman.conf and use only the official repo packages. If you need a deeper library of haskell packages, then I would only use the stuff from [haskell-core]. Either way, I would consider removing all haskell related packages and reinstalling them just to make sure that everything is consistent.

I only needed them to use xmonad, so I'll just comment out the haskell-core repo. Do I need to to anything else like remove everything from that repo?

Offline

#15 2014-04-15 14:25:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

I wouldn't worry about removing ghc right now, but I would first try and remove 'haskell-xmonad' and replace it with 'xmonad'. You should do this from the console and not from within X. So:

pacman -Rsc haskell-xmonad

pacman -Suy xmonad-contrib

Watch the output of pacman to see if there are any errors. There shouldn't be any issues.

Last edited by skottish (2014-04-15 14:26:44)

Offline

#16 2014-04-15 14:35:27

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

skottish wrote:

I wouldn't worry about removing ghc right now, but I would first try and remove 'haskell-xmonad' and replace it with 'xmonad'. You should do this from the console and not from within X. So:

pacman -Rsc haskell-xmonad

pacman -Suy xmonad-contrib

Watch the output of pacman to see if there are any errors. There shouldn't be any issues.


Just did that, this was the output:

xmonad-contrib-0.11.2: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib-0.11.2/html/xmonad-contrib.haddock doesn't exist or isn't a file
xmonad-contrib-0.11.2: Warning: haddock-html: /usr/share/doc/xmonad-contrib-0.11.2/html doesn't exist or isn't a directory

So I'm just missing some docs?

Offline

#17 2014-04-15 14:41:47

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,931

Re: [solved]haskell update

If you install haddock, that error *should* go away. Although, I'm not sure if it's strictly necessary as ghc has an internal version.

I did forget one thing. You may be using XFT related stuff in your xmonad configuration, so I would install haskell-x11-xft as well.

Offline

#18 2014-04-15 14:46:52

blubbb
Member
Registered: 2013-09-26
Posts: 59

Re: [solved]haskell update

skottish wrote:

If you install haddock, that error *should* go away. Although, I'm not sure if it's strictly necessary as ghc has an internal version.

I did forget one thing. You may be using XFT related stuff in your xmonad configuration, so I would install haskell-x11-xft as well.


Ok just did that.

Thanks a lot for your help!

Offline

Board footer

Powered by FluxBB