Skip to content

ghc fails to build if HOME is not seth

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

Trac metadata
Trac field Value
Version 7.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC pkg-haskell-maintainers@lists.alioth.debian.org
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information