Ticket #4103 (closed feature request: fixed)

Opened 3 years ago

Last modified 3 years ago

report location of global package db in ghc --info

Reported by: duncan Owned by: simonmar
Priority: normal Milestone:
Component: Compiler Version: 6.12.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Cabal does a sanity check to make sure it has a ghc and ghc-pkg program that are the same version. This is sometimes not enough.

In #haskell today we had a case where there was /usr/bin/ghc and /usr/local/bin/ghc-pkg. This gave rise to pretty weird behaviour that was hard to track down. Packages could be built, but when they were installed they always appeared to be broken, missing a dependency on base.

We could improve Cabal's sanity check if it checked that ghc and ghc-pkg agreed on the location of the global package database. That would seem to be the canonical check that the two belong to a single instance of a ghc installation.

To be able to perform this check, it would be useful to extend ghc's --info flag to include the location of the global package db.

Change History

Changed 3 years ago by simonmar

  • owner set to simonmar

Changed 3 years ago by simonmar

Done:

Wed Jun  2 01:22:33 PDT 2010  Simon Marlow <marlowsd@gmail.com>
  * Add the global package DB to ghc --info (#4103)

Changed 3 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.