FS#11625 - [ghc] should register libraries on upgrade

Attached to Project: Arch Linux
Opened by Adam Vogt (vogt) - Monday, 29 September 2008, 18:02 GMT
Last edited by Vesa Kaihlavirta (vegai) - Tuesday, 02 March 2010, 06:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: I suggest adding something like this to the post-upgrade of ghc. It means that the libraries that are still compatible will still be available.

This should work, but test it first :)

post_upgrade() {
for HS_DIR in /usr/share/haskell/* ;
do
${HS_DIR}/register.sh --force
done
}

It wouldn't hurt to put that function as the post_install() either, as some libraries perhaps mistakenly do not require ghc.

Pacman should warn and remove/upgrade haskell libraries that are no longer compatible, so the --force option is used without breaking anything. (alphabetical order of the loop will have broken dependencies that get resolved by the end).
This task depends upon

Closed by  Vesa Kaihlavirta (vegai)
Tuesday, 02 March 2010, 06:11 GMT
Reason for closing:  Won't implement
Comment by Vesa Kaihlavirta (vegai) - Friday, 05 December 2008, 12:25 GMT
Are any libraries really compatible in most ghc upgrades anyway?

I'll add dons to this
Comment by Roman Kyrylych (Romashka) - Sunday, 14 June 2009, 22:48 GMT
status?
Comment by Vesa Kaihlavirta (vegai) - Monday, 01 February 2010, 06:50 GMT
We have a warning currently about old libraries.

Loading...