[Git][haskell-team/DHG_packages][master] http-client: Remove `AI_ADDRCONFIG`
Ilias Tsitsimpis
gitlab at salsa.debian.org
Sat Jun 27 15:50:24 BST 2020
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
8ff60e94 by Ilias Tsitsimpis at 2020-06-27T17:47:51+03:00
http-client: Remove `AI_ADDRCONFIG`
- - - - -
3 changed files:
- p/haskell-http-client/debian/changelog
- + p/haskell-http-client/debian/patches/remove-ADDRCONFIG
- p/haskell-http-client/debian/patches/series
Changes:
=====================================
p/haskell-http-client/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-http-client (0.6.4.1-2) unstable; urgency=medium
+
+ * Backport upstream patch to remove `AI_ADDRCONFIG` (Closes: #962913)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sat, 27 Jun 2020 17:47:05 +0300
+
haskell-http-client (0.6.4.1-1) unstable; urgency=medium
* New upstream version.
=====================================
p/haskell-http-client/debian/patches/remove-ADDRCONFIG
=====================================
@@ -0,0 +1,21 @@
+From 7151b07c79710fc845bac78f2e6fe3d69b7fce01 Mon Sep 17 00:00:00 2001
+From: Michael Snoyman <michael at snoyman.com>
+Date: Thu, 18 Jun 2020 14:40:29 +0300
+Subject: [PATCH] Remove ADDRCONFIG and close #400
+
+diff --git a/Network/HTTP/Client/Connection.hs b/Network/HTTP/Client/Connection.hs
+index 7215f494..e56a8cf1 100644
+--- a/Network/HTTP/Client/Connection.hs
++++ b/Network/HTTP/Client/Connection.hs
+@@ -145,10 +145,7 @@ openSocketConnectionSize :: (Socket -> IO ())
+ -> Int -- ^ port
+ -> IO Connection
+ openSocketConnectionSize tweakSocket chunksize hostAddress' host' port' = do
+- let hints = NS.defaultHints {
+- NS.addrFlags = [NS.AI_ADDRCONFIG]
+- , NS.addrSocketType = NS.Stream
+- }
++ let hints = NS.defaultHints { NS.addrSocketType = NS.Stream }
+ addrs <- case hostAddress' of
+ Nothing ->
+ NS.getAddrInfo (Just hints) (Just host') (Just $ show port')
=====================================
p/haskell-http-client/debian/patches/series
=====================================
@@ -1 +1,2 @@
disable-external-network-connection-test.diff
+remove-ADDRCONFIG
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/8ff60e9423bd558e0e67eafe07e248c9dcb0afb4
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/8ff60e9423bd558e0e67eafe07e248c9dcb0afb4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20200627/e2dc61c4/attachment-0001.html>
More information about the Pkg-haskell-commits
mailing list