28 May 2012 14:36
relocatable packages: GHC_PACKAGE_PATH and package.conf
Tim Cuthbertson <tim <at> gfxmonk.net>
2012-05-28 12:36:52 GMT
2012-05-28 12:36:52 GMT
Hi all, I'm trying to build a relocatable package using cabal, and running into some difficulties. I've created / used the following script to attempt to create a relocatable package: https://github.com/gfxmonk/0compile-cabal-build/blob/2cf4a08b146333d9292f6f8fd38431dd5c5c80f1/cabal-build When this is done I have something that looks like it should work, and has an inline package.conf. But when I run the following: ----------------------------------------------- $ export GHC_PACKAGE_PATH="/home/tim/dev/haskell/third-party/haskell-ansi-terminal/haskell-ansi-terminal-linux-x86_64/package.conf:" $ ghc-pkg check There are problems in package ansi-terminal-0.5.5: import-dirs: ${pkgroot}/lib is a relative path library-dirs: ${pkgroot}/lib is a relative path file System/Console/ANSI.hi is missing file System/Console/ANSI/Unix.hi is missing file System/Console/ANSI/Common.hi is missing cannot find libHSansi-terminal-0.5.5.a on library path The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. ansi-terminal-0.5.5 ----------------------------------------------- So it looks like: - I need to set more environment variabes so that ghc can find the parts of the package (e.g libHSansi-terminal-0.5.5.a). Unfortunately,(Continue reading)
RSS Feed