This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 21 Feb, 2017 1 commit
  2. 20 Feb, 2017 1 commit
    • kristenk's avatar
      Allow the solver to toggle manual flags to match constraints that have any qualifier. · f7f63ab4
      kristenk authored and Mikhail Glushenkov's avatar Mikhail Glushenkov committed
      This fixes #4299. The change gives the dependency solver the flexibility to link
      dependencies when the user has only set a manual flag on one of them.
      Previously, the solver would force the constrained dependency to have the
      flag value from the constraint and force the unconstrained dependency to have
      the default flag value. In cases where the single instance restriction required
      the dependencies to be linked, the solver couldn't find a solution.
      
      Qualified constraints can still be used to force different dependencies on a
      package to use different flag values. For example,
      "--constraint 'pkg +flag' --constraint 'pkg2:setup.pkg -flag'" turns the flag on
      for the top-level dependency and off for the setup dependency.
      
      I also stored flag default values in the search tree to simplify the code.
      f7f63ab4
  3. 19 Feb, 2017 1 commit
  4. 18 Feb, 2017 1 commit
  5. 17 Feb, 2017 3 commits
  6. 12 Feb, 2017 1 commit
  7. 31 Jan, 2017 1 commit
    • Ryan Scott's avatar
      Require echo-0.1.3 · 8977b657
      Ryan Scott authored
      echo-0.1.3 introduces a dependency on the minimalistic mintty library, so we
      need to add that to ./bootstrap.sh as well.
      8977b657
  8. 26 Jan, 2017 3 commits
  9. 25 Jan, 2017 1 commit
  10. 19 Jan, 2017 1 commit
  11. 17 Jan, 2017 2 commits
  12. 11 Jan, 2017 1 commit
  13. 06 Jan, 2017 1 commit
  14. 22 Dec, 2016 1 commit
  15. 07 Dec, 2016 2 commits
  16. 05 Dec, 2016 1 commit
  17. 27 Nov, 2016 1 commit
  18. 22 Nov, 2016 1 commit
  19. 20 Nov, 2016 2 commits
  20. 16 Nov, 2016 1 commit
  21. 29 Oct, 2016 1 commit
    • Jason Dagit's avatar
      Require Cabal >= 1.20 in new-build. (#4051) · 80de7ff4
      Jason Dagit authored and Edward Z. Yang's avatar Edward Z. Yang committed
      Constrain Cabal >= 1.20 in all new-build install plans. This solves problems where Cabal 1.18 don't have a good enough API to let us handle the new-style store (we need --dependency flags.)
      
      In the future we plan to relax this to only Setup.hs dependencies.
      
      Fixes issue #3932.
      80de7ff4
  22. 26 Oct, 2016 3 commits
  23. 25 Oct, 2016 1 commit
    • Edward Z. Yang's avatar
      Drop version check when resolving package names. · af24cefe
      Edward Z. Yang authored
      
      
      In #4017, hvr reported that when he used --allow-older/--allow-newer,
      there was an assert failure in toConfiguredComponent.  Indeed
      the problem was that toConfiguredComponent was testing version
      ranges of build-depends to determine which package to select, but
      there was no satisfying one (since the build-depends field had
      not been updated.)
      
      After thinking about this for a bit, it seemed a bit bogus for
      us to be doing another version check at this late phase; we
      already picked dependencies earlier in the configuration process.
      So I decided to drop it.
      
      To drop it, however, I needed to remove support for a feature (discussed
      in #4020), which uses version ranges to disambiguate whether or not a
      dependency is on an external package or an internal package.  This
      feature doesn't seem to be very useful.  If someone asks, I'll
      check on Hackage to see if anyone is using it.
      
      Also added some useful extra debug info.
      
      Fixes #4020 and #4017
      
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      af24cefe
  24. 22 Oct, 2016 1 commit
  25. 18 Oct, 2016 1 commit
  26. 14 Oct, 2016 1 commit
  27. 09 Oct, 2016 1 commit
  28. 06 Oct, 2016 2 commits
    • Edward Z. Yang's avatar
      1be2b213
    • Mikhail Glushenkov's avatar
      Fix CI on Mac OS X with GHC 7.8 and earlier. · 2ed454ee
      Mikhail Glushenkov authored
      
      
      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: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      2ed454ee
  29. 29 Sep, 2016 1 commit
  30. 26 Sep, 2016 1 commit
    • Herbert Valerio Riedel's avatar
      Introduce `Distribution.Client.Compat.Prelude` · 82a22706
      Herbert Valerio Riedel authored
      This is supposed to become more or less a superset of Cabal's
      `Distribution.Compat.Prelude`.
      
      As a side-effect,t his exposes `Distribution.Compat.Prelude` from the
      Cabal library (which may be actually a good thing, as it may be useful
      module to Setup.hs writers).
      82a22706