diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-03-10 15:49:18 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-03-10 15:49:18 -0400 |
commit | 2878880f7b7de4ef78abf6c39434153a1a3647bc (patch) | |
tree | 2ea2026d4fdc37eb7a48fcfc790a83b8a25d6c60 | |
parent | 7204a6774d81b681be9ea4733596dd58a05906b1 (diff) |
Revert "Drop support for building without network-uri."
This reverts commit bfad6f5a7d156d5ddf0e5cf3840d8d22f82a2377.
Need it in stable w/o backports for the ancient autobuilder.
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | git-annex.cabal | 11 | ||||
-rw-r--r-- | stack.yaml | 1 |
3 files changed, 10 insertions, 3 deletions
@@ -13,7 +13,6 @@ git-annex (6.20170301.2) UNRELEASED; urgency=medium in the warning message. * Windows: Improve handling of shebang in external special remote program, searching for the program in the PATH. - * Drop support for building without network-uri. * Drop support for building with old versions of dns and http-conduit. -- Joey Hess <id@joeyh.name> Thu, 02 Mar 2017 12:51:40 -0400 diff --git a/git-annex.cabal b/git-annex.cabal index d6428cadc..a2bf57b4e 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -291,6 +291,10 @@ Flag Benchmark Description: Enable benchmarking Default: False +Flag network-uri + Description: Get Network.URI from the network-uri package + Default: True + Flag Dbus Description: Enable dbus support @@ -314,8 +318,6 @@ Executable git-annex stm (>= 2.3), mtl (>= 2), uuid (>= 1.2.6), - network (>= 2.6), - network-uri (>= 2.6), process, data-default, case-insensitive, @@ -374,6 +376,11 @@ Executable git-annex if os(Linux) GHC-Options: -optl-Wl,--as-needed + if flag(network-uri) + Build-Depends: network-uri (>= 2.6), network (>= 2.6) + else + Build-Depends: network (< 2.6), network (>= 2.4) + if (os(windows)) Build-Depends: Win32, Win32-extras, unix-compat (>= 0.4.1.3), setenv, process (>= 1.3.0.0) diff --git a/stack.yaml b/stack.yaml index 0a86233b5..78cdc87ac 100644 --- a/stack.yaml +++ b/stack.yaml @@ -4,6 +4,7 @@ flags: production: true assistant: true pairing: true + network-uri: true s3: true testsuite: true webdav: true |