[Git][haskell-team/DHG_packages][master] 2 commits: http-client: Upgrading from 0.6.4.1 to 0.7.11
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sun Jul 24 13:06:40 BST 2022
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
db0224e0 by Ilias Tsitsimpis at 2022-07-24T14:45:31+03:00
http-client: Upgrading from 0.6.4.1 to 0.7.11
- - - - -
b40eacfd by Ilias Tsitsimpis at 2022-07-24T15:01:01+03:00
byteorder: Sourceful upload for GHC 9.0.2
- - - - -
6 changed files:
- p/haskell-byteorder/debian/changelog
- p/haskell-http-client/debian/changelog
- p/haskell-http-client/debian/control
- p/haskell-http-client/debian/patches/disable-external-network-connection-test.diff
- − p/haskell-http-client/debian/patches/remove-ADDRCONFIG
- p/haskell-http-client/debian/patches/series
Changes:
=====================================
p/haskell-byteorder/debian/changelog
=====================================
@@ -1,8 +1,9 @@
-haskell-byteorder (1.0.4-11) UNRELEASED; urgency=medium
+haskell-byteorder (1.0.4-11) unstable; urgency=medium
* Declare compliance with Debian policy 4.6.1
+ * Sourceful upload for GHC 9.0.2
- -- Ilias Tsitsimpis <iliastsi at debian.org> Tue, 28 Jun 2022 15:32:05 +0300
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sun, 24 Jul 2022 15:01:01 +0300
haskell-byteorder (1.0.4-10) unstable; urgency=medium
=====================================
p/haskell-http-client/debian/changelog
=====================================
@@ -1,8 +1,9 @@
-haskell-http-client (0.6.4.1-3) UNRELEASED; urgency=medium
+haskell-http-client (0.7.11-1) unstable; urgency=medium
+ * New upstream release (Closes: #856700)
* Declare compliance with Debian policy 4.6.1
- -- Ilias Tsitsimpis <iliastsi at debian.org> Tue, 28 Jun 2022 15:32:33 +0300
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sun, 24 Jul 2022 14:41:26 +0300
haskell-http-client (0.6.4.1-2) unstable; urgency=medium
=====================================
p/haskell-http-client/debian/control
=====================================
@@ -11,6 +11,10 @@ Build-Depends:
ghc (>= 8.4.3),
ghc-prof,
haskell-devscripts (>= 0.13),
+ libghc-async-dev,
+ libghc-async-prof,
+ libghc-base64-bytestring-dev (>= 1.0),
+ libghc-base64-bytestring-prof,
libghc-blaze-builder-dev (>= 0.3),
libghc-blaze-builder-prof,
libghc-case-insensitive-dev,
@@ -24,8 +28,8 @@ Build-Depends:
libghc-http-types-dev,
libghc-http-types-dev (>= 0.8),
libghc-http-types-prof,
- libghc-memory-dev (>= 0.7),
- libghc-memory-prof,
+ libghc-iproute-dev (>= 1.7.5),
+ libghc-iproute-prof,
libghc-mime-types-dev,
libghc-mime-types-prof,
libghc-monad-control-dev,
@@ -40,7 +44,6 @@ Build-Depends:
libghc-streaming-commons-dev (>= 0.1.0.2),
libghc-streaming-commons-dev (<< 0.3),
libghc-streaming-commons-prof,
- libghc-async-dev,
libghc-blaze-builder-dev,
libghc-case-insensitive-dev,
libghc-hspec-dev,
@@ -51,12 +54,14 @@ Build-Depends:
libghc-streaming-commons-dev (>= 0.1.1),
libghc-zlib-dev,
Build-Depends-Indep: ghc-doc,
+ libghc-async-doc,
+ libghc-base64-bytestring-doc,
libghc-blaze-builder-doc,
libghc-case-insensitive-doc,
libghc-cookie-doc,
libghc-exceptions-doc,
libghc-http-types-doc,
- libghc-memory-doc,
+ libghc-iproute-doc,
libghc-mime-types-doc,
libghc-network-doc,
libghc-network-uri-doc,
=====================================
p/haskell-http-client/debian/patches/disable-external-network-connection-test.diff
=====================================
@@ -2,7 +2,7 @@ Index: b/test/Network/HTTP/ClientSpec.hs
===================================================================
--- a/test/Network/HTTP/ClientSpec.hs
+++ b/test/Network/HTTP/ClientSpec.hs
-@@ -14,83 +14,4 @@ main :: IO ()
+@@ -15,115 +15,4 @@ main :: IO ()
main = hspec spec
spec :: Spec
@@ -25,15 +25,27 @@ Index: b/test/Network/HTTP/ClientSpec.hs
- man <- newManager defaultManagerSettings
- res <- httpLbs req man
- responseStatus res `shouldBe` status405
+- describe "bearer auth" $ do
+- it "success" $ do
+- initialReq <- parseUrlThrow "http://httpbin.org/bearer"
+- let finalReq = applyBearerAuth "token" initialReq
+- man <- newManager defaultManagerSettings
+- res <- httpLbs finalReq man
+- responseStatus res `shouldBe` status200
+- it "failure" $ do
+- req <- parseRequest "http://httpbin.org/bearer"
+- man <- newManager defaultManagerSettings
+- res <- httpLbs req man
+- responseStatus res `shouldBe` status401
-
- describe "redirects" $ do
-- it "follows redirects" $ do
+- xit "follows redirects" $ do
- req <- parseRequest "http://httpbin.org/redirect-to?url=http://httpbin.org"
- man <- newManager defaultManagerSettings
- res <- httpLbs req man
- responseStatus res `shouldBe` status200
-
-- it "allows to disable redirect following" $ do
+- xit "allows to disable redirect following" $ do
- req <- (\ r -> r{ redirectCount = 0 }) <$>
- parseRequest "http://httpbin.org/redirect-to?url=http://httpbin.org"
- man <- newManager defaultManagerSettings
@@ -80,10 +92,30 @@ Index: b/test/Network/HTTP/ClientSpec.hs
- man <- newManager settings
- httpLbs "http://httpbin.org" man `shouldThrow` anyException
-
-- it "redirectCount" $ do
+- xit "redirectCount" $ do
- let modify req = return req { redirectCount = 0 }
- settings = defaultManagerSettings { managerModifyRequest = modify }
- man <- newManager settings
- response <- httpLbs "http://httpbin.org/redirect-to?url=foo" man
- responseStatus response `shouldBe` found302
+-
+- -- skipped because CI doesn't have working IPv6
+- xdescribe "raw IPV6 address as hostname" $ do
+- it "works" $ do
+- -- We rely on example.com serving a web page over IPv6.
+- -- The request (currently) actually ends up as 404 due to
+- -- virtual hosting, but we just care that the networking
+- -- side works.
+- (addr:_) <- NS.getAddrInfo
+- (Just NS.defaultHints { NS.addrFamily = NS.AF_INET6 })
+- (Just "example.com")
+- (Just "http")
+- -- ipv6Port will be of the form [::1]:80, which is good enough
+- -- for our purposes; ideally we'd easily get just the ::1.
+- let ipv6Port = show $ NS.addrAddress addr
+- ipv6Port `shouldStartWith` "["
+- req <- parseUrlThrow $ "http://" ++ ipv6Port
+- man <- newManager defaultManagerSettings
+- _ <- httpLbs (setRequestIgnoreStatus req) man
+- return ()
+spec = return ()
=====================================
p/haskell-http-client/debian/patches/remove-ADDRCONFIG deleted
=====================================
@@ -1,21 +0,0 @@
-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,2 +1 @@
disable-external-network-connection-test.diff
-remove-ADDRCONFIG
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/602852d4f53f83f8dfb7f5e26a56ad429c50864b...b40eacfd433a5d42a8e61e3dd933e38db07dead6
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/602852d4f53f83f8dfb7f5e26a56ad429c50864b...b40eacfd433a5d42a8e61e3dd933e38db07dead6
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/20220724/7ec5724e/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list