Ticket #3739 (new bug)
ghc-cabal mishandles relative paths in arguments
| Reported by: | asuffield | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 7.6.2 |
| Component: | Build System | Version: | |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Just making a record of this one, don't expect it to get fixed in a hurry
ghc-cabal chdirs into the source directory when it runs, because cabal wants to run there. Unfortunately this means relative paths in the arguments are treated as relative to the cabal file, rather than the directory where ghc-cabal was invoked. This is notably an issue for --package-db, which currently requires an absolute path in order to avoid this issue.
(This appears to be the last thing in ghc which needs an absolute path; when it's gone, a lot of things become simpler)
Change History
Note: See
TracTickets for help on using
tickets.
