Ticket #3268 (closed feature request: fixed)
implement the Cabal ${pkgroot} spec extension
| Reported by: | duncan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2.1 |
| Component: | Package system | Version: | 6.10.2 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
See the proposal for relative paths in installed package descriptions:
http://www.haskell.org/pipermail/libraries/2009-May/011772.html
Basically it amounts to replacing ghc's current $topdir and $httptopdir with variables that are interpreted relative to the package db file itself rather than relative to where ghc is installed (though for the global package db these coincide).
The open question is how tools discover the location of the package dbs. The proposed spec extension does not specify this, but perhaps it should specify an extension to (the hypothetical) hc-pkg system to discover the default set of package dbs and their paths.
