[Hackage] #262: Check for required C libraries during configure

Hackage trac at galois.com
Fri Jan 16 12:39:11 EST 2009


#262: Check for required C libraries during configure
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:                 
      Type:  enhancement    |       Status:  new            
  Priority:  high           |    Milestone:  Cabal-1.6      
 Component:  Cabal library  |      Version:  1.2.3.0        
  Severity:  normal         |   Resolution:                 
  Keywords:                 |   Difficulty:  easy (<4 hours)
Ghcversion:  6.8.2          |     Platform:                 
----------------------------+-----------------------------------------------
Comment (by duncan):

 I've been thinking about this and I think that with packages that use
 confiure scripts there is actually no point at which we can do this check.
 The reason is that we need any extra settings from the `.buildinfo` file,
 however that file is generated by `./configure` and the `Setup.hs` script
 never sees it.

 In fact the first point we could see the full information is during
 `preBuild`, we could not do the check during configure at all.

 We could try and hack it by reading the `.buildinfo` file directly during
 `postConf` but that's pretty hairy since the user can modify the hooks
 however they like and there is no requirement that they use any particular
 file.

 So we may have to only do this check for `build-type: Simple`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/262#comment:6>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list