ghc-pkg uses wrong package.conf
After installing HEAD ghc, running ghc-pkg lists no packages (not even base or rts):
$ /Users/judah/tmp/ghc-stage/bin/ghc-pkg list
/Users/judah/tmp/ghc-stage/share/ghc-6.9.20080809/ghc-pkg-6.9/package.conf:
The problem is that utils/ghc-pkg/ghc-pkg.wrapper points to the $datadir of ghc-pkg, which is the ghc-stage/share/[etc] folder listed above; whereas the package database used by ghc is instead:
/Users/judah/tmp/ghc-stage/lib/ghc-6.9.20080809/package.conf
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.9 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |