Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/f35a3d247e023b6c1b0abe677549b29398933b50

>---------------------------------------------------------------

commit f35a3d247e023b6c1b0abe677549b29398933b50
Author: Duncan Coutts <[email protected]>
Date:   Wed May 25 13:06:14 2011 +0100

    Provide the pkgroot value in ghc-pkg dump & describe when necessary
    
    Tools handling installed packages need to be able to interpret the
    paths which are relative to the ${pkgroot} which means they need to
    know the value of ${pkgroot}. With ghc-pkg this is not always obvious
    since ghc-pkg does not currently have any way machine interface for
    reporting the location of its package dbs (global, user). The solution
    we have arrived at is simply to emit the pkgroot as an extra field
    when it is needed.
    
    There are two cases:
     * --no-expand-pkgroot: ghc-pkg dump/describe will not expand the
       ${pkgroot} var, so it will appear literally in the output and the
       pkgroot field will be generated so that tools know what value to
       use for the ${pkgroot}.
     * --expand-pkgroot: ghc-pkg dump/describe will expand the ${pkgroot}
       and ${pkgrooturl} vars and will not generate the pkgroot field.
    
    The defaults are:
     * ghc-pkg dump/describe --no-expand-pkgroot
     * ghc-pkg field --expand-pkgroot

 utils/ghc-pkg/Main.hs |  124 +++++++++++++++++++++++++++++++++----------------
 1 files changed, 84 insertions(+), 40 deletions(-)


Diff suppressed because of size. To see it, use:

    git show f35a3d247e023b6c1b0abe677549b29398933b50

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to