Commit 2ed454ee authored by Committed by Edward Z. YangBrowse files
Fix CI on Mac OS X with GHC 7.8 and earlier.
On recent OS X, Cabal does not work correctly because it assumes that a permission denied error when reading permissions on executables, resulting in errors like "Setup: /usr/bin/ar: permission denied". The proximal fix for this is to add a constraint on unix when we build Cabal/cabal-install to avoid building with the buggy version of unix. But this causes other problems: - Bumping the version of unix means that our local build of Cabal will depend on things from the store. But we weren't passing this to GHC when compiled Setup.hs for Cabal's package-tests. Set CABAL_PACKAGETESTS_DB_STACK env var explicitly to point to the right locations. - The new configuration of versions exposed some bugs in some macro expanded code in cabal-install; we qualified those imports to squash unused warnings. - The cabal-install integration-tests occasionally use Cabal from the system GHC. Since this will never work on OS X, we just skip the tests in those cases. Signed-off-by: Edward Z. Yang <firstname.lastname@example.org>