Ticket #199 (new enhancement)

Opened 1 year ago

Last modified 4 months ago

when installing a new version of GHC, there should be a way to upgrade my packages

Reported by: guest Assigned to:
Priority: normal Milestone: Cabal-1.8
Component: cabal-install tool Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.2 Platform: Linux

Description

If I have version 6.6 of GHC installed, with packages foo, bar, and bang, and I install ghc 6.8, I'd like a way to automatically install foo, bar, and bang.

This could be part of GHC's installation script possibly, or maybe a feature of cabal install.

cabal can check the installed packages for the previous version of GHC and "cabal install" them.

Change History

12/18/07 11:52:21 changed by duncan

We have a tool for gentoo that does exactly that. It goes through the old ghc package.conf (well actually, a separate set of files that each gentoo ebuild installs) and rebuilds all the available packages for the new ghc.

We'd have to do it in a rather sloppy way since we do not know that each registered package was actually installed by cabal-install or is available from hackage. Also, many packages would fail to build with new ghc so we'd want to not stop when the first package fails but produce a report at the end saying which old packages were unavailable or failed to rebuild.

Such a sloppy mode, producing a report would also be very useful for general hackage QA.

01/24/08 08:06:51 changed by duncan

  • type changed from defect to enhancement.

06/19/08 06:15:52 changed by duncan

  • difficulty changed from normal to easy (<4 hours).
  • milestone set to Cabal-1.6.

We should record a "world" file of stuff the user explicitly requested. This is then the target for upgrades and re-installs when the user changes compiler.

See also #198

08/15/08 07:19:31 changed by duncan

  • milestone changed from Cabal-1.6 to Cabal-1.8.