#5977: Allow ignoring global package db
---------------------------------+------------------------------------------
Reporter: duncan | Owner: pcapriotti
Type: feature request | Status: patch
Priority: high | Milestone: 7.6.1
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by pcapriotti):
I'm not sure how that would interact with GHC_PACKAGE_PATH. For example,
if I run:
{{{
GHC_PACKAGE_PATH="foo:" ghc --no-user-package-db
}}}
I'd expect it to use `[global, foo]` as db stack, but we can't remove
`user` from the stack originating from `GHC_PACKAGE_PATH` unless we keep
the information somewhere (currently it's in `Opt_ReadUserPackageConf`).
So at the moment there is an "initial stack", which is `[global, user]` by
default, and is affected by `-no-user-package-db`, `-no-global-package-
db`, `-clear-package-db`, and `GHC_PACKAGE_PATH`. The other flags append
to the stack *after* the initial stack has been determined.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5977#comment:8>
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