You are not logged in.

#1 2010-01-14 20:14:09

eyescream
Member
Registered: 2009-08-24
Posts: 49

[Solved] xmonad and ghc

Hello!

I've just upgraded ghc and got the following:

    ==> Unregistering cabalized packages...
    ==> Done.
warning: /usr/lib/ghc-6.10.4/package.conf saved as /usr/lib/ghc-6.10.4/package.conf.pacsave
( 8/19) upgrading ghc                                 [##############################################] 100%
    ==> All cabalized and yaourt-installed packages need to be reinstalled now.
    ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.
ghc-pkg: cannot find package utf8-string-0.3.5
error: command failed to execute correctly
( 9/19) upgrading haskell-utf8-string                 [##############################################] 100%
Reading package info from stdin ... done.
error: command failed to execute correctly
(10/19) upgrading haskell-x11                         [##############################################] 100%
Reading package info from stdin ... done.
ghc-pkg: cannot find package X11-xft-0.3
error: command failed to execute correctly
(11/19) upgrading haskell-x11-xft                     [##############################################] 100%
Reading package info from stdin ... done.
[~] pacman -Qs haskell 
local/ghc 6.12.1-2
    The Glasgow Haskell Compiler
local/haskell-utf8-string 0.3.6-2.1
    Support for reading and writing UTF8 Strings
local/haskell-x11 1.5.0.0-1
    A Haskell binding to the X11 graphics library.
local/haskell-x11-xft 0.3-11
    Bindings to the Xft, X Free Type interface library, and some Xrender parts
local/xmonad 0.9-2
    A lightweight X11 tiled window manager written in Haskell

I have looked through other threads in which it was said one needs to register the packages with the new ghc version through the register script.
However, I am unsure as to how to do that and I have not encountered any problems nor have I received any error messages.
I am not using the testing repository.

What exactly is it that I have to do?

Last edited by eyescream (2010-01-16 15:29:39)

Offline

#2 2010-01-14 23:38:35

goddesse
Member
Registered: 2009-08-03
Posts: 13

Re: [Solved] xmonad and ghc

If those were the only packages depending on GHC that you had on your system, then you aren't required to do anything. They've already been built with the new version and registered appropriately.

If you have other Haskell packages from the AUR or things you've installed locally with Cabal, then you need to uninstall and rebuild all of them again (using Yaourt is fine if you have nothing but packages from the AUR.) Just be aware that some packages are broken by 6.12 and you might have to look for patches or manually fix them.

EDIT: Actually, I just realized that xmonad and xmonad-contrib haven't been recompiled using the new GHC. You should rebuild those from ABS or use the darcs versions in the AUR so you can recompile your configuration if needed.

Last edited by goddesse (2010-01-15 00:33:32)

Offline

#3 2010-01-15 05:54:11

bcat
Member
From: New York, NY, USA
Registered: 2009-01-02
Posts: 30
Website

Re: [Solved] xmonad and ghc

Just a quick note, this appears to be in the bugtracker already. See FS#17836.

Last edited by bcat (2010-01-15 05:54:23)


Running Arch on a Dell Studio 1735. xmonad FTW! Dotfiles here.
Want free cloud-based file sharing? Sign up for Dropbox and we both get some bonus storage!

Offline

#4 2010-01-16 15:29:24

eyescream
Member
Registered: 2009-08-24
Posts: 49

Re: [Solved] xmonad and ghc

Rebuilding it is then, thanks.

Offline

Board footer

Powered by FluxBB