From: jwodder Date: Thu, 19 Nov 2020 21:15:42 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~2^2^2~80^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a8a68a27d0bfac77f45823333f5d3f229bc4d27;p=git-annex.git --- diff --git a/doc/bugs/Patch_for_compilation_errors_on_Windows.mdwn b/doc/bugs/Patch_for_compilation_errors_on_Windows.mdwn new file mode 100644 index 0000000000..c6707f0368 --- /dev/null +++ b/doc/bugs/Patch_for_compilation_errors_on_Windows.mdwn @@ -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]]