This commit is contained in:
parent
9089229c23
commit
9a8a68a27d
1 changed files with 36 additions and 0 deletions
36
doc/bugs/Patch_for_compilation_errors_on_Windows.mdwn
Normal file
36
doc/bugs/Patch_for_compilation_errors_on_Windows.mdwn
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
Compilation of the latest git-annex code (commit 04dca96) on Windows is currently failing due to some modules not being imported. The issues are fixed by the following patch:
|
||||||
|
|
||||||
|
```
|
||||||
|
diff --git a/Annex/Content/Presence.hs b/Annex/Content/Presence.hs
|
||||||
|
index 861288c0b..f5d4b593f 100644
|
||||||
|
--- a/Annex/Content/Presence.hs
|
||||||
|
+++ b/Annex/Content/Presence.hs
|
||||||
|
@@ -25,6 +25,9 @@ module Annex.Content.Presence (
|
||||||
|
) where
|
||||||
|
|
||||||
|
import Annex.Common
|
||||||
|
+#ifdef mingw32_HOST_OS
|
||||||
|
+import Annex.Perms
|
||||||
|
+#endif
|
||||||
|
import qualified Annex
|
||||||
|
import Annex.LockPool
|
||||||
|
import Annex.WorkerPool
|
||||||
|
diff --git a/Git/Hook.hs b/Git/Hook.hs
|
||||||
|
index 45662f236..788552305 100644
|
||||||
|
--- a/Git/Hook.hs
|
||||||
|
+++ b/Git/Hook.hs
|
||||||
|
@@ -13,9 +13,7 @@ import Common
|
||||||
|
import Git
|
||||||
|
import Utility.Tmp
|
||||||
|
import Utility.Shell
|
||||||
|
-#ifndef mingw32_HOST_OS
|
||||||
|
import Utility.FileMode
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
data Hook = Hook
|
||||||
|
{ hookName :: FilePath
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
[[!meta author=jwodder]]
|
||||||
|
[[!tag projects/datalad]]
|
Loading…
Add table
Reference in a new issue