Changes between Version 30 and Version 31 of Building/GettingTheSources


Ignore:
Timestamp:
Sep 17, 2008 2:15:17 PM (6 years ago)
Author:
jberthold
Comment:

included "manually adding packages" below --extra explanation

Legend:

Unmodified
Added
Removed
Modified
  • Building/GettingTheSources

    v30 v31  
    8686This isn't usually necessary: extra packages can be compiled and installed separately using Cabal, after you have built and installed GHC itself with its core packages.  The "core" and "extra" packages are listed in DarcsRepositories. 
    8787 
     88If you want only one of the extra libraries, you can also use darcs to manually add it to the tree.  
     89Suppose you have downloaded a GHC source tree as advised above. 
     90Look up the directory name (i.e. the package name) of the library which you want to add. 
     91Descend into {{{libraries}}} and issue a {{{darcs get <repo>}}} (where {{{<repo>}}} is the repository of the package you want to get, ending in the package {{{<name>}}}). 
     92A later {{{./darcs-all pull }}} now pulls updates not only for ghc and the core libraries, but also for any library you have added in this way. 
     93{{{ 
     94  $ cd libraries 
     95  $ darcs get http://darcs.haskell.org/packages/<name> 
     96  $ cd .. 
     97}}} 
     98 
    8899Optionally, you might want to grab the testsuite (if you have not already got it) and `nofib` benchmark suite too, which also become sub-directories of ghc: 
    89100 
     
    92103  $ ./darcs-all --nofib get 
    93104}}} 
     105 
    94106The full list of darcs repositories relating to GHC is at DarcsRepositories. 
    95  
    96  
    97107 
    98108=== Getting a branch ===