[Hackage] #541: bootstrap.sh ignores PREFIX environment variable

Hackage trac at galois.com
Sun Apr 19 17:21:52 EDT 2009


#541: bootstrap.sh ignores PREFIX environment variable
---------------------------------+------------------------------------------
  Reporter:  nr                  |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.6.0.1
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:  Linux               |  
---------------------------------+------------------------------------------
 bootstrap.sh breaks if PREFIX is not $HOME/.cabal.
 Patch (from git diff) below:
 {{{
 diff --git a/bootstrap.sh b/bootstrap.sh
 index 79729af..29f2b65 100755
 --- a/bootstrap.sh
 +++ b/bootstrap.sh
 @@ -132,7 +132,7 @@ install_pkg () {
      || die "Compiling the Setup script failed"
    [ -x Setup ] || die "The Setup script does not exist or cannot be run"

 -  ./Setup configure --user "--prefix=${HOME}/.cabal" \
 +  ./Setup configure --user "--prefix=$PREFIX" \
      --with-compiler=${GHC} --with-hc-pkg=${GHC_PKG} \
      ${EXTRA_CONFIGURE_OPTS} ${VERBOSE} \
      || die "Configuring the ${PKG} package failed"
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/541>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list