-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal.project: Add a constraint on unix. #3942
Conversation
OK, but why not also put the constraint in |
If I understand #2653 correctly, the constraint should be in |
...and now it fails on all GHCs <= 7.8:
Looks related to this fragment in PackageTester.hs:
@ezyang, you wrote that code, any ideas? The |
Actually, the problem is obvious: for some reason, the Setup build isn't using the Nix-local build store, so the Cabal library is broken because it can't find the newer Unix. Fix coming. |
Ah, this is annoying. Some of the cabal-install tests use the built-in Cabal library to test Custom scripts, and those are obviously going to fail. Ugh. |
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 <[email protected]>
I think the newest version of the patch I've pushed here should green CI. When it finishes testing I'll merge. |
@ezyang Awesome, thanks! |
Fixes #3938.