#4060: runhaskell Setup register fails with "internal error: unexpected package 
db
stack"
----------------------------+-----------------------------------------------
  Reporter:  mrothe         |          Owner:  duncan        
      Type:  bug            |         Status:  closed        
  Priority:  high           |      Milestone:  6.12.3        
 Component:  Compiler       |        Version:  6.12.2        
Resolution:  fixed          |       Keywords:                
Difficulty:                 |             Os:  Linux         
  Testcase:                 |   Architecture:  x86_64 (amd64)
   Failure:  Runtime crash  |  
----------------------------+-----------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 The workaround (and indeed the sensible thing to do) is not to try and
 override the target package db at register time and just use the one
 selected at configure time.

 {{{
 Sat May 15 22:32:04 BST 2010  Duncan Coutts <[email protected]>
   * Fix register --global/--user
   It is a rather silly feature and is not guaranteed to work. Having
   configured and built using one set of dbs, there's no guarantee you
   can register into another set. We should probably just remove it.
 }}}

 I'd also like to know if anyone would miss this "feature" if I removed it.
 Configuring and building using one set of packages and then registering
 into another set is highly dubious. We don't need to make it too easy, or
 people will do it accidentally without thinking. It's still possible of
 course simply by making a registraiton file and registering manually.

 That or we should ban certain combinations, like configuring with --user
 and registering with --global.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4060#comment:2>
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