haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.61k stars 691 forks source link

Do additional ghc / ghc-pkg consistency check #691

Open bos opened 12 years ago

bos commented 12 years ago

(Imported from Trac #699, reported by @dcoutts on 2010-06-05)

See http://hackage.haskell.org/trac/ghc/ticket/4103

In future, ghc --info will report the global package database location. This can be used to check that ghc and ghc-pkg agree on the same one, as a consistency check to make sure the two programs are from the same ghc installation.

Note that getting the location of the global package db from ghc-pkg is a bit hacky at the moment. One has to use ghc-pkg list --global and parse the result. Perhaps we need another ghc feature request for that.

quasicomputational commented 5 years ago

The "Global Package DB" field seems to have landed in GHC 7.4, so we'll be able to make full use of that as soon as we drop support for building with 7.0 and 7.2.