This is the cabal driver used during the GHC build. This change makes it use the stock ghc ('ghc' from the PATH) instead of the default (cross-compiler) for compiling Setup.hs. This is needed obviously because Setup.hs must run on the local machine. --- ghc-6.10.2.orig/libraries/cabal-bin.hs 2009-03-31 06:13:15.000000000 +1300 +++ ghc-6.10.2/libraries/cabal-bin.hs 2009-06-18 15:54:37.000000000 +1200 @@ -51,7 +51,7 @@ -- build Setup in order to build, and Setup isn't built already, -- then there shouldn't be anything to clean anyway. unless cleaning $ - rawSystemExit verbosity ghc ["-package-conf", packageConf, + rawSystemExit verbosity "ghc" ["-package-conf", packageConf, "--make", "Setup", "-package", "Cabal-" ++ useCabalVersion, "-o", "Setup"]