packages/Cabal.git
6 months agoChangelog update. [ci skip] 2.4
Mikhail Glushenkov [Wed, 5 Dec 2018 14:16:51 +0000 (14:16 +0000)] 
Changelog update. [ci skip]

6 months agoMerge pull request #5753 from hvr/pr/findexe-win32
Mikhail Glushenkov [Wed, 5 Dec 2018 13:46:44 +0000 (13:46 +0000)] 
Merge pull request #5753 from hvr/pr/findexe-win32

Fix `--with-compiler` failing to locate compiler on Windows

(cherry picked from commit c25a2233b00c1005dcfc276d002e75e45bc75781)

6 months agoBump the dependency on zip-archive.
Mikhail Glushenkov [Tue, 4 Dec 2018 02:28:54 +0000 (02:28 +0000)] 
Bump the dependency on zip-archive.

6 months agoMerge pull request #5730 from haskell/remove-unix-constraiant
Oleg Grenrus [Fri, 30 Nov 2018 13:56:16 +0000 (15:56 +0200)] 
Merge pull request #5730 from haskell/remove-unix-constraiant

Remove unix constraint from cabal.project

6 months agoRemove unix constraint from cabal.project
Oleg Grenrus [Mon, 26 Nov 2018 04:53:20 +0000 (06:53 +0200)] 
Remove unix constraint from cabal.project

- Add bunch of installed constraints to cabal.project.local.travis
- Fix compat in D.Compat.Directory
- Compat (process-1.1/ghc-7.6) in cabal-testsuite
- validate.sh improvements
- Warningless cabal-testsuite build

7 months agoFix a Sphinx warning. [ci skip]
Mikhail Glushenkov [Sun, 25 Nov 2018 22:10:21 +0000 (22:10 +0000)] 
Fix a Sphinx warning. [ci skip]

Plus port the Cabal spec changelog from master.

(cherry picked from commit 21ba817ec50d2f7095c31888f59cabbc7fb99685)

7 months agoDocument --write-ghc-environment-files. [ci skip]
Mikhail Glushenkov [Sun, 25 Nov 2018 22:09:57 +0000 (22:09 +0000)] 
Document --write-ghc-environment-files. [ci skip]

(cherry picked from commit cb9c5bc92864d99f64de287402239b4905fb086c)

7 months agoMerge pull request #5722 from ezyang/pr/no-more-origin-travis [ci skip]
Mikhail Glushenkov [Sun, 25 Nov 2018 21:28:25 +0000 (21:28 +0000)] 
Merge pull request #5722 from ezyang/pr/no-more-origin-travis [ci skip]

Don't record ORIGIN anymore, it's being cross-referenced.

(cherry picked from commit 82673e1dc409d94220b7a886ce2e81573329e570)

7 months agoChangelog update. [ci skip]
Mikhail Glushenkov [Sun, 25 Nov 2018 21:20:22 +0000 (21:20 +0000)] 
Changelog update. [ci skip]

7 months agoComment. [ci skip]
Mikhail Glushenkov [Sun, 25 Nov 2018 20:58:51 +0000 (20:58 +0000)] 
Comment. [ci skip]

(cherry picked from commit f663e4b1a852ab071eeff2f34c7f204924e03a32)

7 months agoMerge pull request #5711 from 23Skidoo/dont-generate-env-file-setting
Mikhail Glushenkov [Sun, 25 Nov 2018 15:36:56 +0000 (15:36 +0000)] 
Merge pull request #5711 from 23Skidoo/dont-generate-env-file-setting

Improve the handling of .ghc.environment files

(cherry picked from commit cd37f73a39905ca632577aac6a74e01453269512)

7 months agoMerge pull request #5708
Herbert Valerio Riedel [Sun, 25 Nov 2018 15:41:02 +0000 (16:41 +0100)] 
Merge pull request #5708

Fix "source-repository-package breaks 'cabal v2-install'" #5643

7 months agoAdd support for local/remote `.tar.gz` tarball packages
Herbert Valerio Riedel [Sat, 24 Nov 2018 00:45:34 +0000 (01:45 +0100)] 
Add support for local/remote `.tar.gz` tarball packages

Resolves the non-vcs-related part of #5643

NB: this patch mostly moves around code; use
    `git show --ignore-space-change` to facilitate code-review

7 months agoMerge pull request #5709 from 23Skidoo/travis-use-cabal-2.4
Mikhail Glushenkov [Sun, 25 Nov 2018 10:18:26 +0000 (10:18 +0000)] 
Merge pull request #5709 from 23Skidoo/travis-use-cabal-2.4

Travis: Use cabal-install-2.4, drop cabal-install-head.
(cherry picked from commit 4907fe751799aefa63918f4fc90afe1f5c438cb6)

7 months agoCreate sdists for remote source repos
Sam Halliday [Fri, 23 Nov 2018 11:00:31 +0000 (11:00 +0000)] 
Create sdists for remote source repos

When creating an sdist, if the project is a remote source repo then
use the local directory if it is available.

This allows projects with remote source repos to use the v2-install
command.

Resolves: #5643

7 months agoBump the cabal-install version to 2.4.1.0.
Mikhail Glushenkov [Sat, 24 Nov 2018 00:23:21 +0000 (00:23 +0000)] 
Bump the cabal-install version to 2.4.1.0.

7 months agoDocumentation update. [ci skip]
Mikhail Glushenkov [Fri, 23 Nov 2018 19:58:18 +0000 (19:58 +0000)] 
Documentation update. [ci skip]

(cherry picked from commit b8b3b4142762686b0eec58bd2bf9645c9ebca559)

7 months agoOct 2018 has come and gone. [ci skip]
Mikhail Glushenkov [Fri, 23 Nov 2018 19:30:23 +0000 (19:30 +0000)] 
Oct 2018 has come and gone. [ci skip]

7 months agoFix CustomWithoutCabalDefaultMain test for GHC 8.6
Herbert Valerio Riedel [Thu, 22 Nov 2018 23:01:07 +0000 (00:01 +0100)] 
Fix CustomWithoutCabalDefaultMain test for GHC 8.6

This tweaks the expected GHC error message because
GHC 8.6 emits yet a different log message for the missing module:

    Could not load module `Distribution.Simple'
    It is a member of the hidden package `Cabal-2.4.0.1'.
    Perhaps you need to add `Cabal' to the build-depends in your .cabal file.

7 months agoMerge pull request #5706 from hvr/pr/2.4/issue-5578
Mikhail Glushenkov [Thu, 22 Nov 2018 22:13:45 +0000 (22:13 +0000)] 
Merge pull request #5706 from hvr/pr/2.4/issue-5578

Backport #5578

7 months agoAdd `-f(no-)error-spans` flag to hash-irrelevant flags
Herbert Valerio Riedel [Wed, 21 Nov 2018 23:49:08 +0000 (00:49 +0100)] 
Add `-f(no-)error-spans` flag to hash-irrelevant flags

This flag is used by the default build-command in `haskell-mode` so
it's very noticeable if haskell-mode causes to recompile the world

NB: no changelog entry as this can be considered a follow-up to #5589

(cherry picked from commit 50be57e6db24eafa0ce412f3224fa4a4a037f89a)

7 months agoFix-up Werror from c549d9edee27024c1818c92f627c706f4959c97a
Herbert Valerio Riedel [Wed, 21 Nov 2018 23:19:55 +0000 (00:19 +0100)] 
Fix-up Werror from c549d9edee27024c1818c92f627c706f4959c97a

7 months agoAdd test for 'v2-build --only-configure'
Daniel Gröber [Sun, 28 Oct 2018 17:15:26 +0000 (18:15 +0100)] 
Add test for 'v2-build --only-configure'

(cherry picked from commit e65393b46f3da5e9cb8c9b464d9b645a2199cd47)

7 months agoDocument '--only-configure' flag
Daniel Gröber [Mon, 17 Sep 2018 22:30:42 +0000 (00:30 +0200)] 
Document '--only-configure' flag

(cherry picked from commit e2e78592051b7c15332f518cdb9d51cb9fc92d97)

7 months agoAdd new v2-build flag '--only-configure'
Daniel Gröber [Mon, 17 Sep 2018 21:59:05 +0000 (23:59 +0200)] 
Add new v2-build flag '--only-configure'

When this flag is active we only execute the Cabal build system's 'configure'
step for each local unit and nothing else. This allows (re)generating the Setup
configuration cache which is accessed directly by tooling like ghc-mod and HIE
through cabal-helper and allows such tooling to forgoe a full rebuild.

(cherry picked from commit 193f4ab0df4ead40c8d1fed8554c100b58b7105e)

7 months agoAdd TargetActionConfigure
Daniel Gröber [Mon, 17 Sep 2018 21:49:31 +0000 (23:49 +0200)] 
Add TargetActionConfigure

This allows us to request only a configure step be run for a given unit.

(cherry picked from commit 69dcfb6cb5a5c810f8dd3c6686a6f7c5ae243d90)

7 months agoMerge pull request #5635 from typedrat/package-casing-warning
Alexis Williams [Wed, 21 Nov 2018 08:37:35 +0000 (00:37 -0800)] 
Merge pull request #5635 from typedrat/package-casing-warning

Add message to alert user to potential package casing errors.

(cherry picked from commit 09ff900b77ba086c60099e1786d3e5a22ecd0e12)

7 months agoRemove changelog entry for reverted 'optional-target' field
Daniel Gröber [Wed, 21 Nov 2018 19:37:02 +0000 (20:37 +0100)] 
Remove changelog entry for reverted 'optional-target' field

7 months agoRevert addition of 'optional-target' field to plan.json
Daniel Gröber [Wed, 21 Nov 2018 19:31:25 +0000 (20:31 +0100)] 
Revert addition of 'optional-target' field to plan.json

Turns out we don't absolutely need this field for the tooling use-case after
all. Instead of calling `v2-build all` we can simply enumerate all the
components we want built explicitly. (doh!)

We can get all the component names in a build plan by doing `v2-build --dry-run`
which will generate plan.json.

7 months agoMerge pull request #5701 from haskell/fix-5699
Alexis Williams [Wed, 21 Nov 2018 08:42:13 +0000 (00:42 -0800)] 
Merge pull request #5701 from haskell/fix-5699

new-clean should not delete dist-newstyle/src

(cherry picked from commit 3dfc64239309f1748df4047f3fe6f8d4b64d97f2)

7 months agoAdd changelog entries for plan.json additions
Herbert Valerio Riedel [Tue, 20 Nov 2018 21:34:48 +0000 (22:34 +0100)] 
Add changelog entries for plan.json additions

See #5659 and #5695 for details.

7 months agoAdd cabal file SHA256 hash to plan.json (#5695)
Arian van Putten [Tue, 20 Nov 2018 21:28:32 +0000 (22:28 +0100)] 
Add cabal file SHA256 hash to plan.json (#5695)

This is useful for external tools like plan2nix [1] which
can then create their own build plan based on the cabal
solver output, even in the presence of revised cabal files.

This adds a new `pkg-cabal-sha256` field alongside the already
existing `pkg-src-sha256` field. Always populated and uniquely
identifies (to the degree SHA256 is collision-free) which `.cabal`
package description file was used for constructing and executing
the build-plan.

[1]: https://github.com/angerman/nix-tools/tree/master/plan2nix

(cherry picked from commit f7bcdfe754d84d53d44450b38c27812f6246af52)

7 months agoMerge pull request #5692 from fgaz/fix-no-exe-warn-on-libexe
Mikhail Glushenkov [Mon, 19 Nov 2018 13:00:56 +0000 (13:00 +0000)] 
Merge pull request #5692 from fgaz/fix-no-exe-warn-on-libexe

Fix erroneous "no exes" warning on lib+exe packages

(cherry picked from commit 3fa8531e0069fb043441297bef1bf4c8a3116f82)

7 months agoappveyor.yml: Don't cache dist-newstyle.
Mikhail Glushenkov [Mon, 12 Nov 2018 16:32:08 +0000 (16:32 +0000)] 
appveyor.yml: Don't cache dist-newstyle.

7 months agoModify expected output (see #5119).
Mikhail Glushenkov [Mon, 12 Nov 2018 14:22:24 +0000 (14:22 +0000)] 
Modify expected output (see #5119).

7 months agoTry to fix Travis, cont.
Mikhail Glushenkov [Mon, 12 Nov 2018 08:35:45 +0000 (08:35 +0000)] 
Try to fix Travis, cont.

7 months agoTry to fix Travis.
Mikhail Glushenkov [Mon, 12 Nov 2018 01:58:38 +0000 (01:58 +0000)] 
Try to fix Travis.

7 months agoMerge pull request #5659 from DanielG/plan-json-req-by-default
Mikhail Glushenkov [Sun, 11 Nov 2018 20:32:07 +0000 (20:32 +0000)] 
Merge pull request #5659 from DanielG/plan-json-req-by-default

Add 'optional-target' field to plan.json

(cherry picked from commit bba31e68e1e274ba2b4b50a0466f36664615705f)

7 months agoMerge pull request #5679 from int-index/parsing-fluke
Mikhail Glushenkov [Sun, 11 Nov 2018 19:54:07 +0000 (19:54 +0000)] 
Merge pull request #5679 from int-index/parsing-fluke

Remove 'do' in 'instance Text ModuleRenaming'

(cherry picked from commit f4d41dd888119b3489bc97a8d84d02105c6f452c)

7 months agoCompile profiling library for use with GHCi (#5592)
Zejun Wu [Sun, 11 Nov 2018 02:59:38 +0000 (18:59 -0800)] 
Compile profiling library for use with GHCi (#5592)

Compile profiling library for use with GHCi when both
`--enable-profiling` and `--enable-library-for-ghci` are passed.

The merged `HS${package}.p_o` file can be loaded instead of
`libHS${package}_p.a` when we run GHCi with
`-prof -fexternal-interpreter` to speed up the linking time.

This follows the same idea in ghc side:
https://phabricator.haskell.org/D5169
and is required to support same feature when building ghc
with hadrian as it uses `cabal copy`:
https://phabricator.haskell.org/D5270

(cherry picked from commit bc6167e6ea43f71a5bac130e90669594e5a439ce)

7 months agoAdd a cabal.project file for the LIB_ONLY configuration.
Mikhail Glushenkov [Sat, 10 Nov 2018 04:15:11 +0000 (04:15 +0000)] 
Add a cabal.project file for the LIB_ONLY configuration.

7 months agoRevert "Relax the dependency on base."
Mikhail Glushenkov [Sat, 10 Nov 2018 04:08:53 +0000 (04:08 +0000)] 
Revert "Relax the dependency on base."

This reverts commit 7504653fa0f65f0a3da4d2c8ae6b8048021f9c3d.

7 months agoRelax the dependency on base.
Mikhail Glushenkov [Sat, 10 Nov 2018 02:15:55 +0000 (02:15 +0000)] 
Relax the dependency on base.

Required to unbreak Travis.

7 months agoUpdate CI config.
Mikhail Glushenkov [Sat, 10 Nov 2018 02:12:09 +0000 (02:12 +0000)] 
Update CI config.

7 months agoInvalidate the AppVeyor cache.
Mikhail Glushenkov [Sat, 10 Nov 2018 00:18:26 +0000 (00:18 +0000)] 
Invalidate the AppVeyor cache.

[ci skip]

7 months agoUnbreak Travis.
Mikhail Glushenkov [Sat, 10 Nov 2018 00:15:55 +0000 (00:15 +0000)] 
Unbreak Travis.

7 months agoDocumentation update. [ci skip]
Mikhail Glushenkov [Fri, 9 Nov 2018 23:57:33 +0000 (23:57 +0000)] 
Documentation update. [ci skip]

This is actually implemented.

(cherry picked from commit 38be4968f6cc21104699fefb719f0eb6b0abb8a4)

7 months agoBump the version of cabal-install.
Mikhail Glushenkov [Fri, 9 Nov 2018 20:50:02 +0000 (20:50 +0000)] 
Bump the version of cabal-install.

7 months agoBump the version of lib:Cabal.
Mikhail Glushenkov [Fri, 9 Nov 2018 20:46:48 +0000 (20:46 +0000)] 
Bump the version of lib:Cabal.

7 months agoChangelog update. [ci skip]
Mikhail Glushenkov [Fri, 9 Nov 2018 20:43:26 +0000 (20:43 +0000)] 
Changelog update. [ci skip]

7 months agoChangelog update. [ci skip]
Mikhail Glushenkov [Fri, 9 Nov 2018 19:50:05 +0000 (19:50 +0000)] 
Changelog update. [ci skip]

7 months agoMerge pull request #5678 from quasicomputational/gh-5677
Mikhail Glushenkov [Fri, 9 Nov 2018 19:47:07 +0000 (19:47 +0000)] 
Merge pull request #5678 from quasicomputational/gh-5677

Suppress warnings in autogenerated signatures.

(cherry picked from commit f2c3025aeeb56213b736f658a5f688831d94037d)

7 months agoUnbreak Travis.
Mikhail Glushenkov [Fri, 9 Nov 2018 19:25:39 +0000 (19:25 +0000)] 
Unbreak Travis.

(cherry picked from commit 36279e01196c514ff47a7c6753bb32c1c7a4a9b0)

7 months agoMerge pull request #5674 from fgaz/hotfix/new-install/print-error
Francesco Gazzetta [Fri, 9 Nov 2018 11:07:38 +0000 (12:07 +0100)] 
Merge pull request #5674 from fgaz/hotfix/new-install/print-error

Warn on new-install failure (temp hotfix for #5641)

7 months agoMerge pull request #5676 from haskell/juhp-patch-1
Mikhail Glushenkov [Fri, 9 Nov 2018 10:43:54 +0000 (10:43 +0000)] 
Merge pull request #5676 from haskell/juhp-patch-1

allow network 2.8

(cherry picked from commit ae05a8c48b5316316671693f03c2889bbf020709)

7 months agoUpdate AUTHORS. [ci skip]
Mikhail Glushenkov [Thu, 8 Nov 2018 21:17:53 +0000 (21:17 +0000)] 
Update AUTHORS. [ci skip]

7 months agoChangelog update. [ci skip]
Mikhail Glushenkov [Thu, 8 Nov 2018 21:14:22 +0000 (21:14 +0000)] 
Changelog update. [ci skip]

7 months agoMerge pull request #5589 from merijn/master
Mikhail Glushenkov [Thu, 8 Nov 2018 21:07:32 +0000 (21:07 +0000)] 
Merge pull request #5589 from merijn/master

Cleans up the `-Werror` check, adds GHC 8.6.1 support and also filters RTS flags, fixing #5575

(cherry picked from commit e263e8cb911ecc300610df082faf77e00aff5372)

7 months agoWarn on new-install failure (temp hotfix for #5641)
Francesco Gazzetta [Thu, 8 Nov 2018 15:20:22 +0000 (16:20 +0100)] 
Warn on new-install failure (temp hotfix for #5641)

7 months agoChangelog entry for #5666
Francesco Gazzetta [Thu, 8 Nov 2018 09:26:18 +0000 (10:26 +0100)] 
Changelog entry for #5666

7 months agoChangelog entry for #5671
Francesco Gazzetta [Thu, 8 Nov 2018 09:25:03 +0000 (10:25 +0100)] 
Changelog entry for #5671

7 months agoChangelog entry for #5662
Francesco Gazzetta [Thu, 8 Nov 2018 09:23:40 +0000 (10:23 +0100)] 
Changelog entry for #5662

7 months agoChangelog entry for #5652
Francesco Gazzetta [Thu, 8 Nov 2018 09:20:24 +0000 (10:20 +0100)] 
Changelog entry for #5652

7 months agoMerge pull request #5671 from fgaz/new-install/dry
Francesco Gazzetta [Thu, 8 Nov 2018 08:32:13 +0000 (09:32 +0100)] 
Merge pull request #5671 from fgaz/new-install/dry

Don't install anything if --dry is used

7 months agoMerge pull request #5666 from fgaz/new-install/no-exes-warn
Francesco Gazzetta [Thu, 8 Nov 2018 08:12:23 +0000 (09:12 +0100)] 
Merge pull request #5666 from fgaz/new-install/no-exes-warn

Tell the user about --lib when new-installing a package with no exes

7 months agoAdd comment about absolute store path
Francesco Gazzetta [Tue, 6 Nov 2018 14:12:52 +0000 (15:12 +0100)] 
Add comment about absolute store path

7 months agoRevert "Add comment about absolute store path"
Francesco Gazzetta [Tue, 6 Nov 2018 14:10:39 +0000 (15:10 +0100)] 
Revert "Add comment about absolute store path"

This reverts commit 9d217525a1d20f8046716ad43f8412587a8e21be.

I don't know where that 'let' came from :-/

7 months agoMerge pull request #5662 from fgaz/relative-store
Francesco Gazzetta [Tue, 6 Nov 2018 12:50:00 +0000 (13:50 +0100)] 
Merge pull request #5662 from fgaz/relative-store

Make store path absolute

7 months agoChangelog entry for 878642e1e6014ed8424cefcdfbc41879516ab62b
Herbert Valerio Riedel [Mon, 5 Nov 2018 23:20:05 +0000 (00:20 +0100)] 
Changelog entry for 878642e1e6014ed8424cefcdfbc41879516ab62b

7 months agoAdd `-w`/`--with-compiler` flag to `cabal init` (#5658)
Herbert Valerio Riedel [Mon, 5 Nov 2018 23:16:50 +0000 (00:16 +0100)] 
Add `-w`/`--with-compiler` flag to `cabal init` (#5658)

`cabal init` needs a haskell compiler to operate but is missing the `-w` flag
other commands have (see also #4956). This patch addresses this inconsistency.

Fixes #5654
Fixes #4936
(cherry picked from commit 1916fca8a4476951b3f5a93becfa0100bfa75cb2)

7 months agoMerge pull request #5652 from fgaz/new-install/ambiguous-builddir
Francesco Gazzetta [Thu, 1 Nov 2018 21:07:48 +0000 (22:07 +0100)] 
Merge pull request #5652 from fgaz/new-install/ambiguous-builddir

Filter out ambiguous builddir flag

7 months agoMerge pull request #5653 from fgaz/new-install/fail-before-symlinking
Mikhail Glushenkov [Thu, 1 Nov 2018 18:25:00 +0000 (18:25 +0000)] 
Merge pull request #5653 from fgaz/new-install/fail-before-symlinking

Check early for failures in new-install

(cherry picked from commit 002b3017414920fb8b7a2322ef1c4ef3bfcf2112)

7 months agoMerge pull request #5651 from haskell/bgamari-patch-1
Mikhail Glushenkov [Thu, 1 Nov 2018 18:11:25 +0000 (18:11 +0000)] 
Merge pull request #5651 from haskell/bgamari-patch-1

Cabal: Allow time-1.9

7 months agoCabal: Allow time-1.9
Ben Gamari [Tue, 30 Oct 2018 20:17:01 +0000 (16:17 -0400)] 
Cabal: Allow time-1.9

7 months agoMerge pull request #5638 from fgaz/new-install/error-symlink
Mikhail Glushenkov [Tue, 30 Oct 2018 19:10:20 +0000 (19:10 +0000)] 
Merge pull request #5638 from fgaz/new-install/error-symlink

new-install: error on existing symlink, overwrite option
(cherry picked from commit a0684dfc798cddd0eec156d53ad47bdb0f67e5bd)

7 months agoUpdate changelog
Francesco Gazzetta [Mon, 29 Oct 2018 10:18:29 +0000 (11:18 +0100)] 
Update changelog

7 months agoFix monolithic inplace build tool PATH
Francesco Gazzetta [Sun, 21 Oct 2018 19:20:14 +0000 (21:20 +0200)] 
Fix monolithic inplace build tool PATH

Monolithic inplace packages have a directory for each exe, so we allow
multiple paths and return all the exe paths of the package.

Fixes #5104

7 months agoUpdate changelog
Francesco Gazzetta [Fri, 12 Oct 2018 11:25:17 +0000 (13:25 +0200)] 
Update changelog

7 months agoUpdate changelog
Francesco Gazzetta [Fri, 12 Oct 2018 11:23:55 +0000 (13:23 +0200)] 
Update changelog

8 months agoSetup: Don't skip repl for indefinite components (#5620)
Maciej Bielecki [Thu, 25 Oct 2018 05:32:51 +0000 (07:32 +0200)] 
Setup: Don't skip repl for indefinite components (#5620)

For some reason repl invocation was skipped for indefinite components.
However, GHCi seems to handle them just fine.

Fixes #5619.
(cherry picked from commit 9c6b142e62c7f747074ea9ef850585a5130bad36)

8 months agoChangelog entry for #5631. [ci skip]
Mikhail Glushenkov [Tue, 23 Oct 2018 20:00:44 +0000 (21:00 +0100)] 
Changelog entry for #5631. [ci skip]

8 months agoMerge pull request #5631 from AndreasPK/master
Mikhail Glushenkov [Tue, 23 Oct 2018 19:21:21 +0000 (21:21 +0200)] 
Merge pull request #5631 from AndreasPK/master

Fix a bug where cabal tried to copy files after moving them.

(cherry picked from commit b308a70938459f8954d97bf54ba45135b8a3fca5)

8 months agoChangelog entry for #5604
Herbert Valerio Riedel [Wed, 17 Oct 2018 15:50:59 +0000 (17:50 +0200)] 
Changelog entry for #5604

8 months agoDo register monolithic packages if they contain a buildable pub-lib (#5604)
Herbert Valerio Riedel [Wed, 17 Oct 2018 15:44:40 +0000 (17:44 +0200)] 
Do register monolithic packages if they contain a buildable pub-lib (#5604)

As the case of `cpphs-1.20.8` has shown in #5379, in cases when a
monolithic package gets installed due to its executable components
(i.e. `exe:cpphs`) into the store we *have* to register if there's a
buildable public library (i.e. `lib:cpphs`) that was built and installed
into the same store folder as otherwise this will cause build failures
once a target actually depends on `lib:cpphs`

This ought to fix #5379
(cherry picked from commit a4578fc8cb9ea56c95143e0b1cfff99d1e745384)

8 months agonew-sdist: Use a Windows-safe file modification time. (#5622)
quasicomputational [Tue, 16 Oct 2018 17:27:00 +0000 (18:27 +0100)] 
new-sdist: Use a Windows-safe file modification time. (#5622)

Using the Unix epoch is causing problems on Windows because it's
before MS-DOS's epoch of 1980-01-01. Picking a different, memorable
one ought to solve that.

Closes #5596. Backport of #5611.

8 months agoDatadir env var generation for vcs and tarballs
Francesco Gazzetta [Tue, 9 Oct 2018 09:47:06 +0000 (11:47 +0200)] 
Datadir env var generation for vcs and tarballs

Fixes #5469

8 months agoCheck existence of packagedb before dumping it
Francesco Gazzetta [Sat, 6 Oct 2018 12:10:07 +0000 (14:10 +0200)] 
Check existence of packagedb before dumping it

If the pkgdb does not exist, skip it and treat it as an empty one

Fixes #5516

8 months agoAdd doesPathExist to compat module
Francesco Gazzetta [Mon, 8 Oct 2018 08:46:19 +0000 (10:46 +0200)] 
Add doesPathExist to compat module

8 months agochangelog entry for #5567
Herbert Valerio Riedel [Thu, 4 Oct 2018 20:18:59 +0000 (22:18 +0200)] 
changelog entry for #5567

8 months agoExtend `cabal init` support for `cabal-version` selection (#5567)
Herbert Valerio Riedel [Thu, 4 Oct 2018 19:21:16 +0000 (21:21 +0200)] 
Extend `cabal init` support for `cabal-version` selection (#5567)

This adds support to `cabal init` for selecting the Cabal spec
version (i.e. the `cabal-version:` field) and also takes care
of translating between pre-SPDX and SPDX license ids.

(cherry picked from commit bf61e51658d2e8757778c6e2c0589812ecf1bb20)

8 months agoRemove a '*' kind annotation
Vladislav Zavialov [Sun, 5 Aug 2018 11:26:47 +0000 (14:26 +0300)] 
Remove a '*' kind annotation

8 months agoupdate changelog
Francesco Gazzetta [Thu, 4 Oct 2018 07:02:38 +0000 (09:02 +0200)] 
update changelog

8 months agoWarn when a symlink already exists
Francesco Gazzetta [Wed, 3 Oct 2018 12:28:23 +0000 (14:28 +0200)] 
Warn when a symlink already exists

Does not warn if the existing symlink already points to the correct location

Partial solution to #5491

8 months agoAdd belated changelog entry for #5351 [skip ci]
Herbert Valerio Riedel [Wed, 3 Oct 2018 16:17:48 +0000 (18:17 +0200)] 
Add belated changelog entry for #5351 [skip ci]

cc @mpickering

9 months agoMerge pull request #5584 from typedrat/fix-5554
Alexis Williams [Thu, 20 Sep 2018 18:51:32 +0000 (11:51 -0700)] 
Merge pull request #5584 from typedrat/fix-5554

Filter out executables from package-id flags

9 months agoSync up cabal metadata w/ metadata revision
Herbert Valerio Riedel [Mon, 17 Sep 2018 09:54:35 +0000 (11:54 +0200)] 
Sync up cabal metadata w/ metadata revision

cabal-install-2.4 doesn't build anymore w/ GHC 7.8 and older;
so the metadata revision took care to fixup the lower bound of
base and other boot libs to take the versions bundled w/ GHC 7.10.1
as the lower bounds.

Moreover, this also fixes some upper bounds not being PVP compliant.

9 months agoTry to fix Travis.
Mikhail Glushenkov [Tue, 11 Sep 2018 08:32:48 +0000 (09:32 +0100)] 
Try to fix Travis.

9 months agoBump lib:Cabal version to 2.4.0.1.
Mikhail Glushenkov [Tue, 11 Sep 2018 07:28:00 +0000 (08:28 +0100)] 
Bump lib:Cabal version to 2.4.0.1.

9 months agoChangelog entry for #5503 / #5573
Herbert Valerio Riedel [Sat, 8 Sep 2018 10:10:37 +0000 (12:10 +0200)] 
Changelog entry for #5503 / #5573

9 months agoAllow arguments to be passed to `Setup.hs haddock` for `build-type:configure`
Herbert Valerio Riedel [Sat, 8 Sep 2018 08:11:05 +0000 (10:11 +0200)] 
Allow arguments to be passed to `Setup.hs haddock` for `build-type:configure`

In the course of 4466310e48e8c401ca2492d0fc2c5018ad8de961 (see #5526) the
`Setup.hs haddock` CLI was extended to allow component ids to be passed
as positional arguments. However, `autoconfUserHooks` which is used in
case of `build-type: Configure` wasn't updated accordingly, and consequently
this caused `new-haddock` to break for packages using `Configure`.

cc @alexbiehl

Fixes #5503

(cherry picked from commit 86dabda8ff1eb31e80dc1ca2eff21e2839211fdd)