windows back to lts-18.13 temporarily
I can't seem to get stack to resolve dependencies with Win32-2.13.4.0, no matter what I try. Why it blows up, I don't know. And allow-newer: true actually causes it to downgrade Win32 to the one version that won't build. Unbelivable that allows downgrades. So just gonna have to wait for that to get into stackage nightly, and then stack.yaml can be updated to use that, and the changes in this commit reverted.
This commit is contained in:
parent
461330c585
commit
85aadcfa1e
4 changed files with 41 additions and 3 deletions
|
@ -100,7 +100,8 @@ install:
|
||||||
# Building dependencies takes almost too long on windows, so build without
|
# Building dependencies takes almost too long on windows, so build without
|
||||||
# optimisation (including when building the dependencies)
|
# optimisation (including when building the dependencies)
|
||||||
before_build:
|
before_build:
|
||||||
- cp stack.yaml stack.yaml.build
|
- sh: cp stack.yaml stack.yaml.build
|
||||||
|
- ps: cp stack-lts-18.13.yaml stack.yaml.build
|
||||||
- sh: 'echo "apply-ghc-options: everything" >> stack.yaml.build'
|
- sh: 'echo "apply-ghc-options: everything" >> stack.yaml.build'
|
||||||
- ps: '"apply-ghc-options: everything" |Add-Content -Path .\stack.yaml.build'
|
- ps: '"apply-ghc-options: everything" |Add-Content -Path .\stack.yaml.build'
|
||||||
- stack --stack-yaml stack.yaml.build build --only-dependencies --ghc-options=-O0
|
- stack --stack-yaml stack.yaml.build build --only-dependencies --ghc-options=-O0
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
- License: BSD-2-clause
|
- License: BSD-2-clause
|
||||||
-}
|
-}
|
||||||
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings, CPP #-}
|
||||||
|
|
||||||
module Utility.LockFile.Windows (
|
module Utility.LockFile.Windows (
|
||||||
lockShared,
|
lockShared,
|
||||||
|
@ -58,12 +58,21 @@ lockExclusive = openLock fILE_SHARE_NONE
|
||||||
openLock :: ShareMode -> LockFile -> IO (Maybe LockHandle)
|
openLock :: ShareMode -> LockFile -> IO (Maybe LockHandle)
|
||||||
openLock sharemode f = do
|
openLock sharemode f = do
|
||||||
f' <- convertToWindowsNativeNamespace f
|
f' <- convertToWindowsNativeNamespace f
|
||||||
|
#if MIN_VERSION_Win32(2,13,4)
|
||||||
r <- tryNonAsync $ createFile_NoRetry f' gENERIC_READ sharemode
|
r <- tryNonAsync $ createFile_NoRetry f' gENERIC_READ sharemode
|
||||||
security_attributes oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL
|
security_attributes oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL
|
||||||
(maybePtr Nothing)
|
(maybePtr Nothing)
|
||||||
return $ case r of
|
return $ case r of
|
||||||
Left _ -> Nothing
|
Left _ -> Nothing
|
||||||
Right h -> Just h
|
Right h -> Just h
|
||||||
|
#else
|
||||||
|
h <- withTString (fromRawFilePath f') $ \c_f ->
|
||||||
|
c_CreateFile c_f gENERIC_READ sharemode security_attributes
|
||||||
|
oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL (maybePtr Nothing)
|
||||||
|
return $ if h == iNVALID_HANDLE_VALUE
|
||||||
|
then Nothing
|
||||||
|
else Just h
|
||||||
|
#endif
|
||||||
where
|
where
|
||||||
security_attributes = maybePtr Nothing
|
security_attributes = maybePtr Nothing
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ Description:
|
||||||
-- make cabal install git-annex work.
|
-- make cabal install git-annex work.
|
||||||
Extra-Source-Files:
|
Extra-Source-Files:
|
||||||
stack.yaml
|
stack.yaml
|
||||||
|
stack-lts-18.13.yaml
|
||||||
README
|
README
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
NEWS
|
NEWS
|
||||||
|
@ -413,7 +414,7 @@ Executable git-annex
|
||||||
|
|
||||||
if (os(windows))
|
if (os(windows))
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
Win32 (>= 2.13.4.0),
|
Win32 ((>= 2.6.1.0 && < 2.12.0.0) || >= 2.13.4.0),
|
||||||
setenv,
|
setenv,
|
||||||
process (>= 1.6.2.0),
|
process (>= 1.6.2.0),
|
||||||
silently (>= 1.2.5.1)
|
silently (>= 1.2.5.1)
|
||||||
|
|
27
stack-lts-18.13.yaml
Normal file
27
stack-lts-18.13.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
flags:
|
||||||
|
git-annex:
|
||||||
|
production: true
|
||||||
|
assistant: true
|
||||||
|
pairing: true
|
||||||
|
torrentparser: true
|
||||||
|
magicmime: false
|
||||||
|
dbus: false
|
||||||
|
debuglocks: false
|
||||||
|
benchmark: true
|
||||||
|
gitlfs: true
|
||||||
|
packages:
|
||||||
|
- '.'
|
||||||
|
resolver: lts-18.13
|
||||||
|
extra-deps:
|
||||||
|
- IfElse-0.85
|
||||||
|
- aws-0.22
|
||||||
|
- bloomfilter-2.0.1.0
|
||||||
|
- git-lfs-1.2.0
|
||||||
|
- http-client-restricted-0.0.4
|
||||||
|
- network-multicast-0.3.2
|
||||||
|
- sandi-0.5
|
||||||
|
- torrent-10000.1.1
|
||||||
|
- base16-bytestring-0.1.1.7
|
||||||
|
- base64-bytestring-1.0.0.3
|
||||||
|
- bencode-0.6.1.1
|
||||||
|
- http-client-0.7.9
|
Loading…
Add table
Add a link
Reference in a new issue