Updating Haskell Packages through Archlinux becoming A Pain

Well basically, I haven't update my Haskell libraries for some time now (around a month) so when I finally got around to updating my Haskell packages (which are installed through Archlinux's AUR) my GHC installation broke (again). This has been happening for some time now (I have been having this problem for around a year) Basically it occurs when pacman updates a package using an AUR package, which cabal refuses to install because it can break other packages (yet the package still gets installed according to pacman). So this means I have to manually go through /usr/lib/ghc-6.12.3/package.conf.d and manually updating all the package hashes while doing some manual dependency tracking through ghc-check This honestly starting to become annoying, is there any ideas or plans on how to resolve this issue. The end user shouldn't have to be dealing with this, and if installing a package can break the system, it shouldn't be 'semi' installed in the first place

This is an example of what happens Proceed with installation? [Y/n] Y checking package integrity... (1/1) checking for file conflicts [##################################] 100% ghc-pkg: unregistering gio-0.11.1 would break the following packages: ltk-0.8.0.8 gtksourceview2-0.12.1 gtk-0.11.2 (use --force to override) error: command failed to execute correctly (1/1) upgrading haskell-gio [##################################] 100% Reading package info from stdin ... done. In other words, pacman still syncs the package (puts the files on the system) and causes GHC to break, and if you do this for a big update, you have to manually go through and fix it all

Personally I gave up on installing haskell packages through AUR, I pretty much stick to Cabal now.

Yeah I used to do that as well, but then that kind of fails on packages that
provides both libraries and binaries (and other issues as well)
On 16/11/2010 4:53 PM, "James Sanders"
Personally I gave up on installing haskell packages through AUR, I pretty much stick to Cabal now. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Sun, Nov 14, 2010 at 00:32, Mathew de Detrich
This is an example of what happens Proceed with installation? [Y/n] Y checking package integrity... (1/1) checking for file conflicts [##################################] 100% ghc-pkg: unregistering gio-0.11.1 would break the following packages: ltk-0.8.0.8 gtksourceview2-0.12.1 gtk-0.11.2 (use --force to override) error: command failed to execute correctly (1/1) upgrading haskell-gio [##################################] 100% Reading package info from stdin ... done. In other words, pacman still syncs the package (puts the files on the system) and causes GHC to break, and if you do this for a big update, you have to manually go through and fix it all
May I suggest you post this to the arch-haskell mailinglist[1] instead? The team managing the haskell packages on AUR are more likely to take note of your bug report if it's posted there. /M [1]: http://www.haskell.org/mailman/listinfo/arch-haskell -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

Hi Mathew,
[My GHC installation breaks] when pacman updates a package using an AUR package, which cabal refuses to install because it can break other packages (yet the package still gets installed according to pacman).
this bug has been fixed about two weeks ago; it should no longer occur with the current PKGBUILD files. An easy way to get your system back in shape is to un-install all Haskell packages by running pacman -R --cascade ghc ..., then clean up the package database with rm -rf /usr/lib/ghc-6.12.3 ..., and finally re-install those packages that you'd like to have. The procedure is a little awkward, I'm afraid, but you won't ever have to do it again, just this one time. ;-) Take care, Peter
participants (4)
-
James Sanders
-
Magnus Therning
-
Mathew de Detrich
-
Peter Simons