Package: hmake
Version: 3.12-1

I get the following errors when freshly installing hmake:

 % sudo apt-get install hmake
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following extra packages will be installed: ghc6
 Suggested packages:
   ghc6-prof haskell-doc ghc5 nhc98
 The following NEW packages will be installed
   ghc6 hmake
 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0B/31.1MB of archives.
 After unpacking 207MB of additional disk space will be used.
 Do you want to continue [Y/n]? 
 Selecting previously deselected package ghc6.
 (Reading database ... 198545 files and directories currently installed.)
 Unpacking ghc6 (from .../ghc6_6.8.2-1_amd64.deb) ...
 Selecting previously deselected package hmake.
 Unpacking hmake (from .../hmake_3.12-1_amd64.deb) ...
 Setting up ghc6 (6.8.2-1) ...
 Setting up hmake (3.12-1) ...
 MkConfig: user error (Can't find ghc includes at /usr/lib/ghc-6.8.2/imports)

 Trigger failed: ("hmake-config /var/lib/hmake/debian/hmakerc add
 \"%p\"","ghc6") MkConfig: user error (Can't find ghc includes
 at /usr/lib/ghc-6.8.2/imports)

 Trigger failed: ("hmake-config /var/lib/hmake/debian/hmakerc add
 \"%p\"","/usr/bin/ghc6")


This seems to be one symptom of the same problem, namely that hmake is
looking for includes at /usr/lib/ghc-6.8.2/imports instead of
/usr/lib/ghc-6.8.2/hslibs-imports/ghc.

(I can also see this problem if I try and compile libghc6-hat-dev against the
new ghc, for example.)

Another testcase might be:

 % hmake-config list
 Global config file is:
     /var/lib/hmake/debian/hmakerc
 MkConfig: user error (Can't find ghc includes at /usr/lib/ghc-6.8.2/imports)

My /var/lib/hmake/debian/hmakerc is:

 HmakeConfig
   { defaultCompiler = "/usr/bin/haskell-compiler"
   , knownCompilers =
     [ DynCompiler { compilerPath = "/usr/bin/haskell-compiler" }
     ]
   }

Symlinking /usr/lib/ghc-6.8.2/imports to usr/lib/ghc-6.8.2/hslibs-imports/ghc
does actually fix the problem, which suggests I'm barking up the right tree,
but I simply don't know enough about GHC to really debug in great depth.


Regards,

-- 
Chris Lamb, UK                                       [EMAIL PROTECTED]
                                                            GPG: 0x634F9A20

Attachment: signature.asc
Description: PGP signature

Reply via email to