diff options
| author | Joachim Breitner <mail@joachim-breitner.de> | 2013-02-06 21:19:04 +0400 |
|---|---|---|
| committer | Joachim Breitner <mail@joachim-breitner.de> | 2013-02-06 21:19:04 +0400 |
| commit | 1db92ab5543e96d10d738ebe1355f028982bf3de (patch) | |
| tree | fa4c6e7b4c67f537da53e18f84dbbaa46540ccb9 /p/haskell-dav | |
| parent | 683fd067c931d8297474238a5f2e96edf5bc9c28 (diff) | |
| download | DHG_packages-1db92ab5543e96d10d738ebe1355f028982bf3de.tar.gz | |
haskell-dav: Reduce debian/patches/unstable-backport to a few relaxed build dependencies
Diffstat (limited to 'p/haskell-dav')
| -rw-r--r-- | p/haskell-dav/debian/changelog | 3 | ||||
| -rw-r--r-- | p/haskell-dav/debian/control | 6 | ||||
| -rw-r--r-- | p/haskell-dav/debian/patches/series | 2 | ||||
| -rw-r--r-- | p/haskell-dav/debian/patches/unstable-backport | 153 |
4 files changed, 5 insertions, 159 deletions
diff --git a/p/haskell-dav/debian/changelog b/p/haskell-dav/debian/changelog index 20930735b..32bb65da3 100644 --- a/p/haskell-dav/debian/changelog +++ b/p/haskell-dav/debian/changelog @@ -2,7 +2,8 @@ haskell-dav (0.3-2) UNRELEASED; urgency=low * 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@debian.org> Wed, 06 Feb 2013 18:01:14 +0100 diff --git a/p/haskell-dav/debian/control b/p/haskell-dav/debian/control index a2a7e125e..d22e33363 100644 --- a/p/haskell-dav/debian/control +++ b/p/haskell-dav/debian/control @@ -29,13 +29,11 @@ Build-Depends: debhelper (>= 7.0) , 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 --git a/p/haskell-dav/debian/patches/series b/p/haskell-dav/debian/patches/series index 9cd71cfa7..38ca9ac8f 100644 --- a/p/haskell-dav/debian/patches/series +++ b/p/haskell-dav/debian/patches/series @@ -1 +1 @@ -unstable-backport +relax-dependencies diff --git a/p/haskell-dav/debian/patches/unstable-backport b/p/haskell-dav/debian/patches/unstable-backport deleted file mode 100644 index 1e437f95c..000000000 --- a/p/haskell-dav/debian/patches/unstable-backport +++ /dev/null @@ -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@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> |
