#4884: registerPackage fails with multiple command line --package-conf= flags
------------------------------------------+---------------------------------
  Reporter:  r6                           |          Owner:        
      Type:  bug                          |         Status:  closed
  Priority:  normal                       |      Milestone:  7.2.1 
 Component:  ghc-pkg                      |        Version:  6.12.3
Resolution:  invalid                      |       Keywords:        
  Testcase:                               |      Blockedby:        
Difficulty:                               |             Os:  Linux 
  Blocking:                               |   Architecture:  x86   
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------
Changes (by simonmar):

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


Comment:

 This is the documented behaviour of `ghc-pkg`.  In the output of `ghc-pkg
 --help`:

 {{{
   When asked to modify a database (register, unregister, update,
   hide, expose, and also check), ghc-pkg modifies the global database by
   default.  Specifying --user causes it to act on the user database,
   or --package-conf can be used to act on another database
   entirely. When multiple of these options are given, the rightmost
   one is used as the database to act upon.
 }}}

 So in your command line:

 {{{
 ghc-pkg --package-conf=myPkg1 --package-conf=myPkg2 --package-conf=myPkg3
 --global --user update newPkg.conf
 }}}

 Since `--user` is the rightmost option, that is the DB to act on.  The
 user DB can only depend on the global DB, so you get the stack
 `[user,global]`.

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