You are not logged in.
Sorry for a possibly stupid question. Is that for the official arch repos, the AUR, or the new haskell repo mentioned in the first post?
If the new one, is it possible to just add it to /etc/pacman.d/mirrorlist and pacman -Syu, or do we have to remove the existing one first (sorry, I'm still quite new to arch).
Offline
If you're referring to Xyne's post, he's referring to the ghc74 repo, which you can add and use by doing the following:
copy and paste the following into the end of your /etc/pacman.conf file
[ghc74]
Server = http://xsounds.org/~haskell/$repo/$arch
SigLevel = Never
And then run
sudo pacman -Syy
From there you can install the packages from the repo as you'd be accustomed to.
Hope that helps!
Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds
Offline
At first I thought it would be the [ghc47] repo, but it will actually be the [haskell] repo.
It will need to be added above [extra] in pacman.conf to make sure that packages are preferentially pulled in from it. Putting it at the end of pacman.conf will break things.
It doesn't seem to be quite ready yet. There are still some dependency issues that need to be worked out, but I'm hoping that will be done soon. I'm not directly involved with the project though, so I can't guarantee anything. I'm only going on what I've gathered from the mailing list.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
This is my present state of affairs (haskell packages uninstalled):
$ yaourt -S haskell-pandoc
resolving dependencies...
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haddock"
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haskell-xhtml"
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haskell-ghc-paths"
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haskell-regex-base"
warning: cannot resolve "haskell-mtl=2.0.1.0-4", a dependency of "haskell-regex-base"
:: The following package cannot be upgraded due to unresolvable dependencies:
haskell-pandocDo you want to skip the above package for this upgrade? [y/N] ^C
Interrupt signal received$ pacman-color -Ss ghc
extra/ghc 7.4.1-2 (haskell)
The Glasgow Haskell Compiler
community/haskell-ghc-paths 0.1.0.8-7
Knowledge of GHC's installation directories
haskell/ghc 7.4.1-5 (haskell)
The Glasgow Haskell Compiler
haskell/ghc-haddock 7.4.1-5 (haskell)
The Glasgow Haskell Compiler
haskell/ghc-mod 1.10.11-2
Happy Haskell programming on Emacs/Vim
haskell/haskell-ghc-paths 0.1.0.8-4
Knowledge of GHC's installation directories
haskell/haskell-ghc-syb-utils 0.2.1.0-4
Scrap Your Boilerplate utilities for the GHC API.
Still a step or two short of happiness. BTW, the very presence of ghc both in extra and haskell, which are supposed to be used alongside one another, probably implies some special management.
Offline
I just upgraded everything today without issues. Here's how you can do it:
* In pacman.conf, place the [haskell] repo above [extra].
* get my topological rebuild script here
* run it to generate some files
* add "ghc-haddock" to the second command in the generated "reinstall.sh" script
That should do it. My script isn't necessary, but it saves you the trouble of manually compiling the list of explicitly installed packages.
edit: woops, posted the link to the local server
Last edited by Xyne (2012-03-08 05:55:22)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
For those of you not following the arch-haskell mailing list, [ghc74] will be updated tonight at which point I think it will contain all of the Haskell packages from [extra] and [community], minus the broken dependency chains. The repo will be rebuilt topologically with each update so this kind of breakage should be avoided in the future with that repo.
Rejoice, my Haskell brethren, and heap praise upon brother Magnus, for he shall lead us out of dependency hell and into the light!
Though I like your poetic style, would you mind to give a slightly more operational advice for your rather newbie Arch fellows?
I still can't do a system update, and I can't reinstall ghc either. So I'm not sure what to do.
What shall I uninstall/reinstall in what order to make pacman work again?
TIA
PS
Ups - did not see there is a second page with comments. I'm still not sure what to do about all this, Haskell is a totally minor point to me, only needed for pandoc - don't want to mess up my system (being quite a newbie) only to deal with this in some esoteric ways. Isn't there a simple advice what to do?
[tj@arch ~]$ LC_ALL=C sudo pacman -Ss ghc
extra/ghc 7.4.1-2 (haskell) [installed: 7.0.3-2]
The Glasgow Haskell Compiler
community/haskell-ghc-paths 0.1.0.8-7
Knowledge of GHC's installation directories
[tj@arch ~]$ LC_ALL=C sudo pacman -S ghc
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-cgi: requires ghc=7.0.3-2
:: haskell-deepseq: requires ghc=7.0.3-2
:: haskell-fgl: requires ghc=7.0.3-2
:: haskell-glut: requires ghc=7.0.3-2
:: haskell-haskell-src: requires ghc=7.0.3-2
:: haskell-html: requires ghc=7.0.3-2
:: haskell-http: requires ghc=7.0.3-2
:: haskell-hunit: requires ghc=7.0.3-2
:: haskell-mtl: requires ghc=7.0.3-2
:: haskell-network: requires ghc=7.0.3-2
:: haskell-opengl: requires ghc=7.0.3-2
:: haskell-parallel: requires ghc=7.0.3-2
:: haskell-parsec: requires ghc=7.0.3-2
:: haskell-platform: requires ghc=7.0.3-2
:: haskell-quickcheck: requires ghc=7.0.3-2
:: haskell-regex-base: requires ghc=7.0.3-2
:: haskell-regex-compat: requires ghc=7.0.3-2
:: haskell-regex-posix: requires ghc=7.0.3-2
:: haskell-stm: requires ghc=7.0.3-2
:: haskell-syb: requires ghc=7.0.3-2
:: haskell-text: requires ghc=7.0.3-2
:: haskell-transformers: requires ghc=7.0.3-2
:: haskell-xhtml: requires ghc=7.0.3-2
:: haskell-zlib: requires ghc=7.0.3-2
Last edited by 4on6 (2012-03-08 08:48:38)
Offline
Is there a way to get the PKGBUILDs from the [haskell] repo? As I saw from Llamas post, they have a ghc-mod package more recent than the one I maintain in AUR. I would like to figure out how this has been done, because I was trying the same for some days now withou success.
Offline
Ups - did not see there is a second page with comments. I'm still not sure what to do about all this, Haskell is a totally minor point to me, only needed for pandoc - don't want to mess up my system (being quite a newbie) only to deal with this in some esoteric ways. Isn't there a simple advice what to do?
Yeah, follow the steps in this post. It really is simple. That's what I did and I now have a fully up-to-date system with the latest version of ghc and pandoc.
If you don't even want to bother with my script, you can just do this:
* add the [haskell] repo above [extra] in pacman.conf
* pacman -Rsc ghc
* pacman -Syu ghc ghc-haddock haskell-pandoc
* pacman -D --asdeps ghc ghc-haddock
The last step is only necessary if you want ghc and ghc-haddock to be removed if you remove haskell-pandoc.
Btw, the Haskell repo is
[haskell]
Server = http://xsounds.org/~haskell/$arch
@Stefan
Check HABS
Incidentally, ghc-mod is included in [haskell].
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
If you don't even want to bother with my script, you can just do this:
* add the [haskell] repo above [extra] in pacman.conf
* pacman -Rsc ghc
* pacman -Syu ghc ghc-haddock haskell-pandoc
* pacman -D --asdeps ghc ghc-haddockThe last step is only necessary if you want ghc and ghc-haddock to be removed if you remove haskell-pandoc.
Thanks a lot, I already felt a bit stuck with Archlinux because of this issue.
That recipe worked out perfectly, I only had to delete the ghc doc folder by hand first:
ghc: /usr/share/doc/ghc/
Now, with my freshly updated Archlinux, I decided not to go back to Ubuntu
cheers
Offline
What's the purpose of using the [haskell] repo? Arch is rolling release, so wouldn't it make sense to have someone maintaining the haskell packages in the official repos with newer updates, instead of switching to a 3rd party repo?
I'm currently only using ghc etc for xmonad, and whilst there is far more reasons to use haskell, I'm not seeing why we're not just using the arch repos or the AUR. I really like xmonad, but this may help me justify switching to dwm, as I still don't understand why we had the conflicts, and why we're switching to a 3rd party repo.
Last edited by dubtheat (2012-03-10 03:19:19)
Offline
What's the purpose of using the [haskell] repo? I'm not seeing why we're not just using the arch repos or the AUR. I really like xmonad, but this may help me justify switching to dwm, as I still don't understand why we had the conflicts, and why we're switching to a 3rd party repo.
I can't really tell, but I have my suspicions.
(1) It's not up to anybody to decide what's to be kept in the official repos
(2) haskell in AUR is a standing disaster, and that's a proven fact
Offline
What's the purpose of using the [haskell] repo? Arch is rolling release, so wouldn't it make sense to have someone maintaining the haskell packages in the official repos with newer updates, instead of switching to a 3rd party repo?
I'm currently only using ghc etc for xmonad, and whilst there is far more reasons to use haskell, I'm not seeing why we're not just using the arch repos or the AUR. I really like xmonad, but this may help me justify switching to dwm, as I still don't understand why we had the conflicts, and why we're switching to a 3rd party repo.
I agree with dubtheat, and this post really isn't solved, as we still have a major dependency moved from the main repo into a 3rd party repo, which is supposed to be used alongside extra, despite the fact that both have conflicting versions of ghc. I followed the instructions above, and I'm still having dependency issues installing ghc, which is amusing, since it's required for xmonad - my own window manager!
I understand that we're supposed to be aware of the packages installed on our system, but breaking critical dependencies like this so that we're left with dependency cycles is a bit much, if you ask me. It's not even an issue with the mirrors being out-of-sync, as it's been like this for several days now.
In the meantime, since I can't even install Haskell, guess it's time to go back to wmii (or give awesome a try).
Offline
haskell-platform is no longer in the repo as it is a very un-Arch like construct. So remove that (pacman -R haskell-platform).
Then try an update. Any module that gives a dependency error, remove it. It was probably removed along with haskell-platform. Once you have removed all the modules no longer in the repos, you can update. Any modules that you removed and actually need back, reinstall from the AUR. Chances are you did not really need them but the all got pulled in with haskell-platform anyway.
Offline
haskell-platform is no longer in the repo as it is a very un-Arch like construct. So remove that (pacman -R haskell-platform).
Then try an update. Any module that gives a dependency error, remove it. It was probably removed along with haskell-platform. Once you have removed all the modules no longer in the repos, you can update. Any modules that you removed and actually need back, reinstall from the AUR. Chances are you did not really need them but the all got pulled in with haskell-platform anyway.
This is what I get:
$ sudo pacman -S ghc
resolving dependencies...
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haddock"
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haskell-xhtml"
warning: cannot resolve "ghc=7.4.1-2", a dependency of "haskell-ghc-paths"
:: The following package cannot be upgraded due to unresolvable dependencies:
ghc
Do you want to skip the above package for this upgrade? [y/N]
Though haddock itself is no longer installed.
Offline
an update is not "pacman -S ghc", it is "pacman -Syu"...
Offline
This was really quite frustrating. Wouldn't it be a good idea to announce something like this on the Achlinux homepage, giving a recipe to all Haskell users how to bring their system into 'normal' state again?
Offline
this was announced on at least 3 mailing lists (arch-general, arch-dev-public, arch-haskell)
http://mailman.archlinux.org/pipermail/ … 25503.html
The current situation is this.
The officially supported packages are in [extra] and [community].
The aur is pretty much a mess at this point because it contains the remnants of what was arch-haskell in the past with no one maintaining the packages.
[haskell] is an unofficial 3rd party repo that is unsupported by arch which replaces all your haskell related packages.
My personal opinion is this.. figure out how to use cabal (from cabal-install) and it will treat you a lot better then any possible package on arch.
If your needs aren't great, and you need only a few common haskell packages which are in the repo (xmonad, or darcs, or etc..) then use those packages if you want, otherwise, I would avoid any haskell packages other than cabal-install and ghc in any package form..
Offline
Ok, I must admit I didn't follow the lists (and was caught by surprise therefore).
Thanks for the info.
Offline