From 8071784ce0969fa2450947bbf75c973e782366d8 Mon Sep 17 00:00:00 2001 From: "http://joeyh.name/" Date: Fri, 6 Jun 2014 16:53:21 +0000 Subject: Added a comment --- ...ent_1_1b5d236567123300924427624e0e48c8._comment | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 doc/bugs/error_compiling_network-info_when_compiling_git-annex/comment_1_1b5d236567123300924427624e0e48c8._comment diff --git a/doc/bugs/error_compiling_network-info_when_compiling_git-annex/comment_1_1b5d236567123300924427624e0e48c8._comment b/doc/bugs/error_compiling_network-info_when_compiling_git-annex/comment_1_1b5d236567123300924427624e0e48c8._comment new file mode 100644 index 000000000..8ee7885a6 --- /dev/null +++ b/doc/bugs/error_compiling_network-info_when_compiling_git-annex/comment_1_1b5d236567123300924427624e0e48c8._comment @@ -0,0 +1,53 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="108.236.230.124" + subject="comment 1" + date="2014-06-06T16:53:21Z" + content=""" +http://packdeps.haskellers.com/reverse/network-info + +It's uuid which needs network-info -- but not for the parts of uuid which git-annex uses. (git-annex does not use the uuids that include the MAC address). + +It's not hard to avoid that dependency. The attached patch will do. I've forwarded this to the author of uuid. + +
+diff --git a/uuid.cabal b/uuid.cabal
+index 0a53059..f00e887 100644
+--- a/uuid.cabal
++++ b/uuid.cabal
+@@ -24,6 +24,9 @@ Extra-Source-Files:
+      CHANGES
+      CONTRIBUTORS
+ 
++Flag NetworkInfo
++  Description: Enable UUIDs that need network-info
++  Default: True
+ 
+ Library
+  Build-Depends: base >=3 && < 5,
+@@ -32,17 +35,20 @@ Library
+                 cryptohash >= 0.7 && < 0.12,
+                 deepseq == 1.3.*,
+                 hashable (>= 1.1.1.0 && < 1.2.0) || (>= 1.2.1 && < 1.3),
+-                network-info == 0.2.*,
+                 random >= 1.0.1 && < 1.1,
+                 time >= 1.1 && < 1.5
++ if flag(NetworkInfo)
++   Build-Depends: network-info == 0.2.*
+ 
+  Exposed-Modules:
+    Data.UUID
+-   Data.UUID.Util
+-   Data.UUID.V1
+    Data.UUID.V3
+    Data.UUID.V4
+    Data.UUID.V5
++ if flag(NetworkInfo)
++   Exposed-Modules:
++     Data.UUID.Util
++     Data.UUID.V1
+ 
+  Other-Modules:
+    Data.UUID.Builder
+
+"""]] -- cgit v1.2.3