#3090: ghc-pkg update should fail if dependent packages might break
-------------------------------+--------------------------------------------
  Reporter:  simonmar          |          Owner:                  
      Type:  bug               |         Status:  new             
  Priority:  normal            |      Milestone:                  
 Component:  Compiler          |        Version:  6.10.1          
  Severity:  normal            |       Keywords:                  
Difficulty:  Unknown           |       Testcase:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-------------------------------+--------------------------------------------
 If a package is recompiled and re-installed, and other packages depend on
 it, those packages might be broken; e.g. see #3060.

 Hence `ghc-pkg update` should refuse to perform the update, unless
 explicitly overridden with `--force`.  However, it's not quite as simple
 as that:

  * The package might already have been installed over the top of the old
 one, and
    it's too late to reverse that.

  * `cabal-install` likes to build and install a bunch of packages at the
 same time,
    using `ghc-pkg update` on each one.  This will fail.

  * The GHC build system uses `ghc-pkg update` to register packages, and
 this
    breaks when packages are re-built (it's ok for a clean build, though).

 I've attached a couple of patches to implement it, but let's hold these
 back until the above issues are sorted out.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3090>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to