[GHC] #3603: cabal-install bootstrap script respects PREFIX inconsistently, fails

GHC trac at galois.com
Tue Oct 20 16:28:38 EDT 2009


#3603: cabal-install bootstrap script respects PREFIX inconsistently, fails
-----------------------------+----------------------------------------------
Reporter:  zooko             |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 The bootstrap.sh script that comes with cabal-install is documented as
 respecting a PREFIX environment variable, but if you pass one it will
 ignore it during the installation of the executable:

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

 But then respect it during the post-install self-test:

 {{{
 CABAL_BIN="$PREFIX/bin"
 if [ -x "$CABAL_BIN/cabal" ]
 then
 }}}
 ...
 {{{
 else
     echo "Sorry, something went wrong."
 fi
 }}}

 Which means that it always emits the "Sorry, something went wrong."
 message and not the success message when PREFIX was specified.  Also that
 it installed into the wrong directory.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3603>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list