cvs commit: fptools/libraries/Cabal/Distribution/Compat Directory.hs fptools/libraries/Cabal/Distribution/Simple GHCPackageConfig.hs

Krasimir Angelov krasimir at haskell.org
Sat Jan 8 11:10:38 EST 2005


krasimir    2005/01/08 08:10:38 PST

  Modified files:
    libraries/Cabal/Distribution/Compat Directory.hs 
    libraries/Cabal/Distribution/Simple GHCPackageConfig.hs 
  Log:
  I added getHomeDirectory function to Distribution.Compat.Directory which
  now is used from GHCPackageConfig.localPackageConfig instead of (getEnv "HOME").
  Without this fix the build process under Windows terminate with
  "does not exists (no environment variable)".
  
  NOTE: The fix works only if Cabal is built with ghc-6.3+. In any other case
  getHomeDirectory is defined as getEnv "HOME" and will continue to fail.
  This can be fixed but it will add an additional dependency of Cabal from
  shell32 under Windows and ghc < 6.3. I decided to leave the things at this
  stage because they are more maintainable in this way. If this is a pain I
  can rewrite the things latter.
  
  Revision  Changes    Path
  1.4       +5 -2      fptools/libraries/Cabal/Distribution/Compat/Directory.hs
  1.6       +2 -2      fptools/libraries/Cabal/Distribution/Simple/GHCPackageConfig.hs


More information about the Cvs-libraries mailing list