[Hackage] #177: Check Include-dirs, extra-lib-dirs etc exist at configure time.

Hackage trac at galois.com
Wed Feb 20 09:08:04 EST 2008


#177: Check Include-dirs, extra-lib-dirs etc exist at configure time.
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:                 
      Type:  defect         |       Status:  new            
  Priority:  normal         |    Milestone:                 
 Component:  Cabal library  |      Version:  1.2.2.0        
  Severity:  normal         |   Resolution:                 
  Keywords:                 |   Difficulty:  easy (<4 hours)
Ghcversion:  6.6            |     Platform:  Windows        
----------------------------+-----------------------------------------------
Comment (by duncan):

 We now check that relative paths do exist, eg:
 {{{
 include-dir: include
 }}}

 But we do not check absolute paths. The rationale is that relative paths
 are part of the package so if they're missing then we have a problem, but
 absolute paths are on the system and these might be just a list of
 possible paths that may exist on some systems and not others.

 Incidentally this would help in the original complaint
 {{{
 include-dirs: C:\Program Files\PostgreSQL\8.2\include, C:\Program
 Files\PostgreSQL\8.2\include\server, .
 extra-lib-dirs: C:\Program Files\PostgreSQL\8.2\include, C:\Program
 Files\PostgreSQL\8.2\include\server
 }}}

 We would get a warning:
 {{{
 Warning: 'include-dirs: Files\PostgreSQL\8.2\include' directory does not
 exist.
 Warning: 'include-dirs: Files\PostgreSQL\8.2\include\server' directory
 does not exist.
 Warning: 'extra-lib-dirs: Files\PostgreSQL\8.2\include' directory does not
 exist.
 Warning: 'extra-lib-dirs: Files\PostgreSQL\8.2\include\server' directory
 does not exist.
 }}}

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


More information about the cabal-devel mailing list