#2492: ghc-pkg insists on having HOME environment variable set
------------------------+---------------------------------------------------
    Reporter:  gnezdo   |       Owner:          
        Type:  bug      |      Status:  new     
    Priority:  normal   |   Component:  Compiler
     Version:  6.8.2    |    Severity:  normal  
    Keywords:           |    Testcase:          
Architecture:  Unknown  |          Os:  Linux   
------------------------+---------------------------------------------------
 Even in cases when it should not need it, ghc-pkg still fails if
 HOME is unset:

 {{{
 % env - ~/bin/ghc-pkg --global list
 ghc-pkg.bin: HOME: getEnv: does not exist (no environment variable)

 }}}

 Yet, if I just set the variable to a dummy value, ghc-pkg is happy:


 {{{
 % env - HOME=/non-existent ~/bin/ghc-pkg --global list
 .../lib/ghc-6.8.2/package.conf:
     Cabal-1.2.3.0, HUnit-1.2.0.0, QuickCheck-1.1.0.0, array-0.1.0.0,
     base-3.0.1.0, bytestring-0.9.0.1, cgi-3001.1.5.1,
     containers-0.1.0.1, directory-1.0.0.0, fgl-5.4.1.1,
 ...
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2492>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to