[Pkg-haskell-commits] darcs: haskell-dav: Reduce debian/patches/unstable-backport to a few relaxed build dependencies

Joachim Breitner mail at joachim-breitner.de
Wed Feb 6 17:26:42 UTC 2013


Wed Feb  6 17:19:04 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Reduce debian/patches/unstable-backport to a few relaxed build dependencies
  Ignore-this: 78ed76957aae6120f15d8425e5cc115a

    M ./changelog -1 +2
    M ./control -4 +2
    M ./patches/series -1 +1
    R ./patches/unstable-backport

Wed Feb  6 17:19:04 UTC 2013  Joachim Breitner <mail at joachim-breitner.de>
  * Reduce debian/patches/unstable-backport to a few relaxed build dependencies
  Ignore-this: 78ed76957aae6120f15d8425e5cc115a
diff -rN -u old-haskell-dav//changelog new-haskell-dav//changelog
--- old-haskell-dav//changelog	2013-02-06 17:26:42.507721787 +0000
+++ new-haskell-dav//changelog	2013-02-06 17:26:42.523720188 +0000
@@ -2,7 +2,8 @@
 
   * Depend on haskell-devscripts 0.8.13 to ensure this package is built
     against experimental
-  * Undo xml-hamlet version change in debian/patches/unstable-backport
+  * Reduce debian/patches/unstable-backport to a few relaxed build
+    dependencies
 
  -- Joachim Breitner <nomeata at debian.org>  Wed, 06 Feb 2013 18:01:14 +0100
 
diff -rN -u old-haskell-dav//control new-haskell-dav//control
--- old-haskell-dav//control	2013-02-06 17:26:42.499719547 +0000
+++ new-haskell-dav//control	2013-02-06 17:26:42.511719009 +0000
@@ -29,13 +29,11 @@
              , libghc-resourcet-prof
              , libghc-transformers-dev (>> 0.3)
              , libghc-transformers-prof
-             , libghc-xml-conduit-dev (>> 0.7)
-             , libghc-xml-conduit-dev (<< 0.7.0.3)
-             , libghc-xml-conduit-dev
+             , libghc-xml-conduit-dev (>> 1.0)
+             , libghc-xml-conduit-dev (<< 1.1)
              , libghc-xml-conduit-prof
              , libghc-xml-hamlet-dev (>> 0.4)
              , libghc-xml-hamlet-dev (<< 0.5)
-             , libghc-xml-hamlet-dev
              , libghc-xml-hamlet-prof
 Build-Depends-Indep: ghc-doc
                    , libghc-case-insensitive-doc
diff -rN -u old-haskell-dav//patches/series new-haskell-dav//patches/series
--- old-haskell-dav//patches/series	2013-02-06 17:26:42.499719547 +0000
+++ new-haskell-dav//patches/series	2013-02-06 17:26:42.515718958 +0000
@@ -1 +1 @@
-unstable-backport
+relax-dependencies
diff -rN -u old-haskell-dav//patches/unstable-backport new-haskell-dav//patches/unstable-backport
--- old-haskell-dav//patches/unstable-backport	2013-02-06 17:26:42.495719924 +0000
+++ new-haskell-dav//patches/unstable-backport	1970-01-01 00:00:00.000000000 +0000
@@ -1,153 +0,0 @@
-Description: 
- Adjust code and build deps for packages in unstable.
- This mostly consisted of reverting 3 commits in upstream git:
-  f49d16fd6a0d15b68b3b8587f952535c8d027103
-  34b30b4917097d067ef8f69666266e65742d6095
-  d3ca5d99fc5d6f62987f27f5a446fa5dd3897092
-Author: Joey Hess <joeyh at debian.org>
-
-Index: haskell-dav-0.3/DAV.cabal
-===================================================================
---- haskell-dav-0.3.orig/DAV.cabal	2013-02-06 18:00:32.733126700 +0100
-+++ haskell-dav-0.3/DAV.cabal	2013-02-06 18:03:36.081120063 +0100
-@@ -25,37 +25,34 @@
-   exposed-modules:  Network.Protocol.HTTP.DAV
-   other-modules:    Network.Protocol.HTTP.DAV.TH
-   ghc-options:       -Wall
--  build-depends:       base >= 4.5                 && <= 5
-+  build-depends:       base ==4.5.*
-                      , bytestring
-                      , case-insensitive >= 0.4
--                     , containers
-                      , http-conduit >= 1.4
--                     , http-types >= 0.7
--                     , lens >= 3.0
-+                     , http-types >= 0.6
-+                     , lens >= 2.4
-                      , lifted-base >= 0.1
-                      , mtl >= 2.1
-                      , resourcet >= 0.3
-                      , transformers >= 0.3
--                     , xml-conduit >= 1.0          && <= 1.1
-+                     , xml-conduit >= 0.7          && <= 0.7.0.3
-                      , xml-hamlet >= 0.4           && <= 0.5
- executable hdav
-   main-is:           hdav.hs
-   ghc-options:       -Wall
--  build-depends:       base >= 4.5                 && <= 5
--                     , bytestring
-+  build-depends:       base ==4.5.*
-                      , bytestring
-                      , case-insensitive >= 0.4
-                      , cmdargs >= 0.9
--                     , containers
-                      , http-conduit >= 1.4
--                     , http-types >= 0.7
--                     , lens >= 3.0
-+                     , http-types >= 0.6
-+                     , lens >= 2.4
-                      , lifted-base >= 0.1
-                      , mtl >= 2.1
-                      , network >= 2.3
-                      , resourcet >= 0.3
-                      , transformers >= 0.3
--                     , xml-conduit >= 1.0          && <= 1.1
-+                     , xml-conduit >= 0.7          && <= 0.7.0.3
-                      , xml-hamlet >= 0.4           && <= 0.5
- 
- source-repository head
-Index: haskell-dav-0.3/Network/Protocol/HTTP/DAV.hs
-===================================================================
---- haskell-dav-0.3.orig/Network/Protocol/HTTP/DAV.hs	2013-02-06 18:00:32.733126700 +0100
-+++ haskell-dav-0.3/Network/Protocol/HTTP/DAV.hs	2013-02-06 18:00:32.725126701 +0100
-@@ -43,12 +43,11 @@
- 
- import qualified Data.ByteString as B
- import qualified Data.ByteString.Lazy as BL
--import qualified Data.Map as Map
- 
- import Data.Maybe (fromMaybe)
- 
- import Network.HTTP.Conduit (httpLbs, parseUrl, applyBasicAuth, Request(..), RequestBody(..), Response(..), newManager, closeManager, ManagerSettings(..), def, HttpException(..))
--import Network.HTTP.Types (hContentType, Method, Status, RequestHeaders, unauthorized401, conflict409)
-+import Network.HTTP.Types (headerContentType, Method, Status, RequestHeaders, unauthorized401, conflict409)
- 
- import qualified Text.XML as XML
- import Text.XML.Cursor (($/), (&/), element, node, fromDocument, checkName)
-@@ -104,7 +103,7 @@
- 
- lockResource :: MonadResourceBase m => Bool -> DAVState m ()
- lockResource nocreate = do
--    let ahs' = [(hContentType, "application/xml; charset=\"utf-8\""), (mk "Depth", "0"), (mk "Timeout", "Second-300")]
-+    let ahs' = [headerContentType "application/xml; charset=\"utf-8\"", (mk "Depth", "0"), (mk "Timeout", "Second-300")]
-     let ahs = if nocreate then (mk "If-Match", "*"):ahs' else ahs'
-     lockresp <- davRequest "LOCK" ahs (xmlBody locky)
-     let hdrtoken = (lookup "Lock-Token" . responseHeaders) lockresp
-@@ -124,21 +123,21 @@
- 
- getPropsM :: MonadResourceBase m => DAVState m XML.Document
- getPropsM = do
--    let ahs = [(hContentType, "application/xml; charset=\"utf-8\"")]
-+    let ahs = [headerContentType "application/xml; charset=\"utf-8\""]
-     propresp <- davRequest "PROPFIND" ahs (xmlBody propname)
-     return $ (XML.parseLBS_ def . responseBody) propresp
- 
- getContentM :: MonadResourceBase m => DAVState m (Maybe B.ByteString, BL.ByteString)
- getContentM = do
-     resp <- davRequest "GET" [] emptyBody
--    let ct = lookup (hContentType) (responseHeaders resp)
-+    let ct = lookup (mk "Content-Type") (responseHeaders resp)
-     return $ (ct, responseBody resp)
- 
- putContentM :: MonadResourceBase m => (Maybe B.ByteString, BL.ByteString) -> DAVState m ()
- putContentM (ct, body) = do
-     d <- get
-     let ahs' = fromMaybe [] (fmap (return . (,) (mk "If") . parenthesize) (d ^. lockToken))
--    let ahs = ahs' ++ fromMaybe [] (fmap (return . (,) (hContentType)) ct)
-+    let ahs = ahs' ++ fromMaybe [] (fmap (return . (,) (mk "Content-Type")) ct)
-     _ <- davRequest "PUT" ahs (RequestBodyLBS body)
-     return ()
- 
-@@ -164,7 +163,7 @@
- putPropsM :: MonadResourceBase m => XML.Document -> DAVState m ()
- putPropsM props = do
-     d <- get
--    let ah' = (hContentType, "application/xml; charset=\"utf-8\"")
-+    let ah' = headerContentType "application/xml; charset=\"utf-8\""
-     let ahs = ah':fromMaybe [] (fmap (return . (,) (mk "If") . parenthesize) (_lockToken d))
-     _ <- davRequest "PROPPATCH" ahs ((RequestBodyLBS . props2patch) props) -- FIXME: should diff and remove props from target
-     return ()
-@@ -174,12 +173,11 @@
-    where
-        props cursor = map node (cursor $/ element "{DAV:}response" &/ element "{DAV:}propstat" &/ element "{DAV:}prop" &/ checkName (not . flip elem blacklist))
-        patch prop = XML.Document (XML.Prologue [] Nothing []) (root prop) []
--       root [] = propertyupdate []
--       root prop = propertyupdate
--           [ XML.NodeElement $ XML.Element "D:set" Map.empty
--	     [ XML.NodeElement $ XML.Element "D:prop" Map.empty prop ]
-+       root [] = XML.Element "D:propertyupdate" [("xmlns:D", "DAV:")] []
-+       root prop = XML.Element "D:propertyupdate" [("xmlns:D", "DAV:")]
-+           [ XML.NodeElement $ XML.Element "D:set" []
-+	     [ XML.NodeElement $ XML.Element "D:prop" [] prop ]
- 	   ]
--       propertyupdate = XML.Element "D:propertyupdate" (Map.fromList [("xmlns:D", "DAV:")])
-        blacklist = [ "{DAV:}creationdate"
-                    , "{DAV:}displayname"
-                    , "{DAV:}getcontentlength"
-@@ -246,14 +244,14 @@
- propname :: XML.Document
- propname = XML.Document (XML.Prologue [] Nothing []) root []
-     where
--        root = XML.Element "D:propfind" (Map.fromList [("xmlns:D", "DAV:")]) [xml|
-+        root = XML.Element "D:propfind" [("xmlns:D", "DAV:")] [xml|
- <D:allprop>
- |]
- 
- locky :: XML.Document
- locky = XML.Document (XML.Prologue [] Nothing []) root []
-     where
--        root = XML.Element "D:lockinfo" (Map.fromList [("xmlns:D", "DAV:")]) [xml|
-+        root = XML.Element "D:lockinfo" [("xmlns:D", "DAV:")] [xml|
- <D:lockscope>
-   <D:exclusive>
- <D:locktype>





More information about the Pkg-haskell-commits mailing list