Adding libraries to an inplace GHC should JustWork(TM)
After building the head I end up with the boot libraries built and working in ./libraries
. However, if I add a new darcs checkout to this dir (say ./libraries/parallel
) and type make
then nothing happens.
The trouble is that the library is missing ghc.mk
and GNUmakefile
. These files are created by sh boot
, but if I do that at top-level it creates a new ghc.mk
and GNUmakefile
for *all* of the libraries, instead of just the new one. This means that when I type make
now it wants to rebuild a bunch of things unrelated to the new library.
There are some instructions at http://hackage.haskell.org/trac/ghc/wiki/Debugging/InstallingPackagesInplace but I am not keen on doing that for each additional package I need. Plan A on that page will also install packages in my local .cabal which will be a problem if I'm doing multiple builds in the same account.
What should happen, is that if I place a new library in ./libraries and type make
then this gets built and registered with the inplace compiler, just like the ones already there.
There should also be an easy way to get and update all the libraries needed by the testsuite and nofib -- ie parallel, regex, mtl. I vaguely remember a command like ./darcs-all get --extralibs
but that doesn't work anymore. Adding a line for libraries/parallel
to ./packages
doesn't work either because the darcs-all get
script only checks darcs.haskell.org
and not hackage.haskell.org\
as well.
Trac metadata
Trac field | Value |
---|---|
Version | 6.13 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |