Ticket #3739 (new bug)

Opened 3 years ago

Last modified 8 months ago

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

Changed 3 years ago by igloo

  • milestone set to 6.14 branch

Related to this, there has also been talk of allowing paths in package.conf files to be relative to the location of the package.conf file. This would be a step towards relocatable installations.

Changed 3 years ago by igloo

  • milestone changed from 6.14 branch to 6.14.1

Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

Changed 20 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1

Changed 16 months ago by igloo

  • priority changed from normal to low
  • milestone changed from 7.4.1 to 7.6.1

Changed 8 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.