[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ghc fails with HOME not set, fixing right now



Hi,

Note that not ghc is failing, but building ghc fails. And I’m not saying
that this is not a bug. But setting HOME in debian/rules is the easiest
fix.

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-for-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

so it is actually cabal that is failing. 

If someone wants to investigate and fix cabal-install here, that’d be
appreciated of course.

Thanks,
Joachim


Am Freitag, den 25.03.2011, 10:28 +0100 schrieb Christian Maeder:
> ghc should not fail if HOME is not set. It certainly cannot look up 
> local packages then, but ghc should work without those, too.
> 
> ghc is a compiler like gcc. Does gcc need HOME?
> 
> Cheers Christian
> 
> Am 25.03.2011 08:26, schrieb Joachim Breitner:
> > Hi,
> >
> > new FTBFS coming up: ghc fails if HOME is not set, which is apparently
> > the case on some buildds. I’m now setting HOME to a dummy variable in
> > debian/rules and building it right now in a pbuilder (with HOME not
> > set...).
> >
> > We’ll need to see if this affects the libraries as well. If that is the
> > case, it can be easily fixed in haskell-devscripts.
> >
> > Greetings,
> > Joachim
> >
> 

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: