id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
5047,ghc fails to build if HOME is not seth,nomeata,igloo,"Hi,

some Debian build daemons do not set $HOME, to ensure that package builds do not modify that. ghc 7.0.2 fails to build in that case:

Here is an example build log: https://buildd.debian.org/fetch.cgi?pkg=ghc&arch=powerpc&ver=7.0.2-5&stamp=1300976974&file=log&as=raw ending with
{{{
""inplace/bin/ghc-cabal"" configure --with-ghc=""/usr/bin/ghc"" --with-ghc-pkg=""/usr/bin/ghc-pkg"" --with-gcc=""/usr/bin/gcc"" --configure-option=--with-cc=""/usr/bin/gcc"" --package-db=/build/buildd-ghc_7.0.2-5-powerpc-bRWe6q/ghc-7.0.2/libraries bootstrapping.conf --enable-library-profiling --enable-library-or-ghci --configure-option=CFLAGS="" -fno-stack-protector  "" --configure-option=LDFLAGS=""   "" --configure-option=CPPFLAGS=""   "" --constraint ""Cabal == 1.10.1.0"" --constraint ""hpc == 0.5.0.6"" --constraint ""extensible-exceptions == 0.1.1.2"" --constraint ""ghc-binary == 0.5.0.2"" --constraint ""bin-package-db == 0.0.0.0"" -- dist-boot libraries/Cabal
ghc-cabal: HOME: does not exist
make[2]: *** [libraries/Cabal/dist-boot/package-data.mk] Error 1
}}}

The bug might be in the cabal-install code.

Thanks,
Joachim",bug,closed,high,7.2.1,Compiler,7.0.2,fixed,,pkg-haskell-maintainers@…,Linux,Unknown/Multiple,Building GHC failed,,,,,
