[arch-commits] Commit in haskell-authenticate/trunk (PKGBUILD http-conduit-2.2.patch)

Felix Yan felixonmars at archlinux.org
Tue Jul 5 06:43:32 UTC 2016


    Date: Tuesday, July 5, 2016 @ 06:43:32
  Author: felixonmars
Revision: 182283

upgpkg: haskell-authenticate 1.3.3.1-20

rebuild with aeson-compat-0.3.5.0, chunked-data-0.3.0, conduit-combinators-1.0.4, conduit-extra-1.1.13.2, http-client-0.5.0, http-client-tls-0.3.0, http-conduit-2.2.0, monad-logger-0.3.19, mono-traversable-1.0.0, wai-extra-3.0.15.3, wai-logger-2.3.0, warp-3.2.7

Added:
  haskell-authenticate/trunk/http-conduit-2.2.patch
Modified:
  haskell-authenticate/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   13 ++++++++++---
 http-conduit-2.2.patch |   15 +++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-05 06:22:49 UTC (rev 182282)
+++ PKGBUILD	2016-07-05 06:43:32 UTC (rev 182283)
@@ -5,7 +5,7 @@
 _hkgname=authenticate
 pkgname=haskell-authenticate
 pkgver=1.3.3.1
-pkgrel=19
+pkgrel=20
 pkgdesc="Authentication methods for Haskell web applications."
 url="http://github.com/yesodweb/authenticate"
 license=("MIT")
@@ -15,9 +15,16 @@
          "haskell-http-types" "haskell-monad-control" "haskell-network-uri"
          "haskell-resourcet" "haskell-tagstream-conduit" "haskell-text"
          "haskell-unordered-containers" "haskell-xml-conduit")
-source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha256sums=('652449f41b12a71f570fd84f53893f82e50b7d793a0724d349188ce19d623113')
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        http-conduit-2.2.patch)
+sha256sums=('652449f41b12a71f570fd84f53893f82e50b7d793a0724d349188ce19d623113'
+            'c46ba93545d50d52c5cf4bea9f4e494a57cf5dfb4a2c4d86c0bc473ea4b7bfc9')
 
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    patch -p2 -i ../http-conduit-2.2.patch
+}
+
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
     

Added: http-conduit-2.2.patch
===================================================================
--- http-conduit-2.2.patch	                        (rev 0)
+++ http-conduit-2.2.patch	2016-07-05 06:43:32 UTC (rev 182283)
@@ -0,0 +1,15 @@
+diff --git a/authenticate/OpenId2/Discovery.hs b/authenticate/OpenId2/Discovery.hs
+index 8b3f63f..0db3b17 100644
+--- a/authenticate/OpenId2/Discovery.hs
++++ b/authenticate/OpenId2/Discovery.hs
+@@ -81,7 +81,9 @@ discoverYADIS ident mb_loc redirects manager = do
+     let uri = fromMaybe (unpack $ identifier ident) mb_loc
+     req <- liftIO $ parseUrl uri
+     res <- httpLbs req
+-#if MIN_VERSION_http_conduit(1, 9, 0)
++#if MIN_VERSION_http_conduit(2, 2, 0)
++        { checkResponse = \_ _ -> return ()
++#elif MIN_VERSION_http_conduit(1, 9, 0)
+         { checkStatus = \_ _ _ -> Nothing
+ #else
+         { checkStatus = \_ _ -> Nothing



More information about the arch-commits mailing list