
#12194: ghc-pkg, package database path containing a trailing slash, and ${pkgroot} -------------------------------------+------------------------------------- Reporter: dudebout | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: ghc-pkg | Version: 8.0.1 Resolution: | Keywords: pkgroot Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2336 Wiki Page: | -------------------------------------+------------------------------------- Comment (by dudebout): I am seeing the same issue in ghc. If I am not mistaken, the same fix applies in ghc/compiler/main/Packages.hs at line 419: https://github.com/ghc/ghc/blob/1937ef1c506b538f0f93cd290fa4a42fc85ab769/com... Reading line 355 to 449, it seems like the name is taken straight from the option or env var. See in particular lines 374/376/393 where the name comes from. I have not tried runghc. Would that share the ghc code? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12194#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler