aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-11-21 13:20:56 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-11-21 13:20:56 -0400
commitfbb9a806651f3106b40c21280fad98e4c95d19c7 (patch)
tree7dd4482a30e57cb3cfd4654a97ae3bdaa9cf04df
parentf301172da9cf7eed54ee399f2e179880f562d446 (diff)
fix build of patched network
-rw-r--r--standalone/linux/haskell-patches/network_disable_accept4.patch17
-rwxr-xr-xstandalone/linux/install-haskell-packages4
2 files changed, 15 insertions, 6 deletions
diff --git a/standalone/linux/haskell-patches/network_disable_accept4.patch b/standalone/linux/haskell-patches/network_disable_accept4.patch
index cc4ed62b9..b16a9d32d 100644
--- a/standalone/linux/haskell-patches/network_disable_accept4.patch
+++ b/standalone/linux/haskell-patches/network_disable_accept4.patch
@@ -1,14 +1,14 @@
-From a6fb84e676bc13a248baf9f617fc3e84ef902111 Mon Sep 17 00:00:00 2001
+From 44482ab1b3c0a136ad6e7b85a0d7fa9bae726883 Mon Sep 17 00:00:00 2001
From: Joey Hess <joeyh@joeyh.name>
Date: Tue, 21 Nov 2017 13:10:35 -0400
Subject: [PATCH] disable use of accept4, for compatability with older systems
---
- Network/Socket.hsc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ Network/Socket.hsc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Network/Socket.hsc b/Network/Socket.hsc
-index 6a1ce6a..ef4004e 100644
+index 6a1ce6a..668bbdf 100644
--- a/Network/Socket.hsc
+++ b/Network/Socket.hsc
@@ -535,7 +535,7 @@ accept sock@(MkSocket s family stype protocol status) = do
@@ -20,6 +20,15 @@ index 6a1ce6a..ef4004e 100644
new_sock <- throwSocketErrorIfMinus1RetryMayBlock "Network.Socket.accept"
(threadWaitRead (fromIntegral s))
(c_accept4 s sockaddr ptr_len (#const SOCK_NONBLOCK))
+@@ -1591,7 +1591,7 @@ foreign import CALLCONV unsafe "bind"
+ c_bind :: CInt -> Ptr SockAddr -> CInt{-CSockLen???-} -> IO CInt
+ foreign import CALLCONV SAFE_ON_WIN "connect"
+ c_connect :: CInt -> Ptr SockAddr -> CInt{-CSockLen???-} -> IO CInt
+-#ifdef HAVE_ACCEPT4
++#if 0
+ foreign import CALLCONV unsafe "accept4"
+ c_accept4 :: CInt -> Ptr SockAddr -> Ptr CInt{-CSockLen???-} -> CInt -> IO CInt
+ #else
--
2.15.0
diff --git a/standalone/linux/install-haskell-packages b/standalone/linux/install-haskell-packages
index 4361a2f93..905be29ec 100755
--- a/standalone/linux/install-haskell-packages
+++ b/standalone/linux/install-haskell-packages
@@ -17,8 +17,8 @@ fi
cabalopts="$@"
cabalinstall () {
- echo cabal install -j1 "$@" "$cabalopts"
- eval cabal install -j1 "$@" "$cabalopts"
+ echo cabal install -j1 "$@" "$cabalopts" --force-reinstalls
+ eval cabal install -j1 "$@" "$cabalopts" --force-reinstalls
}
patched () {