#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 |
------------------------------------------+---------------------------------
Comment(by simonmar):
Replying to [comment:3 r6]:
> Where is it documented that user databases cannot depend on package-conf
databases?
>
> Also, what is the motivation for such a restriction?
Nowadays the ordering of package databases is less important than it used
to be, because we have Package Ids, so shadowing is harmless and a missing
package database just causes an error. So we could treat them like a set
instead of a stack.
However, I think it's useful to prevent the user pacakge database from
depending on other external package databases - it's a reasonable sanity
check, and prevents you from installing packages in the user database that
are broken without the appropriate `-package-conf` flag.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4884#comment:4>
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