This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 23 Aug, 2013 2 commits
  2. 24 Jul, 2013 1 commit
  3. 20 Jul, 2013 1 commit
  4. 18 Jul, 2013 1 commit
  5. 17 Jul, 2013 1 commit
  6. 27 Jun, 2013 1 commit
    • Ben Millwood's avatar
      Slim down exception compatibility modules · 80a2226a
      Ben Millwood authored
      handleIO and throwIOIO in the cabal-install compat module were
      completely unused, so they're just binned.
      
      IOException, SomeException and onException are now just used from
      Control.Exception, since these days it's available on all supported
      build configurations.
      
      There are some more functions which can be removed, but these are the
      easiest and least invasive.
      80a2226a
  7. 05 Jun, 2013 1 commit
  8. 29 May, 2013 2 commits
  9. 17 May, 2013 2 commits
    • Mikhail Glushenkov's avatar
      Make newly-added add-source deps override previously installed versions. · e8742a5c
      Mikhail Glushenkov authored
      Fixes #1197.
      
      This patch is a bit large because it includes several related changes:
      
      1) Remove 'installUseSandbox' from 'InstallFlags' and pass 'useSandbox' as an
      additional argument instead.
      
      2) Instead of calling 'reinstallAddSourceDeps' from 'installAction', always pass
      'SandboxPackageInfo' to 'install'.
      
      3) Set the timestamps of newly-added add-source deps to 0 in the timestamp file.
      
      4) Move the timestamp file update to 'postInstallActions' from
      'withModifiedDeps'. This way, the timestamps are updated even when the user runs
      'install --only-dependencies' or 'install some-add-source-dep-package-id'.
      e8742a5c
    • Mikhail Glushenkov's avatar
      Apply 'sandboxInstallPolicy' after 'reinstallTargets'. · 35b6bda9
      Mikhail Glushenkov authored
      Otherwise 'install --reinstall' in a sandbox reinstall the contents of the whole
      sandbox.
      35b6bda9
  10. 16 May, 2013 1 commit
    • Mikhail Glushenkov's avatar
      Instead of pruning, make an install plan for the whole environment. · 99dc4056
      Mikhail Glushenkov authored
      Previously, we used a hack for reinstalling reverse dependencies: we created an
      install plan for the sandboxed package and the modified add-source deps and then
      pruned the sandboxed package from it. This missed those revdeps that the
      sandboxed package didn't depend on and also broke the sandboxed package if it
      was installed in the sandboxed package DB (see #1229).
      
      This commit replaces that hack with a more principled approach: we create a plan
      for the whole environment (all packages installed in the sandbox), constraining
      the modified add-source deps to be reinstalled and the already installed
      packages to be preferably not.
      
      Fixes #1229.
      99dc4056
  11. 13 May, 2013 1 commit
  12. 18 Apr, 2013 1 commit
  13. 04 Mar, 2013 1 commit
  14. 03 Mar, 2013 2 commits
  15. 01 Mar, 2013 1 commit
    • lukexi's avatar
      Return Maybe Platform as part of compiler configure, and place it in... · 7a0941c8
      lukexi authored
      Return Maybe Platform as part of compiler configure, and place it in LocalBuildInfo as hostPlatform.
      GHC infers the platform form ghc --info using new 'platformFromTriple' function. Other compilers return Nothing, which triggers fallback to old behavior of using buildPlatform. hostPlatform is then threaded through to initialPathTemplateEnv.
      7a0941c8
  16. 04 Jan, 2013 1 commit
  17. 10 Dec, 2012 1 commit
  18. 09 Dec, 2012 5 commits
  19. 08 Dec, 2012 1 commit
  20. 08 Nov, 2012 1 commit
  21. 05 Nov, 2012 1 commit
  22. 30 Oct, 2012 1 commit
  23. 17 Oct, 2012 1 commit
  24. 15 Oct, 2012 1 commit
  25. 29 Sep, 2012 2 commits
    • Duncan Coutts's avatar
      On install, update the .cabal file with the one from the index · 22d37722
      Duncan Coutts authored
      (patch manually merged into the cabal-1.16 branch)
      
      This allows us to make minor changes to packages after they have been
      released, without changing the package .tar.gz file. We already keep
      the .cabal file outsite the package in the index and use it for
      dependency planning. This already lets us do fixes such as making
      dependency constraints tighter. Currently we cannot make dep
      constraints more relaxed however, since the original .cabal file is
      the one used when we get to the actual configure step.
      
      So with this change, we now use the updated .cabal file for the
      configure and build too. So there's more fixes we can do post-release.
      In particlar, in combination with easier editing on hackage, this
      should help us address the problems around the PVP and open or closed
      version constraints. It should allow a system of conservative upper
      bounds, but allow editing them when new versions of deps are released
      and we find that they happen to work fine.
      22d37722
    • Duncan Coutts's avatar
      On install, update the .cabal file with the one from the index · b92cbb04
      Duncan Coutts authored
      This allows us to make minor changes to packages after they have been
      released, without changing the package .tar.gz file. We already keep
      the .cabal file outsite the package in the index and use it for
      dependency planning. This already lets us do fixes such as making
      dependency constraints tighter. Currently we cannot make dep
      constraints more relaxed however, since the original .cabal file is
      the one used when we get to the actual configure step.
      
      So with this change, we now use the updated .cabal file for the
      configure and build too. So there's more fixes we can do post-release.
      In particlar, in combination with easier editing on hackage, this
      should help us address the problems around the PVP and open or closed
      version constraints. It should allow a system of conservative upper
      bounds, but allow editing them when new versions of deps are released
      and we find that they happen to work fine.
      b92cbb04
  26. 28 Aug, 2012 1 commit
  27. 25 Aug, 2012 1 commit
    • refold's avatar
      Make 'install --dry-run' print the latest available version of a package. · 0455ff5a
      refold authored
      Print the latest available version of a package when the solver has picked a
      different version for some reason. Inspired by Brent Yorgey's highlight-versions
      tool [1].
      
      Example of output:
      
      $ cabal install --dry-run repa
      Resolving dependencies...
      In order, the following would be installed (use -v for more details):
      primitive-0.4.1
      random-1.0.1.1
      QuickCheck-2.4.2 (latest: 2.5)
      vector-0.9.1
      repa-3.2.1.1
      
      $ cabal install --dry-run repa -v
      Reading available packages...
      Choosing modular solver.
      Resolving dependencies...
      In order, the following would be installed:
      primitive-0.4.1 (new package)
      random-1.0.1.1 (new package)
      QuickCheck-2.4.2 (latest: 2.5) (new package)
      vector-0.9.1 (new package)
      repa-3.2.1.1 (new package)
      
      [1] http://byorgey.wordpress.com/2012/08/25/identifying-outdated-packages-in-cabal-install-plans/
      0455ff5a
  28. 16 Aug, 2012 2 commits
    • ian@well-typed.com's avatar
      Ensure that the cabal-install logfile gets closed · 9e79aa64
      ian@well-typed.com authored
      cabal was failing with:
      
      $ cabal --config-file=/home/hackage-docs/hackage-docs/build-cache/cabal-config install --enable-documentation --enable-tests --haddock-html-location='http://192.168.142.1:8080/package/$pkg-$version/doc' --haddock-option=--built-in-themes --haddock-contents-location='http://192.168.142.1:8080/package/$pkg-$version' --haddock-hyperlink-source --prefix=/home/hackage-docs/hackage-docs/build-cache HUnit-1.2.5.1
      Resolving dependencies...
      /home/hackage-docs/hackage-docs/build-cache/local.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory)
      cabal: /home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log: resource busy
      
      as it tried to open the log file for reading when it already had it open
      for writing:
      
      open("/home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND|O_NONBLOCK, 0666) = 3
      open("/home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 5
      close(5)                                = 0
      close(3)                                = 0
      9e79aa64
    • refold's avatar
      Initialise the 'jobs' config file setting with the current number of CPU cores. · c247ec75
      refold authored
      Fixes #982. Additionally, running 'install -j' without the numerical argument
      will have the same effect at runtime.
      
      Side effect: 'install -jNUM' doesn't work when there's a space between -j and
      NUM.
      c247ec75
  29. 10 Aug, 2012 1 commit
  30. 29 Jul, 2012 1 commit
    • ian@well-typed.com's avatar
      Ensure that the cabal-install logfile gets closed · 42c94195
      ian@well-typed.com authored
      cabal was failing with:
      
      $ cabal --config-file=/home/hackage-docs/hackage-docs/build-cache/cabal-config install --enable-documentation --enable-tests --haddock-html-location='http://192.168.142.1:8080/package/$pkg-$version/doc' --haddock-option=--built-in-themes --haddock-contents-location='http://192.168.142.1:8080/package/$pkg-$version' --haddock-hyperlink-source --prefix=/home/hackage-docs/hackage-docs/build-cache HUnit-1.2.5.1
      Resolving dependencies...
      /home/hackage-docs/hackage-docs/build-cache/local.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory)
      cabal: /home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log: resource busy
      
      as it tried to open the log file for reading when it already had it open
      for writing:
      
      open("/home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND|O_NONBLOCK, 0666) = 3
      open("/home/hackage-docs/.cabal/logs/HUnit-1.2.5.1.log", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 5
      close(5)                                = 0
      close(3)                                = 0
      42c94195