[GHC] #11678: runhaskell (and ghc, ghci) fail to run if HOME is not set

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Linux Architecture: x86_64 | Type of failure: Compile-time (amd64) | crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Steps to reproduce: {{{ $ env -i ghc HOME: getAppUserDataDirectory: does not exist (no environment variable) $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.3 }}} This may be not a big deal for the compiler and repl, but there are use cases to run `runhaskell` without HOME, e.g. I encountered this when running a cgi script under Apache. I think that the problem was introduced after 7.8. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1971 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D1971 * milestone: => 8.0.1 Comment: This patch should at least help. There still make be the matter of how to deal with the user package database (which is in the default database list) being missing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1971 Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): ghc(i) already worked fine with `HOME=/` or some other nonsense value causing there to be no existent user package database. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: bgamari Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1971 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * owner: => bgamari -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set
-------------------------------------+-------------------------------------
Reporter: crosser | Owner: bgamari
Type: bug | Status: patch
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1971
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: bgamari Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1971 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11678: runhaskell (and ghc, ghci) fail to run if HOME is not set -------------------------------------+------------------------------------- Reporter: crosser | Owner: bgamari Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1971 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged as 6e524ebaf299043990048356b01c045f2d6dc0d5. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11678#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC