summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-11-11 17:52:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-11-11 17:52:01 -0400
commitba1615a18964ddd97006b1f0eb4e90842d0b3568 (patch)
tree3cc3e28b05e18696dd7592a6480738e4f8616a1e
parent8aef29e6258431f8df192ff0c77cd7af38b7afbf (diff)
parenta8be29be1539f0614d1dd5d4c51d13d2c848a33e (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
-rw-r--r--doc/bugs/network___62____61___2.4.0.1_is_not_in_Haskell_Platform_2012.4.0.0/comment_1_2c4b3757bb8de563edca65aeabcbbc5a._comment29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/bugs/network___62____61___2.4.0.1_is_not_in_Haskell_Platform_2012.4.0.0/comment_1_2c4b3757bb8de563edca65aeabcbbc5a._comment b/doc/bugs/network___62____61___2.4.0.1_is_not_in_Haskell_Platform_2012.4.0.0/comment_1_2c4b3757bb8de563edca65aeabcbbc5a._comment
new file mode 100644
index 000000000..a6df44da9
--- /dev/null
+++ b/doc/bugs/network___62____61___2.4.0.1_is_not_in_Haskell_Platform_2012.4.0.0/comment_1_2c4b3757bb8de563edca65aeabcbbc5a._comment
@@ -0,0 +1,29 @@
+[[!comment format=mdwn
+ username="http://joeyh.name/"
+ ip="4.152.108.27"
+ subject="comment 1"
+ date="2012-11-11T21:49:10Z"
+ content="""
+My code already supports using either, but I don't know how to tell cabal to set -DWITH_OLD_URI to build with the old one, when it's installed. I've in the past tried to deal with this by defining cabal flags, and it didn't work out too well, tending to land users solidly in cabal hell.
+
+You can patch the cabal file like so to make it build with the old network:
+
+<pre>
+--- a/git-annex.cabal
++++ b/git-annex.cabal
+@@ -52,7 +52,7 @@ Flag DNS
+ Executable git-annex
+ Main-Is: git-annex.hs
+ Build-Depends: MissingH, hslogger, directory, filepath,
+- unix, containers, utf8-string, network (>= 2.4.0.1), mtl,
++ unix, containers, utf8-string, network (< 2.4.0.1), mtl,
+ bytestring, old-locale, time,
+ pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
+ base (>= 4.5 && < 4.7), monad-control, transformers-base, lifted-base,
+@@ -64,6 +64,7 @@ Executable git-annex
+ C-Sources: Utility/libdiskfree.c Utility/libmounts.c
+ Extensions: CPP
+ GHC-Options: -threaded
++ CPP-Options: -DWITH_OLD_URI
+</pre>
+"""]]