Ticket #394 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

--package-db flag is not respected for compiling Setup.hs

Reported by: duncan Owned by:
Priority: normal Milestone: Cabal-1.8
Component: Cabal library Version: 1.2.3.0
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.3 Platform:

Description

The --package-db flag is used to look for installed packages when building packages, however it does not get used when trying to build a custom Setup.hs file. It should be.

It's handy to be able to use a completely separate package db to be able to say test multiple versions of the Cabal lib and cabal-install separately but in parallel.

Change History

Changed 4 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from Cabal-1.6 to Cabal-1.8
Sun Dec 21 18:47:55 GMT 2008  Duncan Coutts <duncan@haskell.org>
  * Respect the --package-db flag when compiling Setup.hs
  Fixes ticket #394.

However note that when using a separate package db then we will not look in the user package db for the Cabal lib.

We probably should but that requires more changes to the way we handle package dbs. See #437.

Note: See TracTickets for help on using tickets.